from django.conf.urls import include, url from tenant_tutorial.views import HomeView from django.contrib import admin urlpatterns = [ url(r'^$', HomeView.as_view()), url(r'^admin/', include(admin.site.urls)), ]
from django.conf.urls import include, url from django.urls import path from tenant_tutorial.views import HomeView from django.contrib import admin urlpatterns = [ path('', HomeView.as_view()), path('admin/', admin.site.urls), ]
from django.conf.urls import url from tenant_tutorial.views import HomeView urlpatterns = [ url(r'^(?P<db>\w+)/$', HomeView.as_view()), ]
import django from django.conf.urls import url from tenant_tutorial.views import HomeView urlpatterns = [ url(r'^$', HomeView.as_view()), ] if django.VERSION < (1, 9, 0): urlpatterns = django.conf.urls.patterns('', *urlpatterns)