oxdata/urls.py

25 lines
691 B
Python
Raw Normal View History

2009-07-12 17:11:33 +00:00
from django.conf.urls.defaults import *
2009-07-13 12:32:01 +00:00
from django.conf import settings
2009-07-12 17:11:33 +00:00
# Uncomment the next two lines to enable the admin:
2009-07-13 12:32:01 +00:00
from django.contrib import admin
admin.autodiscover()
2009-07-12 17:11:33 +00:00
urlpatterns = patterns('',
2009-07-13 12:32:01 +00:00
(r'^poster/', include('oxdata.poster.urls')),
(r'^id/', include('oxdata.lookup.urls')),
2009-07-12 17:11:33 +00:00
# Uncomment the next line to enable the admin:
2009-07-13 12:32:01 +00:00
(r'^admin/(.*)', admin.site.root),
2009-07-12 17:11:33 +00:00
)
2009-07-13 12:32:01 +00:00
2009-07-15 16:39:28 +00:00
if settings.DEBUG:
urlpatterns += patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_ROOT}),
)