"""lokotex URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/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 django.conf.urls.static import static from page.views import Home from page.api.views import MileageListAPIView urlpatterns = [ path('admin/', admin.site.urls), path('api/', MileageListAPIView.as_view(), name='mileages-api'), # path('myapi/', get_data, name='mileages-api'), path('', Home.as_view(), name='home'), ]
from page.views import AddLangRequest from page.views import GetLangRequest from page.views import RemoveLangRequest from page.views import SearchPeople from page.views import SearchPeopleRequest from page.views import UploadRequest from page.views import Messages urlpatterns = patterns('', # Examples: # url(r'^$', 'meetglobo.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^$', Home.as_view()), url(r'^register/$', Register.as_view()), url(r'^login/$', Login.as_view()), url(r'^logout/$', LogOut.as_view()), url(r'^editprofile', EditProfileView.as_view()), url(r'^aboutus/$', AboutUs.as_view()), url(r'^register_request/$', RegisterRequestView.as_view()), url(r'^activation/(?P<suffix>[a-zA-Z1-9=.,*]+)$', ActivationView.as_view()), url(r'^login_request/$', LoginRequestView.as_view()), url(r'^addLang_request/$', AddLangRequest.as_view()), url(r'^getLang_request/$', GetLangRequest.as_view()), url(r'^removeLang_request/$', RemoveLangRequest.as_view()), url(r'^searchpeople/$', SearchPeople.as_view()), url(r'^searchpeople_request/$', SearchPeopleRequest.as_view()), url(r'^upload_request/$', UploadRequest.as_view()), url(r'^messages/$', Messages.as_view()),
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from page.views import Home, Coc admin.autodiscover() urlpatterns = patterns('', url(r'^$', Home.as_view(), name='home'), url(r'^coc$', Coc.as_view(), name='coc'), # admin url(r'^admin/', include(admin.site.urls)), (r'^summernote/', include('django_summernote.urls')), ) # static files (for app) urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) # media files (for user) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)