Source

django-wsgiserver3 / tests / testdjangoproject / settings_statics.py

Full commit
# this is updated to target the new static file handling in django 1.3
from settings import *

STATIC_ROOT = os.path.join(PROJECT_ROOT, 'site_static') # where files will be collected

# staticfiles_urlpatterns your STATIC_URL setting can't be empty or a full URL, such as http://static.example.com/.
STATIC_URL = r'/static/'
# experimental for development work it would be nice to not need to
# run collectstatic all the time
# each app by default will have its app/static directory added, by convention these are usually subdirectories
# app1/static/app1
# app2/static/app2
# but there is a problem if this convention isn't followed
INSTALLED_APPS +=  ('django.contrib.staticfiles',)
STATICFILES_DIRS = (
  # 
  # ("urlprefix", "/path/to/the/files"), # I usually have urlprefix be appname
    os.path.join(PROJECT_ROOT, "static2"),
# don't remember what I was doing here with this tuple
#    ('static3', os.path.join(PROJECT_ROOT, "notstatic3")),
)

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
)