-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
60 lines (56 loc) · 1.91 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
56
57
58
59
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.views.generic.simple import direct_to_template
from os import path as os_path
import os
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
#(r'^$', 'django.views.generic.simple.direct_to_template', {'template' : 'construction.html'}, "home"),
(
r'^$',
'groups.views.homepage',
{},
"home",
),
(
r'^images/(.*)$',
'django.views.static.serve',
{'document_root': os_path.join(settings.PROJECT_PATH, 'media/images')},
'images',
),
(
r'^css/(.*)$',
'django.views.static.serve',
{'document_root': os_path.join(settings.PROJECT_PATH, 'media/css')},
'css',
),
(
r'^images/(.*)$',
'django.views.static.serve',
{'document_root': os_path.join(settings.PROJECT_PATH, 'media/images')},
'images',
),
(
r'^js/(.*)$',
'django.views.static.serve',
{'document_root': os_path.join(settings.PROJECT_PATH, 'media/js')},
'js',
),
(
r'^uploads/(.*)$',
'django.views.static.serve',
{'document_root': os_path.join(settings.PROJECT_PATH, 'media/uploads')},
'uploads',
),
(r'^howto$', 'django.views.generic.simple.direct_to_template', {'template' : 'how_to_1.html'}),
(r'^slideshow', 'django.views.generic.simple.direct_to_template', { 'template' : 'slideshow.html' }),
(r'^forum', 'groups.views.list', {}, 'forum'),
(r'^admin/', include(admin.site.urls)),
(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name' : 'admin/login.html'}),
(r'^', include('cms.urls')),
)
handler404 = 'cms.views.missingpage'