Python Framework

visentind

New Member
Messages
1
Reaction score
0
Points
0
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?
 

ah-blabla

New Member
Messages
375
Reaction score
7
Points
0
Python is supported - there's a thread here.

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

visedan

New Member
Messages
2
Reaction score
0
Points
0
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:

ah-blabla

New Member
Messages
375
Reaction score
7
Points
0
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:
Top