License: (CC 3.0) BY-NC-SA
Reference
- https://www.djangoproject.com/
- djangobook djangobook on github
- 1.5 tutorail01
- 1.5 tutorail02
- 1.5 tutorail03
- 1.5 tutorail04
- 1.5 tutorail05
- 1.5 tutorail06
- release your app
Install Django
uninstall django
- pip uninstall django
python -c "import sys; sys.path = sys.path[1:]; import django; print(django.__path__)"
then remove the dir
install
- git clone git://github.com/django/django.git django-trunk
- sudo pip install -e django-trunk/
create a project
- django-admin.py startproject mysite
- cd mysite && python manage.py runserver 8000
you can modify the timezone in your project’s setting file:
sed -i "s/\(TIME_ZONE = \).*/\1\"Asia\/Shanghai\"/" greeTree/settings.py
database initialization
- python manage.py syncdb
start app
- python manage.py startapp polls