0 votes
in Data Handling by
Give a brief about ‘django-admin’.

1 Answer

0 votes
by

django-admin is the command-line utility of Django for administrative tasks. Using the django-admin you can perform a number of tasks some of which are listed out in the following table:

Task Command

To display the usage information and the list of the commands provided by each application

django-admin help

To display the list of available commands

django-admin help –command

To display the description of a given command and the list of its available options

django-admin help <command>

Determining the version of Django

django-admin version

Creating new migrations based on the changes made in models

django-admin makemigrations

Synchronizing the database state with the current set of models and migrations

django-admin migrate

Starting the development server

django-admin runserver

Sending a test email in order to confirm the email sending through Django is working

django-admin sendtestemail

To start the Python interactive interpreter

django-admin shell

To show all the migrations in your project

django-admin showmigrations

...