Create a base Django project
Before you can add a new application to your Django project, you need to create it. You can learn how to do this from this article.Once you have read this article and created your application, you can move on to the next chapter.
Commands to create a Django app
We will start a new app, App1.
In settings.py, register a new app.
Commands to configure URLs
Connect the app’s URLs to project.
In a file urls.py
In a file views.py add:
Create directories in Project1/App1
Create an empty template.
Only one thing left, connect URLs in a file Project1/Project1/urls.py.
Commands to configure django model (optional)
In a file Project1/App1/models.py, create either your own model or my testing one:
Let’s register our model in Project1/App1/admin.py for access via the admin panel on the website.
Applying migrations:
If you want to use default Django admin, you need to create a superuser. Jusk like that: