Skip to content

Instantly share code, notes, and snippets.

@gileno
Created February 23, 2012 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gileno/1889392 to your computer and use it in GitHub Desktop.
Save gileno/1889392 to your computer and use it in GitHub Desktop.
Definindo STATICDIRS no settings
import os
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
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.
os.path.join(PROJECT_ROOT, 'static'),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment