Guest User

Untitled

a guest
Jul 17th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. from django.conf.urls.defaults import *
  4. from django.contrib import admin
  5. from django.views.generic.simple import direct_to_template
  6. from cms.news.models import pnews, Tag
  7. from feeds import *
  8. from django.conf import settings
  9.  
  10. site_feeds = {'news':NewsFeed}
  11. admin.autodiscover()
  12.  
  13. urlpatterns = patterns('',
  14. (r'^admin/(.*)', admin.site.root),
  15. url(r'^news/$', 'cms.news.views.index', name='gmsnews'),
  16. url(r'^news/page/(?P<pnews_id>\d+)/$', 'cms.news.views.details', name='gmsdetails'),
  17. (r'^accounts/', include('userprofile.urls')),
  18. (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict':site_feeds}),
  19. (r'^comments/', include('django.contrib.comments.urls')),
  20. (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
  21. {'document_root': settings.MEDIA_ROOT}),
  22. url(r'^contact/$', 'cms.news.views.contact', name='gmscontact'),
  23. (r'^contact/contact/thanks/', 'cms.news.views.thanks'),
  24. (r'^photologue/', include('photologue.urls')),
  25. url(r'^news/tag/(?P<tag_id>\d+)/$', 'cms.news.views.view_tag', name='tagurl'),
  26. url(r'^(?P<category_id>\d+)/$', 'cms.news.views.view_category', name='categoryurl')
  27. url(r'^(?P<category_id>\d+)/(?P<pnews_id>\d+)/$', 'cms.news.views.details', name='contentdetails')
  28. )
Add Comment
Please, Sign In to add comment