from customers.views import TenantView, ManagerAppView from django.urls import path, include from django.conf.urls.static import static from django.conf import settings from rest_framework_jwt.views import obtain_jwt_token from django.contrib import admin urlpatterns = [ path("", TenantView.as_view()), path("manager/", ManagerAppView.as_view()), path("auth/", include('users.urls')), path("api/", include('core.urls')), path('admin/', admin.site.urls), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from customers.views import TenantView from django.conf.urls import url, include urlpatterns = [ url(r'^(?P<db>\w+)/$', TenantView.as_view()), ]
from customers.views import TenantView from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^$', TenantView.as_view()), url(r'^admin/', include(admin.site.urls)), ]
from customers.views import TenantView, TenantViewRandomForm, TenantViewFileUploadCreate from django.contrib import admin from django.urls import path urlpatterns = [ path('', TenantView.as_view(), name="index"), path('sample-random/', TenantViewRandomForm.as_view(), name="random_form"), path('upload-file/', TenantViewFileUploadCreate.as_view(), name="upload_file"), path('admin/', admin.site.urls), ]
from customers.views import TenantView from django.contrib import admin from django.urls import path urlpatterns = [ path('', TenantView.as_view()), path('admin/', admin.site.urls), ]
from django.conf.urls import patterns, url from customers.views import TenantView urlpatterns = [ url(r'^$', TenantView.as_view()), ]