Beispiel #1
0
from django.urls import path

from home.views import Home, Contact, PostDescriptionView, About

urlpatterns = [
    path('', Home.as_view(), name='home'),
    path('contact/', Contact.as_view(), name='contact'),
    path('about-me/', About.as_view(), name='about'),
    path('<str:slug>/', PostDescriptionView.as_view(), name='post-decription')
]
Beispiel #2
0
    permission_classes=(permissions.AllowAny,),
)


admin.site.site_header = "Мега Интерфейс"
admin.site.site_title = "Интерфейс"


urlpatterns = [
    path("yandex-market/", include("yandex_market.urls"), name="yandex-market"),
    path("elastic-file-create/", elastic_file_create, name="elastic-create"),
    path(
        "robots.txt",
        TemplateView.as_view(template_name="robots.txt", content_type="text/plain"),
    ),
    path("", Home.as_view(), name="home"),
    path("documentation/", DocumentationView.as_view(), name="documentation"),
    path("admin/", admin.site.urls),
    path(
        "accounts/register/",
        RegistrationView.as_view(
            form_class=CustomUserForm,
            success_url="/",
        ),
        name="django_r",
    ),
    path("stats/", include("stats.urls")),
    path("orders/", include("orders.urls")),
    path("accounts/", include("django.contrib.auth.urls")),
    path("accounts/", include("django_registration.backends.one_step.urls")),
    path("product/", include("product.urls"), name="product-main"),
Beispiel #3
0
from django.urls import path, include
from django.contrib.auth import views as auth_views

from home.views import Home

urlpatterns = [
    path('', Home.as_view(), name="home"),
    path('login/', auth_views.LoginView.as_view(template_name='home/login.html'), name="login"),
    path('logout/', auth_views.LogoutView.as_view(template_name='home/login.html'), name="logout"),
    
]
Beispiel #4
0
from django.contrib.auth import views as auth_views
from django.urls import path

from home.views import Home

app_name = 'accounts'
urlpatterns = [
    path('login/',
         auth_views.LoginView.as_view(), {
             'template_name': 'login.html',
             'success_url': ''
         },
         name='login'),
    path('logout/',
         auth_views.LogoutView.as_view(), {'template_name': 'logout.html'},
         name='logout'),
    path('password_change/',
         auth_views.PasswordChangeView.as_view(),
         name='password_change'),
    path('password_change/done/',
         auth_views.PasswordChangeDoneView.as_view(),
         name='password_change_done'),
    path('profile/', Home.as_view()),
]
Beispiel #5
0
from django.conf.urls import include, url
from django.contrib import admin
from home.views import Home
Trigger  build
urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', Home.as_view()),
    url(r'^accounts/', include('accounts.urls')),
    url(r'^blog/', include('blog.urls')),
    url(r'^python_quiz/', include('quiz.python_quiz.urls')),
]
Beispiel #6
0
from django.conf.urls import patterns, include, url

from home.views import Home


