WebFaction
Community site: login faq

settings.py file

STATIC_ROOT = '/home/USERNAME/webapps/django/PROJECT_PATH/static/'

STATICFILES_DIRS = ( os.path.join(PROJECT_PATH , 'static'), '/home/USERNAME/webapps/django/PROJECT_NAME/static/', ) STATIC_URL = '/static/'

doubt

i am not able to understand why are these files not served , i have checked the existence of the static files path i have tried with STATIC_URL = 'http://USERNAME.webfactional.com/static/' as well but still getting the same 404 error for these static(JS/CSS) files , please help , thanks in advance

asked 02 Sep '12, 09:35

abhimanyu24
11123
accept rate: 0%


Did you run python2.7 manage.py collectstatic ?

Also, you might want to set up your site to serve the static files directly through Nginx, as described in our docs.

Don't forget to restart your Apache web server after making any configuration changes.

If you still cannot figure out how to serve your static files, please open a ticket so we can take a look at your configuration.

permanent link

answered 02 Sep '12, 09:46

todork
1.2k5
accept rate: 34%

Your answer
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
×22

question asked: 02 Sep '12, 09:35

question was seen: 4,910 times

last updated: 02 Sep '12, 09:46

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 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