2011-04-13 08:50:24 +02:00
|
|
|
from django.conf import settings
|
2011-04-12 16:09:17 +02:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
2011-04-13 08:50:24 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
2011-04-12 16:09:17 +02:00
|
|
|
|
|
|
|
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:
|
2011-04-13 08:50:24 +02:00
|
|
|
(r'^admin/', include(admin.site.urls)),
|
|
|
|
|
|
|
|
(r'^', include('euscan.urls')),
|
2011-04-12 16:09:17 +02:00
|
|
|
)
|
2011-04-13 08:50:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
urlpatterns += patterns('',
|
|
|
|
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
|
|
|
|
'document_root': settings.MEDIA_ROOT,
|
|
|
|
}),
|
|
|
|
)
|
|
|
|
|