from django.views.generic import TemplateView from endless_pagination.decorators import ( page_template, page_templates, ) from project.views import generic # Avoid lint errors for the following Django idiom: flake8: noqa. urlpatterns = [ url(r'^$', TemplateView.as_view(template_name="home.html"), name='home'), url(r'^complete/$', page_templates({ 'complete/objects_page.html': 'objects-page', 'complete/items_page.html': 'items-page', 'complete/entries_page.html': 'entries-page', 'complete/articles_page.html': 'articles-page', })(generic), { 'template': 'complete/index.html', 'number': 21 }, name='complete'), url(r'^digg/$', page_template('digg/page.html')(generic), {'template': 'digg/index.html'}, name='digg'), url(r'^twitter/$', page_template('twitter/page.html')(generic), {'template': 'twitter/index.html'}, name='twitter'), url(r'^onscroll/$',
page_template, page_templates, ) from project.views import generic # Avoid lint errors for the following Django idiom: flake8: noqa. urlpatterns = [ url(r'^$', TemplateView.as_view(template_name="home.html"), name='home'), url(r'^complete/$', page_templates({ 'complete/objects_page.html': 'objects-page', 'complete/items_page.html': 'items-page', 'complete/entries_page.html': 'entries-page', 'complete/articles_page.html': 'articles-page', })(generic), {'template': 'complete/index.html', 'number': 21}, name='complete'), url(r'^digg/$', page_template('digg/page.html')(generic), {'template': 'digg/index.html'}, name='digg'), url(r'^twitter/$', page_template('twitter/page.html')(generic), {'template': 'twitter/index.html'}, name='twitter'), url(r'^onscroll/$', page_template('onscroll/page.html')(generic), {'template': 'onscroll/index.html'},
page_template, page_templates, ) from project.views import base urlpatterns = patterns( '', url(r'^$', TemplateView.as_view(template_name="home.html"), name='home'), url(r'^digg/$', page_template('digg_page.html')(base), {'template': 'digg.html'}, name='digg'), url(r'^twitter/$', page_template('twitter_page.html')(base), {'template': 'twitter.html'}, name='twitter'), url(r'^onscroll/$', page_template('twitter_page.html')(base), {'template': 'onscroll.html'}, name='onscroll'), url(r'^multiple/$', page_templates({ 'multiple_objects_page.html': 'objects-page', 'multiple_items_page.html': 'items-page', 'multiple_entries_page.html': 'entries-page', })(base), { 'template': 'multiple.html', 'number': 21 }, name='multiple'), )
url(r'^patient/add_medication/$',views.patient_add_medication,name="patient_add_medication"), url(r'^patient/submit_add_medication/(?P<patient_id>\w+)/$',views.patient_submit_add_medication,name="patient_submit_add_medication"), url(r'^patient/add_family/$',views.patient_add_family,name="patient_add_family"), url(r'^patient/submit_add_family/(?P<patient_id>\w+)/$',views.patient_submit_add_family,name="patient_submit_add_family"), url(r'^patient/edit_allergy/$',views.patient_edit_allergy,name="patient_edit_allergy"), url(r'^patient/submit_edit_allergy/(?P<patient_allergy_id>\w+)/$',views.patient_submit_edit_allergy,name="patient_submit_edit_allergy"), url(r'^patient/edit_condition/$',views.patient_edit_condition,name="patient_edit_condition"), url(r'^patient/submit_edit_condition/(?P<patient_condition_id>\w+)/$',views.patient_submit_edit_condition,name="patient_submit_edit_condition"), url(r'^patient/edit_medication/$',views.patient_edit_medication,name="patient_edit_medication"), url(r'^patient/submit_edit_medication/(?P<patient_medication_id>\w+)/$',views.patient_submit_edit_medication,name="patient_submit_edit_medication"), url(r'^patient/edit_family/$',views.patient_edit_family,name="patient_edit_family"), url(r'^patient/submit_edit_family/(?P<patient_family_id>\w+)/$',views.patient_submit_edit_family,name="patient_submit_edit_family"), #check-list contents url(r'^category/$', views.category_show, name = 'category_show'), url(r'^(?P<goal_id>\w+)/check_lists/$',page_templates({'icare/content/checklist_index_page.html':'checklist_object','icare/content/checklist_index_question_page.html':'question_object'})(views.checklist_index),{'template':'icare/content/checklist_index.html'}, name = 'checklist_index'), url(r'^checklist/my_checklist/(?P<user_id>\w+)/$',page_template('icare/patient/user_checklist_index_page.html')(views.checklist_person),{'template':'icare/patient/user_checklist_index.html'}, name='checklist_person'), url(r'^checklist/thanks_checklist/$', views.thanks_checklist, name="thanks_checklist"), url(r'^checklist/doctor_add_checklist/(?P<topic_id>\w+)/$', views.checklist_doctor_add, name="checklist_doctor_add"), url(r'^item/edit/(?P<checklist_id>\w+)/$', views.doctor_edit_checklist,name="doctor_edit_checklist"), url(r'^item/add/$',views.item_add,name="add_item"), url(r'^item/submit/(?P<checklist_id>\w+)/$',views.item_submit, name="item_submit"), url(r'^item/delete/$',views.item_delete,name="item_delete"), url(r'^checklist/patient_add_checklist/$', views.add_checklist, name="add_checklist"), url(r'^checklist/agree_checklist/$', views.agree_checklist, name="agree_checklist"), url(r'^user_checklist_item/complete/$',views.item_complete, name="item_complete"), url(r'^patient_checklist/delete/$', views.checklist_delete, name="checklist_delete"), #add question to goal url(r'^question/post/goal/(?P<goal_id>\w+)/',views.goal_question_add,name="goal_question_add"), #user follow topic
) from project.views import base urlpatterns = patterns('', url(r'^$', TemplateView.as_view(template_name="home.html"), name='home'), url(r'^digg/$', page_template('digg_page.html')(base), {'template': 'digg.html'}, name='digg'), url(r'^twitter/$', page_template('twitter_page.html')(base), {'template': 'twitter.html'}, name='twitter'), url(r'^onscroll/$', page_template('twitter_page.html')(base), {'template': 'onscroll.html'}, name='onscroll'), url(r'^multiple/$', page_templates({ 'multiple_objects_page.html': 'objects-page', 'multiple_items_page.html': 'items-page', 'multiple_entries_page.html': 'entries-page', })(base), {'template': 'multiple.html', 'number': 21}, name='multiple'), )