aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/django
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-11-27 15:37:48 +0100
committerneodarz <neodarz@neodarz.net>2018-11-27 15:38:23 +0100
commit15a404e6a0d95383f02423860a599ad987830424 (patch)
tree9d436add216637e8da066f6f85611306dfc4ba85 /cheat/.cheat/django
parent8e781f77466eb7ee6b78301042a37b5f61766e70 (diff)
downloaddotfiles_ascii-15a404e6a0d95383f02423860a599ad987830424.tar.xz
dotfiles_ascii-15a404e6a0d95383f02423860a599ad987830424.zip
Add some cheat
Diffstat (limited to 'cheat/.cheat/django')
-rw-r--r--cheat/.cheat/django16
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