Advertisement
ZEdKasat

Untitled

Nov 30th, 2021
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # Django Notes
  2.  
  3. ## Create Project
  4.  
  5. `django-admin startproject project_name`
  6.  
  7. ## Create App
  8. make sure that you are in the project folder (the one that has manage.py)
  9.  
  10. `python manage.py startapp app_name`
  11.  
  12. ## Database related
  13. Listing changes to be done on the database
  14.  
  15. `python manage.py makemigrations`
  16.  
  17. Making the changes from migrations onto the database
  18.  
  19. `python manage.py migrate`
  20.  
  21. ## Admin Panel Related
  22.  
  23. creating a user that can access admin panel
  24.  
  25. `python manage.py createsuperuser`
  26.  
  27.  
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement