from django.conf.urls import patterns, url from publicmarkup.legislation.feeds import LegislationComments from publicmarkup.legislation.models import Legislation from publicmarkup.legislation.views import Index, legislation_detail, legislation_print, title_detail, section_detail feeds = { "comments": LegislationComments, } urlpatterns = patterns( '', url(r'^$', Index.as_view(), name="index"), url(r'^bill/$', 'bill', name='bill'), url(r'^bill/(?P<legislation_slug>[-\w]+)/$', legislation_detail, name='legislation_detail'), url(r'^bill/(?P<legislation_slug>[-\w]+)/print/$', legislation_print, name='legislation_print'), url(r'^bill/(?P<legislation_slug>[-\w]+)/(?P<title_num>\d+)/$', title_detail, name='title_detail'), url(r'^bill/(?P<legislation_slug>[-\w]+)/(?P<title_num>\d+)/(?P<section_num>\d+)/$', section_detail, name='section_detail'), url(r'^feed/comments/$', LegislationComments()), )
from django.conf import settings from django.conf.urls import patterns, include, url from django.contrib import admin from publicmarkup.legislation.views import Index admin.autodiscover() urlpatterns = patterns( '', url(r'^about/$', 'publicmarkup.views.about'), url(r'^admin/', include(admin.site.urls)), url(r'^comments/postfree/$', 'publicmarkup.legislation.views.save_free_comment'), url(r'^comments/', include('django.contrib.comments.urls')), url(r'^comments/', Index.as_view()), url(r'^contact/$', 'publicmarkup.views.contact'), url(r'^signup/$', 'publicmarkup.views.signup'), url(r'^', include('publicmarkup.legislation.urls')), ) urlpatterns += patterns( 'django.contrib.auth.views', url(r'^login/$', 'login', {'template_name': 'login.html'}, name="login"), url(r'^logout/$', 'logout_then_login', name="logout"), )
from django.conf.urls import patterns, url from publicmarkup.legislation.feeds import LegislationComments from publicmarkup.legislation.models import Legislation from publicmarkup.legislation.views import Index, legislation_detail, legislation_print, title_detail, section_detail feeds = { "comments": LegislationComments, } urlpatterns = patterns('', url(r'^$', Index.as_view(), name="index"), url(r'^bill/$', 'bill', name='bill'), url(r'^bill/(?P<legislation_slug>[-\w]+)/$', legislation_detail, name='legislation_detail'), url(r'^bill/(?P<legislation_slug>[-\w]+)/print/$', legislation_print, name='legislation_print'), url(r'^bill/(?P<legislation_slug>[-\w]+)/(?P<title_num>\d+)/$', title_detail, name='title_detail'), url(r'^bill/(?P<legislation_slug>[-\w]+)/(?P<title_num>\d+)/(?P<section_num>\d+)/$', section_detail, name='section_detail'), url(r'^feed/comments/$', LegislationComments()), )