Django basic cli commands cheatsheet
Hey everyone, I would like to share some basic Django commands which every Django developer should know. Basically, I created this for my Django projects but later thought it would be good to share it with you guys 😎.
- Install Django:- python -m pip install Django
- Start Project:- django-admin startproject PROJECT_NAME
- Create app:- python manage.py startapp APP_NAME
- Run server:- python manage.py runserver
- Migrate:- python manage.py migrate
- Make Migration:- python manage.py makemigrations APP_NAME
- Create super user:- python manage.py createsuperuser -> Provide email(example4u@gmail.com), username(example) and password(passwd)
- Interact with Shell:- python manage.py shell
Hope you enjoyed my blog post.😎
Let me know in the comments below if you face any problem.
Comments
Post a Comment
Please give us your valuable feedback