[PYTHON] [For beginners] Django Frequently used commands and reference collection
Outline and purpose of this article
- A summary of frequently used commands and frequently viewed reference pages when developing with Django.
- Please use it in a short time during development. If you have other frequently used commands or reference pages that you often see, I would appreciate it if you could comment: +1:
Frequently used Django commands
- Create an empty application
django-admin startproject (project name)
- Application creation
python manage.py startapp (app name)
- Create superuser
python manage.py createsuperuser
- Start web server for development
python manage.py runserver
- Creating a migration file
python manage.py make migrations (app name)
- Implementation of actual migration
python manage.py migrate
- View migration results
python manage.py sqlmigrate (app name) (migration number)
- Start Python interactive environment (with environment variables required for django)
python manage.py shell
- Conducting tests for specific apps
python manage.py test (app name)
Frequently used Django reference