482e54cfce
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
29 lines
741 B
Python
29 lines
741 B
Python
from django.conf import settings
|
|
from django.conf.urls.defaults import *
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
from django.contrib import admin
|
|
admin.autodiscover()
|
|
|
|
urlpatterns = patterns('',
|
|
# Example:
|
|
# (r'^euscanwww/', include('euscanwww.foo.urls')),
|
|
|
|
# Uncomment the admin/doc line below to enable admin documentation:
|
|
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
|
|
# Uncomment the next line to enable the admin:
|
|
(r'^admin/', include(admin.site.urls)),
|
|
|
|
(r'^', include('euscan.urls')),
|
|
)
|
|
|
|
|
|
if settings.DEBUG:
|
|
urlpatterns += patterns('',
|
|
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
|
|
'document_root': settings.MEDIA_ROOT,
|
|
}),
|
|
)
|
|
|