예제 #1
0
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)
예제 #2
0
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'),
]
예제 #3
0
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)
예제 #4
0
from django.conf.urls import url
from contacts.views import ContactsView

urlpatterns = [
    url(r'^$', ContactsView.as_view(), name='contacts'),
]
예제 #5
0
파일: urls.py 프로젝트: jagger909/antkznru
from django.urls import path

from contacts.views import ContactsView

urlpatterns = [
    path('', ContactsView.as_view(), name="contact_index"),
]