941,498 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 1242
  • Python RSS
Feb 17th, 2010
0

Uploading a Django website to a hosted Apache server running FastCGI

Expand Post »
I am new to working with Django, and have found it really fun and interesting to develop with. But I have been trying to upload it to a hosted server and just not getting it to work. I have followed the instructions they give, but just not getting it to work. There seem to be different instructions, and I am just not clued up enough to understand what applies me.

I have contacted the admins and have spent some time with the online help technicians, but they don't always know exactly what to do. The site is hosted with hostgator, through an company in Africa. I seem to have a delay in getting answer (probably because the technical guys are sitting on the exact opposite side of the world from me.)

Let me run you through what I have done (if I can now remember it all...I may well have messed everything up while trying):

1. Requested MySQLdb and Flup to be installed on the server for my site. Ran Python through SSH and tried import ... for both, and they both return without error.
2. Followed the instructions on this page:
http://support.hostgator.com/article...o-with-fastcgi
starting with the mkdir ~/django
I follow along with the instructions: svn for the django trunk, make a directory for project, edit the bash_profile file in my /home/username directory.

Then I get to the start project part and start having trouble. They say that I have to go into the /project/ file and upload the Django tar.gz file to there. I have tried it either doing that or not (I can't understand why I would need to do that). If I don't do it, in the Python shell I get an error when trying to import django. If I do upload it, when I run install, I get an error.

Even if I try to ignore the error and carry on, from there I just start getting errors with everything I do.
Similar Threads
Reputation Points: 33
Solved Threads: 13
Junior Poster in Training
Namibnat is offline Offline
82 posts
since May 2009
Aug 11th, 2010
0

Installing Appllication in "PROD"

You should really give more informations ....
Have you installed Django on the host .... ?
They might not want you to do it for all the users and you'd probabaly need ot install django for your user only ....

Otherwise try to post you question (with more informations on Django users list.

\T,



Click to Expand / Collapse  Quote originally posted by Namibnat ...
I am new to working with Django, and have found it really fun and interesting to develop with. But I have been trying to upload it to a hosted server and just not getting it to work. I have followed the instructions they give, but just not getting it to work. There seem to be different instructions, and I am just not clued up enough to understand what applies me.

I have contacted the admins and have spent some time with the online help technicians, but they don't always know exactly what to do. The site is hosted with hostgator, through an company in Africa. I seem to have a delay in getting answer (probably because the technical guys are sitting on the exact opposite side of the world from me.)

Let me run you through what I have done (if I can now remember it all...I may well have messed everything up while trying):

1. Requested MySQLdb and Flup to be installed on the server for my site. Ran Python through SSH and tried import ... for both, and they both return without error.
2. Followed the instructions on this page:
http://support.hostgator.com/article...o-with-fastcgi
starting with the mkdir ~/django
I follow along with the instructions: svn for the django trunk, make a directory for project, edit the bash_profile file in my /home/username directory.

Then I get to the start project part and start having trouble. They say that I have to go into the /project/ file and upload the Django tar.gz file to there. I have tried it either doing that or not (I can't understand why I would need to do that). If I don't do it, in the Python shell I get an error when trying to import django. If I do upload it, when I run install, I get an error.

Even if I try to ignore the error and carry on, from there I just start getting errors with everything I do.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tsmets is offline Offline
5 posts
since Oct 2009
Aug 11th, 2010
0
Re: Uploading a Django website to a hosted Apache server running FastCGI
Thanks tsmets,

I posted many questions since then all over the place and have already revived all the help I needed. I have also read a great deal of Django's documentation, and have developed a number of websites using Django.
Reputation Points: 33
Solved Threads: 13
Junior Poster in Training
Namibnat is offline Offline
82 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Help needed with HTML form and Python
Next Thread in Python Forum Timeline: How to add objects and signals? A Glade3+Python question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC