My first app with Django

Tree of my first app with Django

$ tree
.
├── first_project
│   ├── db.sqlite3
│   ├── first_app
│   │   ├── __init__.py
│   │   ├── __pycache__
│   │   │   ├── __init__.cpython-38.pyc
│   │   │   ├── admin.cpython-38.pyc
│   │   │   ├── models.cpython-38.pyc
│   │   │   └── views.cpython-38.pyc
│   │   ├── admin.py
│   │   ├── apps.py
│   │   ├── migrations
│   │   │   ├── __init__.py
│   │   │   └── __pycache__
│   │   │       └── __init__.cpython-38.pyc
│   │   ├── models.py
│   │   ├── tests.py
│   │   └── views.py
│   ├── first_project
│   │   ├── __init__.py
│   │   ├── __pycache__
│   │   │   ├── __init__.cpython-38.pyc
│   │   │   ├── settings.cpython-38.pyc
│   │   │   ├── urls.cpython-38.pyc
│   │   │   └── wsgi.cpython-38.pyc
│   │   ├── asgi.py
│   │   ├── settings.py
│   │   ├── urls.py
│   │   └── wsgi.py
│   └── manage.py
└── installation_message.log

7 directories, 24 files

File first_app/views.py

  1 from django.shortcuts import render
  2 from django.http import HttpResponse
  3 # Create your views here.
  4 
  5 def index(request):
  6     return HttpResponse("Hello World!") 

File first_project/urls.py

  1 """first_project URL Configuration 
  2 
  3 The `urlpatterns` list routes URLs to views. For more information please see:
  4     https://docs.djangoproject.com/en/3.1/topics/http/urls/
  5 Examples:
  6 Function views
  7     1. Add an import:  from my_app import views
  8     2. Add a URL to urlpatterns:  path('', views.home, name='home')
  9 Class-based views
 10     1. Add an import:  from other_app.views import Home
 11     2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
 12 Including another URLconf
 13     1. Import the include() function: from django.urls import include, path
 14     2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
 15 """
 16 from django.contrib import admin
 17 from django.urls import path
 18 from django.conf.urls import url
 19 from first_app import views                                                                                                                                
 20 
 21 urlpatterns = [
 22     url(r'^$',views.index,name='index'),
 23     path('admin/', admin.site.urls),
 24 ]