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 '')
-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