medreda
-
Posts
6 -
Joined
-
Last visited
Posts posted by medreda
-
-
thanks any way
-
here it is:
pydevstore.co.cc
So, the broblem is how to make the server run my python/django app.
For more information, here is my /public_html/expert2/dispatch.wsgi file:
import os, sys
sys.path.append("/home1/medreda/public_html/expert2")
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['PYTHON_EGG_CACHE'] = '/home1/medreda/.python_egg_cache'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
and my /public_html/expert2/.htaccess file :
RewriteEngine On
RewriteBase /
RewriteRule ^(dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ medreda/dispatch.wsgi/$1 [QSA,PT,L]
and my /public_html/.htaccess file:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName pydevstore.co.cc
AuthUserFile /home1/medreda/public_html/_vti_pvt/service.pwd
AuthGroupFile /home1/medreda/public_html/_vti_pvt/service.grp
Options -Indexes
By the way, is it normal to have 2 .htaccess files as i have shown ?
-
Hello
I have the same problem
And after clearing the cache it is the same thing
-
Problem solved.
I just forgot to set server names ns1.heliohost.org and ns2.heliohost.org of Helios in my .co.cc account.
Special thanks to
-
Hello every one in this great forum.
First, i am a new at web hosting and i wonder how to get .co.cc domain for my python/django web app hosted here
Also, what URL do i have to type to get access to my web site, because i is 3 days that i am registered here and when i try to enter to my web site using this address : http://pydevstore.tk i got
HELIOHOST ACCOUNT QUEUED
For more information: my web site has a .tk domain and i already have an account at .co.cc and i just want to know how to set the configuration for the last one.
Thanks in advance
Why Does My Directory Come Up On A Browser?
in Website Management and Coding
Posted
Thanks for assistance
your files doesn't work for me.
But, i've some half solution:
i just used 2 htaccess, one in public_html folder with this code:
RewriteEngine On
RewriteBase /
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(admin_media/.*)$ - [L]
RewriteRule ^(dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ /dispatch.wsgi/$1 [QSA,PT,L]
and the other in my project folder:
RewriteEngine On
RewriteBase /
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(admin_media/.*)$ - [L]
RewriteRule ^(dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ expert2/dispatch.wsgi/$1 [QSA,PT,L]
and dispatch.wsgi file like this;
import os, sys
sys.path.append("/home1/medreda/public_html/expert2")
### EDIT LINE ABOVE TO YOUR SITE ###
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['PYTHON_EGG_CACHE'] = '/home1/medreda/.python_egg_cache'
### YOU NEED TO CREATE THE DIRECTORY ABOVE ###
def application(environ, start_response):
"""Simplest possible application object"""
output = "Hello World from hosted WSGI"
status = '200 OK'
response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
It gives me : Hello word in my browser with this URL pydevstore.co.cc
(for information it doesn't call any web app here).
But when i use this code for the wsgi file (given in the example):
import os, sys
sys.path.append("/home1/medreda/public_html/expert2")
### EDIT LINE ABOVE TO YOUR SITE ###
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['PYTHON_EGG_CACHE'] = '/home1/medreda/.python_egg_cache'
### YOU NEED TO CREATE THE DIRECTORY ABOVE ###
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
it gives an error (when i call my django app)
So could you say what does it mean, please