create a projct
django-admin.py startproject newSitecreate an app in the project:
python manage.py startapp books
create __init__.py, models.py, views.py in books directory
run the server:
python manage.py runserver
running at 127.0.0.0.1:8000
python manage.py runserver 0.0.0.0 8888
listen on any network interface, on port 8888
set path for django project
add django_site.pth under /Library/Python/2.5/site-packages
ex:
django_site.pth:
/Volumes/Data/django_project/
time zone
in settings.py
TIME_ZONE = 'Asia/Taipei'
沒有留言:
張貼留言