urlpatterns = patterns('home.views',
    # Examples:
    # url(r'^$', 'cowhite.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', Home.as_view(), name='homepage'),
)
Beispiel #7
0
"""railway_reservation URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from home.views import Home, Register, Booking, TicketReservation
import home.views as home_views

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', Home.as_view(), name='site_home'),
    path('register/', Register.as_view(), name='site_register'),
    path('booking/', Booking.as_view(), name='site_booking'),
    path('reservation/', TicketReservation.as_view(), name='site_reservation'),
    path('logout/', home_views.logout, name='site_logout'),
]
Beispiel #8
0
from django.conf.urls.defaults import patterns, include, url
from django.views.generic import TemplateView
from home.views import Home, Wizard, Step, StoreSelection, ProcessTest, ProcessStep3, SubmitTest, ThankYou, IE7Test #,ThankYouIE7


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    #(r'^$', TemplateView.as_view(template_name="home.html")),
    (r'^$', Home.as_view()),
    (r'^startwizard', Wizard.as_view()),
    #(r'^wizard', 'home.views.step'),
    (r'^wizard', Step.as_view()),
    (r'^storeselection', StoreSelection.as_view()),
    (r'^processtest', ProcessTest.as_view()),
    (r'^processtoekomst', ProcessStep3.as_view()),
    (r'^submittest', SubmitTest.as_view()),
    (r'^thankyou', ThankYou.as_view()),
    (r'^colo', include('colo.urls')),
    ('^ie7test', IE7Test.as_view()),
    #('^ie7thankyou', ThankYouIE7.as_view()),
    # Examples:
    # url(r'^$', 'testmijnervaring.views.home', name='home'),
    # url(r'^testmijnervaring/', include('testmijnervaring.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
Beispiel #9
0
from django.conf.urls import url

from home.views import List
from home.views import Home
from . import views

urlpatterns = [
    url(r'^list/$', List.as_view(), name='user_list'),
    url(r'^$', Home.as_view(), name='home'),
    url(r'^new/$', views.user_new, name='user_new'),
]
Beispiel #10
0
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required

from home.views import Home, Success

urlpatterns = patterns('',
    url(r'^$', login_required(Home.as_view()), name='home'),
    url(r'^success/$', login_required(Success.as_view()), name='success'),
)
Beispiel #11
0
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.contrib import admin

from home.views import Home, Contact

from accounts.views import Login, CheckUser, LogOut

from django.conf import settings

from django.conf.urls.static import static

import notifications.urls

urlpatterns = [
    url(r'^$', view=Home.as_view(), name="HomePage"),
    url(r'^account/', include('accounts.urls')),
    url(r'^admin/', admin.site.urls),
    url(r'^login/$', view=Login.as_view(), name="Login"),
    url(r'^loggedin/$', view=CheckUser.as_view(), name="Loggedin"),
    url(r'^logout/$', view=LogOut.as_view(), name="Logout"),
    url(r'^messaging/', include('messaging.urls')),
    url(r'^listings/', include('listings.urls')),
    url(r'^appointment/', include('appointments.urls')),
    url('^notifications/',
        include(notifications.urls, namespace='notifications')),
    url(r'^contact/$', Contact.as_view(), name="Contact")
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Beispiel #12
0
import resume
"""hyperjob URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

urlpatterns = [
    path('admin/', admin.site.urls),
    path("", MainMenu.as_view()),
    path("vacancies", vacancy_index),
    path("resumes", resume_index),
    path("signup", SignUp.as_view()),
    path("login", Login.as_view()),
    path("home", Home.as_view()),
    path("resume/new", resume.views.New.as_view()),
    path("vacancy/new", vacancy.views.New.as_view()),
]
Beispiel #13
0
    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. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from home.views import Home

urlpatterns = [
    url("^$", Home.as_view(), name='home'),
    url("^chats/", Home.as_view(), name='home'),
    url(r'^admin/', admin.site.urls),
    url(r'^home/', include('home.urls', namespace='home')),
    url(r'^search/', include('search.urls', namespace='search')),
    url(r'^live/', include('live.urls', namespace='live')),

    # url("^$", home_page, name='home'),
]

if settings.DEBUG:
    urlpatterns = urlpatterns + static(settings.STATIC_URL,
                                       document_root=settings.STATIC_ROOT)
    urlpatterns = urlpatterns + static(settings.MEDIA_URL,
                                       document_root=settings.MEDIA_ROOT)
Beispiel #14
0
Datei: urls.py Projekt: FvD/InLOC
from rest_framework.reverse import reverse

from auth.views import LogOut, LogIn
from home.views import Home
from loc.views import LOCDefitionView, LOCStructureView, RdfView, JsonView, TestView
from utils.views import XMLImportView

admin.autodiscover()

urlpatterns = patterns('',

    #(r'^json/test/$', TestView.as_view()),
    (r'^api/', include('api.urls')),
    (r'^view/locdefinition/(?P<id>[0-9]+)/$', LOCDefitionView.as_view()),
    (r'^view/locstructure/(?P<id>[0-9]+)/$', LOCStructureView.as_view()),
    #(r'^view/locstructure/(?P<id>[0-9]+)/$', JsonView.as_view()),
    (r'^view/rdf/(?P<id>[0-9]+)/$', RdfView.as_view()),
    (r'^view/json/(?P<id>[0-9]+)/$', JsonView.as_view()),

    (r'^grappelli/', include('grappelli.urls')),
    (r'^partials/', include('partials.urls')),

    (r'^import/', XMLImportView.as_view()),

    (r'^logout/', LogOut.as_view()),
    (r'^login/', LogIn.as_view()),
    (r'^admin/logout/', LogOut.as_view()),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^', Home.as_view()),
)