django 1.3 STATICFILES_DIRS

after trying many thing and going thru django (1.3) files, here is how we set

static files on django dev server

in settings.py add absolute path of your static files dirs to STATICFILES_DIRS

STATICFILES_DIRS = (

# Put strings here, like "/home/html/static" or "C:/www/django/static".

# Always use forward slashes, even on Windows.

# Don't forget to use absolute paths, not relative paths.

'C:/tools/python/examples/ecomstore-site/estore/static',

)

dont forget trailing comma

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s