Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Django-找不到URL的页面(404)_Django - Fatal编程技术网

Django-找不到URL的页面(404)

Django-找不到URL的页面(404),django,Django,当我访问url的except/home时,会出现以下错误 Page not found (404) Request Method: GET Request URL Using the URLconf defined in report_ui.urls, Django tried these URL patterns, in this order: ^admin/ ^home/ The current URL, individual/, didn't match any of these.

当我访问url的except/home时,会出现以下错误

Page not found (404) 
Request Method: GET Request URL

Using the URLconf defined
in report_ui.urls, Django tried these URL patterns, in this order:
^admin/ 
^home/ 
The current URL, individual/, didn't match any of
these. You're seeing this error because you have DEBUG = True in your
Django settings file. Change that to False, and Django will display a
standard 404 page.
守则: url.py


任何帮助都将不胜感激。谢谢

更改您的根URL.py

  url(r'^home/', include('dnslog.urls')),
致:

或者将您的请求从

发件人:

致:


我以/家庭/个人身份尝试了这个请求。这里的问题是我仍然看到主页,而不是单独的页面。更改根URL.py throwed页面未找到错误。
from django.conf.urls import patterns, include, url

# to include the media url
from django.conf import settings
from django.conf.urls.static import static

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'report_ui.views.home', name='home'),
    # Uncomment the next line to enable the admin:
     url(r'^admin/', include(admin.site.urls)),
     url(r'^home/', include('dnslog.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),


)
  url(r'^home/', include('dnslog.urls')),
 url(r'^/', include('dnslog.urls')),
individual/
 /home/individual