-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
20 lines (17 loc) · 865 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.simple import direct_to_template
from django_tumblog_proj.apps.tumblog.blog.feeds import BlogPostFeed, AllItemsFeed
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^admin/', include(admin.site.urls)),
url(r'^$', 'django_tumblog_proj.apps.tumblog.entries.views.homepage', name='homepage'),
url(r'^blog/', include('django_tumblog_proj.apps.tumblog.urls')),
url(r'^page/(\S+)/$', 'django_tumblog_proj.apps.pages.views.singlepage'),
url(r'^mdst-midterm/$', direct_to_template, {'template': 'mdst_midterm.html'}),
url(r'^feed/$', BlogPostFeed()),
url(r'^feed/allitems$', AllItemsFeed()),
)
urlpatterns += staticfiles_urlpatterns()