-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathurls.py
30 lines (24 loc) · 1021 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic.simple import direct_to_template
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import views
urlpatterns = patterns('',
(r'^about/', include('about.urls')),
(r'^blog/', include('blog.urls')),
(r'^forum/', include('forum.urls')),
(r'^repository/', include('repository.urls')),
# somewhat util
#(r'^accounts/', include('registration.urls')),
(r'^accounts/', include('django_authopenid.urls')),
(r'^admin/', include(admin.site.urls)),
(r'^comments/', include('django.contrib.comments.urls')),
(r'^user/', include('user.urls')),
(r'^datacite/', include('datacite.urls')),
(r'^challenge/', include('challengeviewer.urls')),
(r'^$', views.welcome),
)
if settings.DEBUG and not settings.PRODUCTION:
urlpatterns += patterns('',(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'media'}),)