+ Reply to Thread
Results 1 to 5 of 5

Thread: Python Framework

  1. #1
    visentind is offline x10Hosting Member visentind is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    1

    Python Framework

    Looking to develop Python web applications. I have not yet figured out how python is supported on x10. Is Django installed on the back end?

  2. #2
    ah-blabla's Avatar
    ah-blabla is offline x10 Lieutenant ah-blabla is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    375

    Re: Python Framework

    Python is supported - there's a thread here.

    Django doesn't seem to be installed, since "import django" fails.

  3. #3
    visedan is offline x10Hosting Member visedan is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    2

    Re: Python Framework

    Great! Thanks! I was intending on building an internet app based on python scripting to a MySQL DB. It would seem there is no MySQLdb module installed. Does anyone know if it is possible to build such an internet app under the current server configuration?

    Any suggestions would be most grateful.
    Last edited by visedan; 11-19-2009 at 08:38 AM.

  4. #4
    ah-blabla's Avatar
    ah-blabla is offline x10 Lieutenant ah-blabla is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    375

    Re: Python Framework

    From what I can gather django is written all in python, so if you upload it, and somehow tell python where django is located, it should work. I don't have much python experience so I can't say much more -- you might want to look at the documentation telling you how to modify the paths here. That should then let you use mysql through django.

    BTW, other people on the forum have said that sqlite is supported in python, so that might be the easiest thing to do if you want sql.

    Edit: I've been reading up: it should be enough to have the django folder inside the same folder as the application you are running. I.e. download the latest django version, and inside you will find a folder named "django", containing a file "__init__.py" along with a whole load of subfolder: you need to upload this folder called django. I'm just testing this now. Alternatively install django in some other folder on your webspace, say a folder called pyext (with django as a subfolder of this), you should then be able to add the path using:
    Code:
    import sys
    sys.path.append("/home/USERNAME/pyext")
    (I'll post back soon once django has finished uploading about whether this works.)

    Edit2: Django works in this way! If django is in the same folder as the app, or the django path is added as above, it will work. Your on your own now, have fun...
    Last edited by ah-blabla; 11-19-2009 at 11:31 AM.

  5. #5
    visedan is offline x10Hosting Member visedan is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    2

    Re: Python Framework

    Sounds great! Will give it a try. THANKS!

+ Reply to Thread

Similar Threads

  1. Replies: 5
    Last Post: 07-10-2009, 03:30 AM
  2. Python / MySQLdb
    By Korexio in forum Free Hosting
    Replies: 9
    Last Post: 11-29-2007, 08:29 AM
  3. Python/.htaccess help
    By *Face in forum Free Hosting
    Replies: 6
    Last Post: 09-21-2007, 01:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers