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