Python + Django???ú????????
???????????? ???????[ 2014/10/17 15:10:34 ] ???????????ù??? ??????????
????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
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11