sgjava Posted April 30, 2015 Share 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 Quote Link to comment Share on other sites More sharing options...
sgjava Posted April 30, 2015 Author Share 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 Quote Link to comment Share on other sites More sharing options...
sgjava Posted April 30, 2015 Author Share 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 Quote Link to comment Share on other sites More sharing options...
sgjava Posted April 30, 2015 Author Share 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 Quote Link to comment Share on other sites More sharing options...
yashrs Posted May 2, 2015 Share Posted May 2, 2015 What is your .htaccess file. Could you post it ? Quote Link to comment Share on other sites More sharing options...
sgjava Posted May 12, 2015 Author Share 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.