我创建了一个名为" djangotest"的DJango项目。和2个名为" admin_tools"的DJango应用程序和"测试" (遵循HelioHost说明)。我的测试"应用程序正在运行,但" admin_tools"应用程序显示以下错误:
找不到页面(404)
Request Method:
GET
Request URL: http://sgjava.tk/djangotest/dispatch.wsgi/
Using the URLconf defined in urls, Django tried these URL patterns, in this order:
1. ^admin_tools/
The current URL, djangotest/dispatch.wsgi/, 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.
目录 我有以下目录:
+ djangotest (projects dir) [Location: /home/sgj/public_html/]
- admin_tools (app dir)
- test (app dir)
- __init__.py
- dispatch.wsgi
- settings.py
- urls.py
- .htaccess
请帮我解决问题
urls.py
from django.conf.urls.defaults import *
urlpatterns = patterns('',
url(r'^admin_tools/', include('admin_tools.urls')),
url(r'^test/', include('test.dispatch')),
)