from howtobuy.views import HowToBuyView from news.views import RssNewsListFeed, AtomNewsListFeed from goods.views import RssGoodListFeed, AtomGoodsListFeed urlpatterns = [ path('admin/', admin.site.urls), re_path(r'login/', login_view, name='login'), re_path(r'logout/', logout_view, name='logout'), re_path(r'^', include('main.urls')), re_path(r'^guestbook/', include('guestbook.urls')), re_path(r'^news/', include('news.urls')), re_path(r'^imagepool/', include('imagepool.urls')), re_path(r'^categories/', include('categories.urls')), re_path(r'goods/', include('goods.urls')), re_path(r'comment/', include('django_comments.urls')), re_path(r'^blog/', include('blog.urls')), re_path(r'^about/', AboutView.as_view(), name='about'), re_path(r'^contacts/', ContactsView.as_view(), name='contacts'), re_path(r'^howtobuy/', HowToBuyView.as_view(), name='howtobuy'), re_path(r'^feed/rss/', RssNewsListFeed(), name='news_feed_rss'), re_path(r'^feed/atom/', AtomNewsListFeed(), name='news_feed_atom'), re_path(r'^(?P<pk>\d+)/feed/rss/', RssGoodListFeed(), name='goods_feed_rss'), re_path(r'^(?P<pk>\d+)/feed/atom/', AtomGoodsListFeed(), name='goods_feed_atom') ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
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.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)