iyth888 发表于 2018-8-15 09:25:03

python在pychram中利用djingo开发helloword-matengbing

from django.conf.urls import patterns, include, url  
from web2.views import hello
  
from django.contrib import admin
  
from django.conf.urls import *
  
admin.autodiscover()
  

  
urlpatterns = patterns('',
  
    # Examples:
  
    # url(r'^$', 'web2.views.home', name='home'),
  
    # url(r'^blog/', include('blog.urls')),
  

  
    url(r'^admin/', include(admin.site.urls)),
  
    ('^hello/$', hello),
  
)
页: [1]
查看完整版本: python在pychram中利用djingo开发helloword-matengbing