+ Reply to Thread
Results 1 to 2 of 2
Like Tree2Likes
  • 2 Post By somelauw

Thread: Can I make a website in Python or Django?

  1. #1
    somelauw is offline x10Hosting Member somelauw is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    1

    Can I make a website in Python or Django?

    I just learned python and think it is a nicer language than php.
    I heard this site allows you to use python and found the following tutorial: How to run Python on X10Hosting
    The tutorial tells me to upload by ftp. Can't I upload by using cPanel?
    Can I also use Django? Are there any restrictions to using python?
    What modules are available? What version of Python is used?
    dinomirt96 and karimirt47 like this.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Can I make a website in Python or Django?

    Quote Originally Posted by somelauw View Post
    The tutorial tells me to upload by ftp. Can't I upload by using cPanel?
    Yes, but FTP clients are easier and more powerful. Uploading multiple files is easier with most FTP clients. Uploading folders isn't possible with cPanel, unless you archive (e.g. zip) the folder first, then unarchive it after u/ling. Some FTP clients also support synchronization, which is a big win.

    Quote Originally Posted by somelauw View Post
    Can I also use Django?
    Django isn't installed (you could have easily searched for this), and I very much doubt you can install it on your own. Python can be used for CGI scripts and backend stuff, but not too much else.

    Quote Originally Posted by somelauw View Post
    Are there any restrictions to using python?
    By default, only python scripts in cgi-bin (or scgi-bin, if you have CGIWrap set up) are executed. You can add an AddHandler directive to .htaccess to run python scripts elsewhere. The tutorial you link to shows the specifics.

    Other than that, the same restrictions that apply to running PHP or Perl also apply to Python, plus anything that accesses Apache internals (such as apache) aren't available, since Python scripts aren't run via an Apache module.

    Quote Originally Posted by somelauw View Post
    What modules are available?
    All the standard library, of course, plus MySQL-python 1.2.3c1, meldpysvn, setuptools, superlance and supervisor. You can get the module paths from sys.path, and read their contents using os.listdir.

    Quote Originally Posted by somelauw View Post
    What version of Python is used?
    2.6.4 (you can use platform.python_version or sys.version to get this info)
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Python / Django
    By maarlin in forum Free Hosting
    Replies: 1
    Last Post: 04-18-2010, 02:35 AM
  2. Replies: 5
    Last Post: 04-05-2010, 01:16 PM
  3. Django
    By hardbyte in forum Free Hosting
    Replies: 3
    Last Post: 10-06-2009, 05:02 AM
  4. Python, SQlite and Django?
    By phineas in forum Free Hosting
    Replies: 2
    Last Post: 08-17-2008, 02:02 AM

Tags for this Thread

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