Django

Pyhton dest-package

python -c "import sys; sys.path = sys.path[1:]; import django; print(django.__path__)"

If wanna to uninstall previous version of django, just remove the directory of the django.

Set up a database - Postgresql

https://docs.djangoproject.com/en/1.6/ref/databases/#postgresql-notes



django-admin.py startproject mysite



mysite/
    manage.py
    mysite/
        __init__.py
        settings.py
        urls.py
        wsgi.py
----------------------------------------------------------------------------------------------------------------------------------
#開啟除錯模式
DEBUG=True
#開啟除錯模式的樣版
TEMPLATE_DEBUG=DEBUG
TIME_ZONE='Asia/Taipei'
LANGUAGE_CODE='zh-tw'