- Timestamp:
- Dec 12, 2008, 11:29:45 AM (16 years ago)
- Location:
- trunk/exodus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus/settings.py
r6441 r6447 26 26 # Whether to find static files which are going to be served by django if running static mode 27 27 EXODUS_STATIC_ROOT = os.path.join(EXODUS_ROOT, 'static') 28 DJANGO_ADMIN_ROOT = os.path.join(EXODUS_ROOT, 'media') 28 29 29 30 DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. -
trunk/exodus/urls.py
r6444 r6447 34 34 if settings.DEBUG: 35 35 urlpatterns += patterns('', 36 url(r'^static/(?P<path>.*)$$', 'django.views.static.serve', {'document_root': 37 settings.EXODUS_STATIC_ROOT }, "static"), 36 url(r'^static/(?P<path>.*)$$', 'django.views.static.serve', 37 {'document_root': settings.EXODUS_STATIC_ROOT }, "static"), 38 url(r'^media/(?P<path>.*)$$', 'django.views.static.serve', 39 {'document_root': settings.DJANGO_ADMIN_ROOT }, "admin"), 38 40 )
Note:
See TracChangeset
for help on using the changeset viewer.