-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
26 lines (20 loc) · 979 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
from django.conf.urls.defaults import *
from codetonic.blog.models import LatestEntries
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
feeds = {'latest': LatestEntries}
urlpatterns = patterns('',
url(r'^admin/blog/blogentry/(?P<object_id>[0-9]+)/preview/$','codetonic.blog.views.preview'),
(r'^admin/', include(admin.site.urls)),
(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
(r'^', include ('codetonic.main.urls')),
# Rating
url(r'^rating/$', 'codetonic.rating.views.record_vote'),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Static Media
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/Users/manuel/Django-projects/codetonic/media'})
)