from django.conf.urls import include, url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from cms.views import LoginView, LogoutView, AdminView, ProjectView, ProjectAddView, ProjectDeleteView urlpatterns = [ url(r"^login/$", LoginView.as_view(), name="login"), url(r"^logout/$", LogoutView.as_view(), name="logout"), url(r"^main/$", AdminView.as_view(), name="admin-main"), url(r"^projects/$", ProjectView.as_view(), name="projects"), url(r"^projects/add/$", ProjectAddView.as_view(), name="projects-add"), url(r"^projects/(?P<pk>[0-9]+)/delete/$", ProjectDeleteView.as_view(), name="projects-delete"), # url(r'^projects/(?P<pk>[0-9]+)/update/$', ProjectUpdateView.as_view(), name='projects.update'), ]
url(r'^$', HomepageView.as_view(), name='homepage_url'), url(r'^news/$', NewsView.as_view(), name='news_url'), url(r'^news/(?P<pk>\d+)/(?P<slug>\w+)/$', NewsDetailView.as_view(), name='news_detail_url'), ) urlpatterns += ( url(r'^page/create/$', CreatePageView.as_view(), name='create_page_url'), url(r'^page/s/(?P<slug>\w+)/$', PageDetailView.as_view(), name='page_url'), url(r'^page/(?P<pk>\d+)/edit/$', EditPageView.as_view(), name='edit_page_url'), url(r'^page/(?P<pk>\d+)/delete/$', DeletePageView.as_view(), name='delete_page_url'), url(r'^page/all/$', PageAllView.as_view(), name='pages_all_url'), ) urlpatterns += ( url(r'^project/create/$', CreateProjectView.as_view(), name='create_project_url'), url(r'^project/all/$', ProjectView.as_view(), name='projects_url'), url(r'^project/all/(?P<year>\d+)/$', ProjectView.as_view(), name='projects_year_url'), url(r'^project/all/(?P<year>\d+)/#(?P<pk>\d+)$', ProjectView.as_view(), name='projects_year_pk_url'), url(r'^project/(?P<pk>\d+)/edit/$', EditProjectView.as_view(), name='edit_project_url'), url(r'^project/(?P<pk>\d+)/delete/$', DeleteProjectView.as_view(), name='delete_project_url'), ) urlpatterns += ( url(r'^blog/all/$', BlogsYearView.as_view(), name='blogs_url'), url(r'^blog/home/$', BlogsPeopleView.as_view(), name='blogs_people_url'), url(r'^blog/all/(?P<year>\d+)/$', BlogsYearView.as_view(), name='blogs_year_url'), url(r'^blog/all/(?P<year>\d+)/(?P<month>\d+)/$', BlogsMonthView.as_view(), name='blogs_month_url'), url(r'^blog/rss/$', BlogFeed(), name='blogs_rss_url'), ) urlpatterns += (