Skip to content

seguri/django-polls-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-polls-tutorial

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 😛

First time

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

After

. ~/.virtualenv-3.4.5/django-2.0a1/bin/activate
python manage.py runserver

About

The Django official "polls" tutorial, completed for different Django versions

Topics

Resources

License

Stars

Watchers

Forks