Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Junior Member
    Join Date
    Feb 2008
    Posts
    1

    Default mod_python django

    I have succesfully installed django.
    Is anyone else using django on West Host?
    Last edited by DanielS; 02-17-2008 at 10:08 PM.

  2. #2
    Junior Member
    Join Date
    May 2003
    Location
    Massachusetts
    Posts
    5

    Default

    Not yet using Django on westhost but have considered it. Any tricks you'd like to outline for future reference, Daniel? I'm also interested in Pylons (also Python-based) hosting here.

  3. #3
    Junior Member
    Join Date
    Mar 2008
    Posts
    1

    Default

    Will you please post the steps requiered to install django on the server.

    Thanks

  4. #4

    Default

    I'd love to learn more about installing Django. I have a number of client projects that I could use this for!
    apathy is a dominant gene -- mutate

  5. #5

    Default

    Hello,

    It appears the django site has fairly detailed information on how to install the application at:
    http://www.djangoproject.com/documentation/install/
    Sincerely,

    Mark Cox
    Data Center Administrator
    WestHost

    When you expect more from your Web host
    http://www.westhost.com/

  6. #6

    Default

    Thanks for the reply and info Mark,
    I've got that one bookmarked. Perhaps I should be more clear. I am seeking to learn about any particular issues that may be encountered installing it on the typical WestHost VPS. I'd rather not cause anyone grief while I'm playing with it.

    I just ordered 4 books on Django and will download and attempt to install it sometime in the next month or so after I get a handle on the command set and dos/don'ts.
    apathy is a dominant gene -- mutate

  7. #7

    Default

    gbanse,

    I installed Django on my account without any problem by following these steps:

    -Install Python through your Site Manager (if it is not already installed)
    -Log into your account via SSH
    -Change directory to /usr/local, or wherever else you'd like the application installed (cd /usr/local)
    -Download the Django installation files (wget http://www.djangoproject.com/download/0.96.1/tarball/ )
    -Extract the tarball (tar -zxvf Django-0.96.1.tar.gz )
    -Change directory to the directory that was created from extracting (cd Django-0.96.1 )
    -Run the installation (python setup.py install )

    I hope that helps.
    Last edited by WestHost - MCox; 05-13-2008 at 11:04 AM.
    Sincerely,

    Mark Cox
    Data Center Administrator
    WestHost

    When you expect more from your Web host
    http://www.westhost.com/

  8. #8

    Default

    Yup! That helps - seems too simple but I'll give it a go! Thanks!
    apathy is a dominant gene -- mutate

  9. #9

    Default

    Mark,
    I got the files installed and they look correct (from my rather inexperienced POV). But I keep getting an error when I try to run a Django command from SSH command line. The error:

    -sh: /usr/local/Django-0.96.2/django/bin/django-admin.py: /usr/bin/env: bad interpreter: No such file or directory

    I used a symlink and when that didn't work, I tried the direct path to django-admin.py and got the same error.

    Python seems to be working fine so I'm not sure what I missed. I used the command line to retrieve the files from the djangoproject.com and also the command line to untar them into their current directory /usr/local/Django-0.96.2/

    If you have a moment I'd appreciate a nudge in the right direction. Thanks.
    apathy is a dominant gene -- mutate

  10. #10

    Default

    Ok here's the answer.

    WestHost uses a non standard location (according to the Django community) for the Env command. What I had to do was to edit the django-admin.py file (use PICO) and change the first line where it calls for env.

    Original: /usr/bin/env
    Edited: /bin/env

    Now it works just fine.
    apathy is a dominant gene -- mutate

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •