numitors Posted April 29, 2012 Posted April 29, 2012 Hi,I made a simple django application which can create polls and enables voting, all by following official django tutorial, and it worked with djangos built-in http server.Then I found this free host and tried to put my app on it. I followed simple instructions given on homepage about how to setup django app on this server, but i could not make it work. Then i googled some tutorials about this but I still can't make it work. What i wanted to do is to make my app work on root domain http://quiz.heliohost.org/.The way it is now configured, I can only see a list of files and folders on root and when i enter quiz folder i get an error, which you can see at http://quiz.heliohost.org/quiz/. I am really new to this so excuse my poor skill.i would really appreciate any help. this are my files: .htaccess RewriteEngine OnRewriteBase /RewriteRule ^(media/.*)$ - [L]RewriteRule ^(admin_media/.*)$ - [L]RewriteRule ^(dispatch\.wsgi/.*)$ - [L]RewriteRule ^(.*)$ quiz/dispatch.wsgi/$ [QSA,PT,L] dispatch.wsgi import os, syssys.path.append("/home/numitors/public_html/quiz");sys.path.append("/home/numitors/public_html");os.environ['DJANGO_SETTINGS_MODULE'] = 'quiz.settings'os.environ['PYTHON_EGG_CACHE'] = '/home/numitors/.python_egg_cache'import django.core.handlers.wsgi_application = django.core.handlers.wsgi.WSGIHandler()def application(environ, start_response): environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO'] return _application(environ, start_response) I also zipped my entire folder with the app so it is visible at http://quiz.heliohost.org/ as quiz.zipI am really new to this so excuse my poor skill.i would really appreciate any help.Thanks in advance.
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