This is the solution code to the Django official tutorial, using:
$ python --version && echo -n 'Django ' && python -m django --version
Python 3.4.5
Django 2.0a1
I made it as a quick way to clone a working Django app.
The idea is to have a branch for each version of Django but I won't promise I'll actually do it 😛
mkdir ~/.virtualenv-3.4.5
virtualenv ~/.virtualenv-3.4.5/django-2.0a1
. ~/.virtualenv-3.4.5/django-2.0a1/bin/activate
pip install django==2.0a1
git checkout https://github.com/seguri/django-polls-tutorial
cd django-polls-tutorial
git checkout -b django-2.0a1 remotes/origin/django-2.0a1
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
. ~/.virtualenv-3.4.5/django-2.0a1/bin/activate
python manage.py runserver