forked from fgaudin/aemanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
55 lines (49 loc) · 1.85 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from core.views import resend_activation_email, contact_us
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
url(regex=r'^$',
view='core.views.index',
name='index'),
url(regex=r'^contact_us/$',
view=contact_us,
name='contact_us'),
url(regex=r'^contact/sent/$',
view='django.views.generic.simple.direct_to_template',
name='message_sent',
kwargs={'template': 'core/message_sent.html'}),
url(regex=r'^logout/$',
view='django.contrib.auth.views.logout',
name='logout',
kwargs={'next_page': '/'}),
url(regex=r'^resend_activation_email/$',
view=resend_activation_email,
name='resend_activation_email'),
url(regex=r'^tos/$',
view='django.views.generic.simple.direct_to_template',
name='tos',
kwargs={'template': 'tos.html'}),
url(regex=r'^changelog/$',
view='django.views.generic.simple.direct_to_template',
name='changelog',
kwargs={'template': 'changelog.html'}),
url(r'^home/', include('core.urls')),
url(r'^contact/', include('contact.urls')),
url(r'^project/', include('project.urls')),
url(r'^accounts/', include('accounts.urls')),
url(r'^issues/', include('bugtracker.urls')),
url(r'^user/', include('registration_urls')),
url(r'^newsletter/', include('newsletter.urls')),
url(r'^backup/', include('backup.urls')),
url(r'^faq/', include('faq.urls')),
url(r'^forum/', include('forum.urls')),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)