WebFaction
Community site: login faq

I have a Django project up and running. However I am having difficulties getting the path for my css file to work.. Currently I a get a 404 error

My CSS file is located here /home/username/webapps/djangoapps/djangoApps/static/myapp/main.css

SETTINGS.PY


  1. STATIC_ROOT = '/home/username/webapps/djangoapps/djangoApp/static/'
  2. STATIC_URL = 'http://username.webfactional.com/static/'
  3. STATICFILES_DIRS = ( '/home/username/webapps/djangoapps/djangoApps/static/',)

INDEX.HTML


  1. href="{% static 'myapp/main.css' %}"

Any help is appreciated. Thanks

asked 15 Jul '13, 15:43

krishollenbeck
165
accept rate: 100%

edited 15 Jul '13, 15:46

Have you already taken a look at our documentation here?

(15 Jul '13, 17:33) bmeyer71 ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×125

question asked: 15 Jul '13, 15:43

question was seen: 1,889 times

last updated: 15 Jul '13, 17:33

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM