From 15a404e6a0d95383f02423860a599ad987830424 Mon Sep 17 00:00:00 2001 From: neodarz Date: Tue, 27 Nov 2018 15:37:48 +0100 Subject: Add some cheat --- cheat/.cheat/django | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cheat/.cheat/django (limited to 'cheat/.cheat/django') 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 -- cgit v1.2.1