from django.conf.urls import patterns, include, url from django.conf import settings from django.conf.urls.static import static from django.contrib import admin admin.autodiscover() from about.views import AboutView from contacts.views import ContactsView from howtobuy.views import HowToBuyView urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^login/', "django.contrib.auth.views.login", name="login"), url(r'^logout/', "django.contrib.auth.views.logout", name="logout"), url(r'^$', include('main.urls')), url(r'^guestbook/', include('guestbook.urls')), url(r'^news/', include('news.urls')), url(r'^imagepool/', include('imagepool.urls')), url(r'^categories/', include('categories.urls')), url(r'^goods/', include('goods.urls')), url(r'^comments/', include("django.contrib.comments.urls")), url(r'^blog/', include('blog.urls')), url(r'^about/', AboutView.as_view(), name="about"), url(r'^contacts/', ContactsView.as_view(), name="contacts"), url(r'^howtobuy/', HowToBuyView.as_view(), name="howtobuy"), ) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.urls import path from contacts.views import ContactsView, ShopsView, FeedBackView urlpatterns = [ path('contacts/', ContactsView.as_view(), name='contacts'), path('shops/', ShopsView.as_view(), name='shops'), path('add-message/', FeedBackView.as_view(), name='feedback'), ]
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from about.views import AboutView from contacts.views import ContactsView from howtobuy.views import HowToBuyView urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^login/', 'django.contrib.auth.views.login', name='login'), url(r'^logout/', 'django.contrib.auth.views.logout', name='logout'), url(r'^$', include('main.urls')), url(r'^guestbook/', include('guestbook.urls')), url(r'^news/', include('news.urls')), url(r'^imagepool/', include('imagepool.urls')), url(r'^categories/', include('categories.urls')), url(r'^goods/', include('goods.urls')), url(r'^comments/', include("django_comments.urls")), url(r'^blog/', include("blog.urls")), ] urlpatterns += [ url(r'^about/', AboutView.as_view(), name='about'), url(r'^contacts/', ContactsView.as_view(), name='contacts'), url(r'^howtobuy/', HowToBuyView.as_view(), name='howtobuy'), ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.conf.urls import url from contacts.views import ContactsView urlpatterns = [ url(r'^$', ContactsView.as_view(), name='contacts'), ]
from django.urls import path from contacts.views import ContactsView urlpatterns = [ path('', ContactsView.as_view(), name="contact_index"), ]