aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/django
blob: 5d25f15c29e194398563e4827506a4809598bb64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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

# tinymce for django
https://github.com/romanvm/django-tinymce4-lite