sgjava Posted April 30, 2015 Posted April 30, 2015 I've created a DJango Project named "djangotest" and 2 DJango Apps named "admin_tools" and "test" (following HelioHost instructions). My "test" app is working but "admin_tools" app is showing the following error:Page not found (404)Request Method:GETRequest 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.DirectoriesI've the following directories:+ djangotest (projects dir) - admin_tools (app dir) - test (app dir) - __init__.py - dispatch.wsgi - settings.py - urls.py - .htaccessContents of urls.py from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin_tools/', include('admin_tools.urls')), ) Please help me to solve the problem
sgjava Posted April 30, 2015 Author Posted April 30, 2015 I've created a DJango Project named "djangotest" and 2 DJango Apps named "admin_tools" and "test" (following HelioHost instructions). My "test" app is working but "admin_tools" app is showing the following error:Page not found (404)Request Method:GETRequest 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.The URL of the DJango app: http://www.sgjava.tk/djangotest/DirectoriesI've the following directories:+ djangotest (projects dir) - admin_tools (app dir) - test (app dir) - __init__.py - dispatch.wsgi - settings.py - urls.py - .htaccessContents of urls.py from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin_tools/', include('admin_tools.urls')), ) Please help me to solve the problem
sgjava Posted April 30, 2015 Author Posted April 30, 2015 I've created a DJango Project named "djangotest" and 2 DJango Apps named "admin_tools" and "test" (following HelioHost instructions). My "test" app is working but "admin_tools" app is showing the following error:Page not found (404)Request Method:GETRequest 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.The URL of the DJango app: http://www.sgjava.tk/djangotest/DirectoriesI've the following directories:+ djangotest (projects dir) - admin_tools (app dir) - test (app dir) - __init__.py - dispatch.wsgi - settings.py - urls.py - .htaccessContents of urls.py from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin_tools/', include('admin_tools.urls')), ) Please help me to solve the problem
sgjava Posted April 30, 2015 Author Posted April 30, 2015 I've created a DJango Project named "djangotest" and 2 DJango Apps named "admin_tools" and "test" (following HelioHost instructions). My "test" app is working but "admin_tools" app is showing the following error:Page not found (404)Request Method:GETRequest 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.The URL of the App: http://www.sgjava.tk/djangotest/DirectoriesI've the following directories:+ djangotest (projects dir) - admin_tools (app dir) - test (app dir) - __init__.py - dispatch.wsgi - settings.py - urls.py - .htaccessContents of urls.py from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin_tools/', include('admin_tools.urls')), ) Please help me to solve the problem
sgjava Posted May 12, 2015 Author Posted May 12, 2015 Here is my .htaccess contents:RewriteEngine OnRewriteBase /RewriteRule ^(test/media/.*)$ - [L]RewriteRule ^(test/admin_media/.*)$ - [L]RewriteRule ^(dispatch\.wsgi/.*)$ - [L]RewriteRule ^(.*)$ djangotest/dispatch.wsgi/$1 [QSA,PT,L]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now