Changeset 6447 for trunk


Ignore:
Timestamp:
Dec 12, 2008, 11:29:45 AM (16 years ago)
Author:
roland
Message:

Another update, fix path in urls.py

Location:
trunk/exodus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/exodus/settings.py

    r6441 r6447  
    2626# Whether to find static files which are going to be served by django if running static mode
    2727EXODUS_STATIC_ROOT = os.path.join(EXODUS_ROOT, 'static')
     28DJANGO_ADMIN_ROOT = os.path.join(EXODUS_ROOT, 'media')
    2829
    2930DATABASE_ENGINE = 'sqlite3'           # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
  • trunk/exodus/urls.py

    r6444 r6447  
    3434if settings.DEBUG:
    3535        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"),
    3840        )
Note: See TracChangeset for help on using the changeset viewer.