diff options
Diffstat (limited to 'cheat/.cheat/django')
-rw-r--r-- | cheat/.cheat/django | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cheat/.cheat/django b/cheat/.cheat/django new file mode 100644 index 0000000..5771985 --- /dev/null +++ b/cheat/.cheat/django @@ -0,0 +1,16 @@ +# Make a migration +change model in models.py +python manage.py makemigrations +python manage.py migrate + +#Django source code +python -c "import django; print(django.__path__)" + +# Enable virtual env: +mkvirtualenv --python=/usr/bin/python3 oscar + +# Don't forget to install +pip install django + +# Run dev server +python manage.py runserver 127.0.0.1:8000 |