Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

Commit

Permalink
Fix locate of handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
agusmakmun committed May 1, 2016
1 parent 41f9b69 commit 75076ec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions myproject/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@
from django.contrib.sitemaps.views import sitemap
from blog.models import Entry

from django.conf.urls import (
handler400, handler403, handler404, handler500
)
handler400 = 'views.handler400'
handler403 = 'views.handler403'
handler404 = 'views.handler404'
handler500 = 'views.handler500'

info_dict = {
'queryset': Entry.objects.all(),
'date_field': 'modified',
}

from django.conf.urls import (
handler400, handler403, handler404, handler500
)
handler400 = 'blog.views.handler400'
handler403 = 'blog.views.handler403'
handler404 = 'blog.views.handler404'
handler500 = 'blog.views.handler500'

urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^ckeditor/', include('ckeditor_uploader.urls')),
url(r'^', include('blog.urls')),
url(r'^sitemap\.xml$', sitemap, {'sitemaps': {'blog': GenericSitemap(info_dict, priority=0.6)}}, name='django.contrib.sitemaps.views.sitemap'),
url(r'^robots\.txt/$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
] #+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
] #+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

0 comments on commit 75076ec

Please sign in to comment.