aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/django
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cheat/.cheat/django16
-rw-r--r--cheat/.cheat/django-cms9
-rw-r--r--cheat/.cheat/django-oscar17
3 files changed, 42 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
diff --git a/cheat/.cheat/django-cms b/cheat/.cheat/django-cms
new file mode 100644
index 0000000..72770b6
--- /dev/null
+++ b/cheat/.cheat/django-cms
@@ -0,0 +1,9 @@
+# dep
+- python3-dev
+- virtualenvwrapper
+
+mkvirtualenv --python=/usr/bin/python3 oscar
+
+pip install djangocms-installer
+
+python manage.py runserver 0.0.0.0:8000
diff --git a/cheat/.cheat/django-oscar b/cheat/.cheat/django-oscar
new file mode 100644
index 0000000..a4e00cd
--- /dev/null
+++ b/cheat/.cheat/django-oscar
@@ -0,0 +1,17 @@
+#Dep for stretch:
+- libpq-dev
+- python3-dev
+
+# for mkvirtualenv
+- virtualenvwrapper
+
+# DONT FORGET DO UPGRADE PIP !!!!
+pip3 install -U setuptools pip
+
+mkvirtualenv --python=/usr/bin/python3 oscar
+
+# for pillow
+- libjpeg-dev
+pip3 install pillow
+
+sandbox/manage.py runserver 0.0.0.0:8000