-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
executable file
·29 lines (25 loc) · 1.03 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
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from django.views.generic import TemplateView
from news.feeds import LatestEntriesFeed
admin.autodiscover()
urlpatterns = patterns('',
url(r'^', include('app.urls')),
url(r'^', include('polls.urls')),
url(r'^rss/$', LatestEntriesFeed(), name="rss_feed"),
(r'^admin/', include(admin.site.urls)),
(r'^tinymce/', include('tinymce.urls')),
(r'^grappelli/', include('grappelli.urls')),
(r'^comments/', include('django.contrib.comments.urls')),
url(r'^admin_tools/', include('admin_tools.urls')),
url(r'^admin/filebrowser/', include('filebrowser.urls')),
url(r'^robot.txt', TemplateView.as_view(template_name="robot.txt")),
url(r'^', include('cms.urls')),
)
if settings.DEBUG:
urlpatterns = patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
url(r'', include('django.contrib.staticfiles.urls')),
) + urlpatterns