setting
INSTALLED_APPS = [
‘django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
‘app’,
]
two/urls****
from django.contrib import admin
from django.urls import path, include
from two.app import urls as app_urls
urlpatterns = [
path(‘admin/’, admin.site.urls),
path(’’, include(app_urls))
]
views*
from django.http import HttpResponse
def index(request):
return HttpResponse(‘hello django2!’)
app/urls*
from django.conf.urls import url
from .views import index
urlpatterns = [
url(’’,index)
]