Django SQLite creation and Admin Link to heading

Django provides very powerful admin panel for administrator to control the web application.

In order to use python admin panel, one has to create several models. Under a certain apps package in models.py, one can create SQL Models. And under the same directory in admin.py, one can register the model by using admin.site.register() to register.

Migration Link to heading

  • python manage.py migrate

  • Then register the changes to your app, python manage.py makemigrations app1

  • Then migrate the database one more time: python manage.py migrate

superuser Link to heading

after registration, in shell command, you can type in python manage.py createsuperuser to create a superuser, then you can use this panel then.