diff options
author | Tom Willemse | 2013-05-22 23:46:09 +0200 |
---|---|---|
committer | Tom Willemse | 2013-05-22 23:46:09 +0200 |
commit | d394b2c40ee94394679700e5ff2858e1c95c7262 (patch) | |
tree | bd15438d214eefa15d55f56d4cb2b5d04361e4f5 /ryuslash/urls.py | |
parent | c4684123b3323a9a61fe1eea5b3228086bfcb8ee (diff) | |
download | ryuslash.org-d394b2c40ee94394679700e5ff2858e1c95c7262.tar.gz ryuslash.org-d394b2c40ee94394679700e5ff2858e1c95c7262.zip |
Add Feed to the database
Instead of specifying the feeds to use in the `local_settings.py' file
specify them with the django admin interface. This means that the
`django.contrib.admin', `django.contrib.auth' and all their
dependencies have been added to the project.
Diffstat (limited to 'ryuslash/urls.py')
-rw-r--r-- | ryuslash/urls.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ryuslash/urls.py b/ryuslash/urls.py index 917f2e9..a81f4c7 100644 --- a/ryuslash/urls.py +++ b/ryuslash/urls.py @@ -1,11 +1,16 @@ -from django.conf.urls import patterns, url +from django.conf.urls import include, patterns, url +from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from aggregator.feeds import LatestPostsFeed -urlpatterns = patterns('', - url(r'^((?P<cat>[a-z_-]+)/)?((?P<page>\d+)/)?$', - 'aggregator.views.posts'), - url(r'^feed/posts/$', LatestPostsFeed())) +admin.autodiscover() + +urlpatterns = patterns( + '', + url(r'^admin/', include(admin.site.urls)), + url(r'^((?P<cat>[a-z_-]+)/)?((?P<page>\d+)/)?$', 'aggregator.views.posts'), + url(r'^feed/posts/$', LatestPostsFeed()), +) urlpatterns += staticfiles_urlpatterns() |