2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url, patterns, include from django.contrib import admin from django.contrib.auth import views as auth_views from core.views import MainView from core.views import RequestsView, RequestView, QuotaRequestView from core.views import populate_quota_store, reset_quota_and_requests from django.conf import settings from django.conf.urls.static import static urlpatterns = patterns( '', url(r'^admin/', admin.site.urls), url(r'^play/$', MainView.as_view()), url(r'^$', auth_views.login, {'template_name': 'login.html'}, name='login'), url(r'login/$', auth_views.login, {'template_name': 'login.html'}, name='login'), url(r'^registration$', 'core.views.registration', name='registration'), url(r'^dashboard$', 'core.views.dashboard', name='dashboard'), url(r'^requests$', RequestsView.as_view(), name="requests"), url('^request/(?P<pk>[0-9]+)/$', RequestView.as_view(), name='request_detail'), url(r'^create_request', 'core.views.createRequest', name='create_request'), url(r'^update_request', 'core.views.updateRequest', name='update_request'), url(r'^set_limit', 'core.views.set_limit', name='set_limit'), url(r'^quotarequest$', 'core.views.quotarequest', name='quotarequest'),
from django.conf.urls import * from core.views import MainView, LoginView, LogoutView, RegistrationView, TaskCreateView, TaskListView, TaskUpdateView, \ TaskDeleteView urlpatterns = ( url(r'^login/$', LoginView.as_view(), name='login'), url(r'^logout/$', LogoutView.as_view(), name='logout'), url(r'^registration/$', RegistrationView.as_view(), name='registration'), url(r'^task-update/(?P<pk>[0-9]+)/$', TaskUpdateView.as_view(), name='task_update'), url(r'^task-list/$', TaskListView.as_view(), name='task_list'), url(r'^task-create/$', TaskCreateView.as_view(), name='task_create'), url(r'^task-delete/(?P<pk>[0-9]+)/$', TaskDeleteView.as_view(), name='task_delete'), url(r'^$', MainView.as_view(), name='mainpage'), )
"""Uploads 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, include from django.conf import settings from django.conf.urls.static import static from core.views import MainView, file_upload_view urlpatterns = [ path('admin/', admin.site.urls), path('', MainView.as_view(), name='main-view'), path('upload/', file_upload_view, name='upload-view'), ] #urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
"""application URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 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 core.views import MainView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^blogs/', include('blogs.urls', namespace='blogs')), url(r'^comments/', include('comments.urls', namespace='comments')), url(r'^main/', include('core.urls', namespace='core')), url(r'^$', MainView.as_view(), name="main"), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
from django.contrib import admin from django.urls import path from core.views import MainView,ProfessorListView,ProfessorModalCreateView from core.views import ProfessorTableListView,ProfessorDeleteView,ProfessorModalUpdateView urlpatterns = [ path('', MainView.as_view(),name='main-page'), path('professor/', ProfessorListView.as_view(),name='professor-list'), path('professor/create/', ProfessorModalCreateView.as_view(),name='professor-create'), path('professor/list/',ProfessorTableListView.as_view(),name='professor-table-list'), path('professor/<int:pk>/edit', ProfessorModalUpdateView.as_view(),name='professor-edit'), path('professor/<int:pk>/delete', ProfessorDeleteView.as_view(),name='professor-delete'), ]
from django.urls import path from core.views import MainView, DataPointsApiView, ViewConfig, GraphData app_name = "core" urlpatterns = [ path("api/data-points", DataPointsApiView.as_view(), name="data-points"), path("api/graph-data", GraphData.as_view(), name="graph"), path("api/config", ViewConfig.as_view(), name="config"), path("", MainView.as_view(), name="main") ]
"""dtu_test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 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 a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import include, url from django.contrib import admin from core.views import MainView urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^', MainView.as_view(), name='main'), ]
#-*- coding: utf-8 -*- from django.conf.urls import url from django.contrib import admin from django.conf.urls import include, url from core.views import MainView from django.conf.urls.static import static from django.conf import settings admin.autodiscover() urlpatterns = [ url(r'^kredit/', include('kredit.urls')), url(r'^core/', include('core.urls')), url(r'^admin/', admin.site.urls), url(r'^$', MainView.as_view(), name='main_view'), url(r'^ckeditor/', include('ckeditor_uploader.urls')), ] # static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)