urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^test/$', MainView.as_view()), url(r'^$', MainView.as_view(), name='home'), url(r'^accounts/profile/$', MainView.as_view(), name='home'), url(r'^login/', login, name='login'), url(r'^logout/', logout, name='logout'), url(r'^Volonter/$',VolonterListView.as_view(), name='list_volonter'), url(r'^performance/$',PerListView.as_view(), name='per'), url(r'^Volonter/(?P<pk>\d+)/$',VolonterDetailView.as_view(), name='view_volonter'), url(r'^Volonter/add/',VolonterCreateView.as_view(), name='create_volonter'), url(r'^order/add/$',CreateOrderView.as_view(), name='create_order'), url(r'^advice/$',AviceView.as_view(), name='advice'), url(r'^map/$',MapView.as_view(), name='map_stores'), # url(r'^roat/$',RoatView.as_view(), name='roat'), url(r'^roat/(?P<pk>\d+)/$',RoatView.as_view(), name='roat'), url(r'^about/$',AboutView.as_view(), name='about'), url(r'^need/$',NeedListView.as_view(), name='list_need'), url(r'^support/$',AboutView.as_view(), name='about'), url(r'^need/add/$',NeedCreateView.as_view(), name='create_need'), # url(r'^Volonter/(?P<pk>\d+)/edit/',VolonterUpdateView.as_view(), name='update_volonter'),
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Add an import: from blog import urls as blog_urls 2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) """ from django.conf.urls import include, url from django.contrib import admin from main.views import MainView, VolonterListView, VolonterDetailView, VolonterCreateView, VolonterUpdateView, ChangeConvictionsView urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^test/', MainView.as_view()), url(r'^$', MainView.as_view()), url(r'^volonters/', VolonterListView.as_view(), name='list_volonters'), url(r'^volonter/(?P<pk>\d+)/$', VolonterDetailView.as_view(), name='view_volonter'), url(r'^volonter/add/', VolonterCreateView.as_view(), name='create_volonter'), url(r'^volonter/(?P<pk>\d+)/edit/', VolonterUpdateView.as_view(), name='update_volonter'), url(r'^actions/change_convictions/(?P<volonter_id>\d+)/', ChangeConvictionsView.as_view(), name='change_convictions') ]
2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) """ from django.conf.urls import include, url from django.contrib import admin from main.views import MainView,OrderView, VolonterListView,VolonterGrafikView, VolonterDetailView, VolonterCreateView, OrderDetailView urlpatterns = [ url(r'^admin/', include(admin.site.urls),name='admins'), url(r'^test/', MainView.as_view()), url(r'^$', MainView.as_view()), url(r'^volonters/', VolonterListView.as_view(), name='list_volonters'), url(r'^volonter/(?P<pk>\d+)/$', VolonterDetailView.as_view(), name='view_volonter'), url(r'^volonter/add/$', VolonterCreateView.as_view(), name='create_volonter'), url(r'^orders/$', OrderView.as_view(), name='order_list'), url(r'^orders/(?P<pk>\d+)/$', OrderDetailView.as_view(), name='view_order'), url(r'^volonter/grafik/$', VolonterGrafikView.as_view(), name = 'grafic_volonter', ) ]
GeneralAlgoView, PerListView, FirstAlgoView, ) urlpatterns = [ url(r"^admin/", include(admin.site.urls)), url(r"^test/$", MainView.as_view()), url(r"^$", MainView.as_view(), name="home"), url(r"^accounts/profile/$", MainView.as_view(), name="home"), url(r"^login/", login, name="login"), url(r"^logout/", logout, name="logout"), url(r"^Volonter/$", VolonterListView.as_view(), name="list_volonter"), url(r"^performance/$", PerListView.as_view(), name="per"), url(r"^Volonter/(?P<pk>\d+)/$", VolonterDetailView.as_view(), name="view_volonter"), url(r"^Volonter/add/", VolonterCreateView.as_view(), name="create_volonter"), url(r"^order/add/$", CreateOrderView.as_view(), name="create_order"), url(r"^advice/$", AviceView.as_view(), name="advice"), url(r"^map/$", MapView.as_view(), name="map_stores"), # url(r'^roat/$',RoatView.as_view(), name='roat'), url(r"^roat/(?P<pk>\d+)/$", RoatView.as_view(), name="roat"), url(r"^about/$", AboutView.as_view(), name="about"), url(r"^need/$", NeedListView.as_view(), name="list_need"), url(r"^support/$", AboutView.as_view(), name="about"), url(r"^need/add/$", NeedCreateView.as_view(), name="create_need"), # url(r'^Volonter/(?P<pk>\d+)/edit/',VolonterUpdateView.as_view(), name='update_volonter'), # url(r'^StoreHouse/$',StoreHouseListView.as_view(), name= 'list_StoreHouse'), # url(r'^StoreHouse/(?P<pk>\d+)/$', StoreHouseDetailView.as_view(), name='view_StoreHouse' ), # url(r'^StoreHouse/add/$', StoreHouseCreateView.as_view(), name='create_StoreHouse' ), # url(r'^StoreHouse/(?P<pk>\d+)/edit/', StoreHouseUpdateView.as_view(), name='update_StoreHouse' ), #