SHARE
TWEET

CHEATSHEET DJANGO

a guest Jul 21st, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CHEATSHEET DJANGO
  2.  
  3. - virtualenv -p python3 <your env name>
  4. - source <your env name>/bin/activate
  5. - pip3 install django
  6. - django-admin --version
  7. - django-admin startproject testsites
  8. - deactivate (for inactive virtual environment)
  9.  
  10. - python3 manage.py startapp products (create app)
  11. - register your app in admin.py your app
  12. - python3 manage.py makemigration
  13. - python3 manage.py migrate
  14. - python3 manage.py createsuperuser
  15. - python3 manage.py runserver 127.0.0.1:8081
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top