????1. ????project
????django-admin.py startproject newproject
??????????????????????newproject????????????????????newproject??????У????manage.py?????
????newproject??????????????4???????
????__init__.py
????setting.py
????urls.py
????wsgi.py
????????project????????
????2. ??????
#vim urls.py
from django.conf.urls.defaults import patterns?? include?? url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(''??
# Examples:
# url(r'^$'?? 'csvt01.views.home'?? name='home')??
# url(r'^csvt01/'?? include('csvt01.foo.urls'))??
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/'?? include('django.contrib.admindocs.urls'))??
# Uncomment the next line to enable the admin:
url(r'^admin/'?? include(admin.site.urls))??
)
?????????λ???#
????#vim setting
????INSTALLED_APPS?????‘django.contrib.admin’???е????
?????????????????
????3.??????????
????#python manage.py syncdb
??????????????????????
????4.???????????
????#python manage.py runserver