Skip to content

Instantly share code, notes, and snippets.

@MahmudHasanCSE
Last active April 8, 2019 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MahmudHasanCSE/65ebc32330e5b9dd2744e13f4ad2074a to your computer and use it in GitHub Desktop.
Save MahmudHasanCSE/65ebc32330e5b9dd2744e13f4ad2074a to your computer and use it in GitHub Desktop.
## Python:
# create venv
python -m venv venv
# python -m virtualenv .
# activate venv
source venv/bin/activate
# deactivate venv
deactivate
## Django:
# running local
./manage.py runserver
# running test
./manage.py test
# running test with warning enabled
python -Wa manage.py test
#
./manage.py test --verbosity=2
#
./manage.py makemigrations
#
./manage.py migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment