--python 3.5 ist installiert --virtualenv muss installiert sein
~/
$ mkdir -p ~/app/virtualenv
$ cd ~/app/virtualenv
$ virtualenv -p python3.5 project_name
$ ls -l
total 0
drwxr-xr-x 5 user_name group_name 170 12 28 22:28 project_name
~/
$ . ~/app/virtualenv/project_name/bin/activate
$ python --version
Python 3.5.0
~/
$ pip install django
Collecting django
Using cached Django-1.9-py2.py3-none-any.whl
Installing collected packages: django
Successfully installed django-1.9
~/
$ mkdir -p ~/app/projects/project_name
~/app/projects/project_name
$ cd ~/app/projects/project_name
$ django-admin.py startproject project_name
├── run.sh
└── project_name
├── manage.py
└── project_name
├── __init__.py
├── settings.py
├── urls.py
└── wsgi.py
run.erstellen sh
$ vim run.sh
run.sh(Startbefehl einstellen)
python ./project_name/manage.py runserver
Ausführungsberechtigung erteilen
$ chmod +x run.sh
DB
~/app/projects/project_name
$ python ./project_name/manage.py migrate
~/app/projects/project_name
$ python ./project_name/manage.py createsuperuser
run.sh
$ ./run.sh
http://localhost:8000
http://localhost:8000/admin