Last active
April 28, 2020 14:41
-
-
Save queirozsc/5ec8042111230cc1859ecb9813966b61 to your computer and use it in GitHub Desktop.
Django commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virtualenv venv | |
source venv/bin/activate | |
pip install django | |
django-admin startproject mysite | |
django-admin startapp polls | |
pyhton manage.py migrate # applies migrations on database | |
python manage.py createsuperuser # create a super user in database | |
./manage.py makemigrations polls # creates migration for polls app | |
./manage.py sqlmigrate polls 0001 # shows sql command that will be generated by migrate command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment