예제 #1
0
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)),
]
예제 #2
0
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),
    ]
예제 #3
0
from django.conf.urls import url
from tenant_tutorial.views import HomeView

urlpatterns = [
    url(r'^(?P<db>\w+)/$', HomeView.as_view()),
]
예제 #4
0
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)
예제 #5
0
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),
]