Jump to content

Search the Community

Showing results for tags 'python'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Website Management and Coding
    • Technology and the Internet
    • Philosophy, Politics, and Science
    • Art and Entertainment
    • Other Discussion
  • HelioHost
    • Questions
    • Customer Service
    • How You Can Help
  • HelioNet
    • News
    • Contact HelioNet

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hi all, I just uploaded a test website (developed using python-django) to Heliohost (Stevie) and I am having some problems when I try to access it using my domain name. For example, when I access the website using the URL "topito.heliohost.org/rodrigo.cl", everything works fine, but when I try to access using "www.rodrigo.cl", I get a "500 Internal Server Error" with no descriptions of the problem. I checked the logs but they don't say much: [Fri Dec 28 01:57:26 2012] [error] [client 122.151.217.103] File does not exist: /home/topito/public_html/404.shtml [Fri Dec 28 01:57:26 2012] [error] [client 122.151.217.103] File does not exist: /home/topito/public_html/favicon.ico I have my domain "www.rodrigo.cl" pointing to Helihost, and I have the django application in "/public_html/rodrigo.cl/" (which is the folder associated to my domain, i.e. my "Document Root"). Do I have to configure anything else in order to make my django website work? I don't understand why it works when accessed using the direct URL but doesn't when using the domain name URL. Thank you!
  2. I wanted to know whether it is possible to use Flask with Python on heliohost (on stevie). If anyone has used it, someone please share the procedure for the same. Thanks.
  3. Dear HelioHost, My username is - vaibhav1 My url is - www.gemsandu.com I have project in django ... and i've upload it through ftp client on heliohost sever (as described on http://www.heliohost.org/home/features/languages/python) but my url shows 500 Internal Server error... I am showing u, what i've done... my django project name is gemsandu 1) i've upload my django project under public_html dirctory --> public_html/gemsandu 2) .python_egg_cache folder created parallel with public_html with 777 permission 3) dispatch.wsgi file under public_html/gemsandu/dispatch.wsgi with 755 permission with this code -- import os, sys sys.path.append("/home/vaibhav1/public_html/gemsandu"); os.environ['DJANGO_SETTINGS_MODULE'] = 'gemsandu.settings' os.environ['PYTHON_EGG_CACHE'] = '/home/vaibhav1/.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) 4).htaccess file under public_html/gemsandu/.htaccess with 644 permission with this code -- RewriteEngine On RewriteBase / RewriteRule ^(static/.*)$ - [L] RewriteRule ^(sitestatic/.*)$ - [L] RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ gemsandu/dispatch.wsgi/$1 [QSA,PT,L] After doing all this thing my django project not working ... Please help me out with this problem ...
  4. 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
  5. Hi, I am trying to setup a Django powered site, It was working perfectly on my local server using the default manage.py thing. However when Iam getting this error, "[Wed Jun 20 17:50:29 2012] [error] [client 216.171.4.28] File "/home/muttine2/public_html/BN_MV3/dispatch.wsgi", line 9, in application [Wed Jun 20 17:50:29 2012] [error] [client 216.171.4.28] mod_wsgi (pid=1290): Exception occurred processing WSGI script '/home/muttine2/public_html/BN_MV3/dispatch.wsgi'. " I have followed the instructions given here, and the previous questions here. I am pretty sure I did something wrong in setting up the path. Could you post the error log or if you could help me with the error.... Oh and I am trying to access my site here. My username is: muttine2 Domain: http://bnprojects.heliohost.org/ Thanks...
  6. Hi, I am hosting in Jhonny, and I need Django 1.4, this is possible? When I can use Django 1.4 please? I have my site all in Django 1.4 and I need that found in heliohost server.
  7. I would like to connect to a database using python without Django. My site is at http://a-catering.heliohost.org/cgi-bin/menuDatabaseMakerWeb.py. It takes a text file and creates a table from it. Whenever I run it, I get a 500 Internal Server Error. I believe I've narrowed the problem down to the actual connection (connection = MySQLdb.connect). I created the database and the user/password through cpanel. Please let me know if I missed something. Thank you. The code is below: #!/usr/bin/python # date: 4/19/12 # description: Database creator for catering website #The following imports the necessary modules import cgitb; cgitb.enable() import MySQLdb print "Content-Type: text/html" print print "Attempting to create DB" menuData = "/home/yakster8/public_html/menus.txt" menus = open(menuData) try: connection = MySQLdb.connect( host = "localhost", user = yakster8_root, passwd = password1234, db = yakster8_menus ) except: print "Failed..." print "Connected." cursor = connection.cursor() try: cursor.execute("""drop table menu""") except: pass sql = """CREATE TABLE menu (name text, category text, imageLocation text, dietaryConcerns text, """ # Create table cursor.execute(sql) connection.commit() for line in menus: line = line.strip() #removes leading and trailing white space lineParts = line.split('\t') sql = """ INSERT INTO menu VALUES (%s,%s,%s,%s) """ parameters = (lineParts[0:4]) #The following runs the SQL against the cursor cursor.execute(sql,parameters) connection.commit() print "Database created OK." Nevermind, I forgot quotes in the connection script. Problem solved.
  8. Importing MySQLdb into Python appears to cause an error. The file below, when run, does not appear to get past the import MySQLdb statement. This is edited down from the Python example at Any ideas what I am doing wrong?(I am running on Stevie)output:here we go Code:#!/usr/bin/pythonprint "Content-type: text/html\r\n\r\n"print "here we go "try: import MySQLdb tx = 'successfully imported MySQLdb' print "out of try "except: tx = str(sys.exc_info()) print "except "print tx
  9. I am trying to install 'web.py' application on heliohost. And everything seems to work fine instead sessions. I store session information in postgresql. But any reference to session variable creates new session object (new record in a database) and therefore I have no session persistence among my application. I guess something has to be wrong with apache configuration file, not python script. Maybe my guess is wrong. Anyway I can't figure that out. Please, any suggestions. I'm still a rookie... But I hope time will fix it :-) .htaccess file script <Files index.py> SetHandler wsgi-script Options ExecCGI FollowSymLinks </Files> <IfModule mod_rewrite.c> RewriteEngine on RewriteOptions Inherit RewriteBase /myapp RewriteCond %{REQUEST_URI} !^/favicon.ico$ RewriteCond %{REQUEST_URI} !^(/.*)+index.py/ RewriteRule ^(.*)$ index.py/$1 [PT] </IfModule>
  10. I have finally been able to make my hello-world django-app run. But this is only running when the project package is removed everywhere: in settings.py: ROOT_URLCONF = 'urls' instead of 'PROJECT-NAME.urls', which I use in the development side. also in the urls.py, all the referred classes require to have the project package removed. I'm sure it must be possible to use the project package, too!?! Could anyone point me to where this might be changed?
  11. I wanted to start using Helio using Python/Django. However, whatever I do I'll get a 500 error. So, I tried to make to simple cgi scripts with python, one using us-ascii and another in utf8. The former works, the latter gives me again a 500 error. Am I missing something? There is a high probability that I will use UTF-8 later in the project so I don't want to use ascii. (.. also: I don't know where the error log is located :-() agon.
  12. Anyone had tried to use web2py in Heliohost? I have played with .htaccess, trying to make something simlar to wath suggest for django, but i ave only error 500...
×
×
  • Create New...