how to deploy Django on the web server?

791 views
Skip to first unread message

justin jools

unread,
Aug 7, 2009, 3:06:54 PM8/7/09
to Django users
This has been driving me nuts for a month.

I wanted to use a free web server to do development testing and have
found : 000webhost.com and heliohost.com which apparently support
Python, but what about Django? Do I install that myself?

I have read the django book on deployment chapter but find it doesnt
tell me what I want.

Could someone please just tell me simply how I can get my scripts
running on the webserver.

justi...@googlemail.com

lzantal

unread,
Aug 7, 2009, 3:34:32 PM8/7/09
to Django users
Try http://webfaction.com .
They have super easy install for django through their control panel

hope that helps

lzantal
http://twitter.com/lzantal

> justinjo...@googlemail.com

Dan Harris

unread,
Aug 7, 2009, 4:30:31 PM8/7/09
to Django users
I just wanted to give a shout out as well to webfaction. I used to use
my own virtual private server for hosting django stuff, but to cut
costs i switched to a webfaction account and it is pretty fantastic.
Super easy to set up, if you decide to go that way just drop me and
email and i'd be happy to help you get set up and running.

Cheers,

Dan

justin jools

unread,
Aug 7, 2009, 4:56:54 PM8/7/09
to django...@googlegroups.com
thanks for the reply but I have access to a server for free so I wanted to set it up myself, how can it be so difficult? Django is renowned as an easy rapid development framework so why is it so difficult to deploy?

Vitaly Babiy

unread,
Aug 7, 2009, 4:48:43 PM8/7/09
to django...@googlegroups.com
Also you may want to look in to slice host. Awesome service.


Vitaly Babiy

Milan Andric

unread,
Aug 7, 2009, 5:25:36 PM8/7/09
to Django users

Justin, it's not. Have you seen the deployment docs?

http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index

--
Milan

Peter Herndon

unread,
Aug 7, 2009, 5:35:58 PM8/7/09
to django...@googlegroups.com
On 08/07/2009 05:25 PM, Milan Andric wrote:
> Justin, it's not. Have you seen the deployment docs?
>
> http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index
>
> --
> Milan
>
> On Aug 7, 1:56 pm, justin jools<justinjo...@googlemail.com> wrote:
>
>> thanks for the reply but I have access to a server for free so I wanted to
>> set it up myself, how can it be so difficult? Django is renowned as an easy
>> rapid development framework so why is it so difficult to deploy?
>>
>>

More to the point, tell us what you are doing and where it's failing.
Maybe then we can help you solve the problem.

Hmm, looking at the 000webhost.com site, their free offering does not
include Python. And I can't get heliohost.com to resolve. Perhaps your
problem starts there.


---Peter

Daniel Roseman

unread,
Aug 7, 2009, 5:45:37 PM8/7/09
to Django users
On Aug 7, 9:56 pm, justin jools <justinjo...@googlemail.com> wrote:
> thanks for the reply but I have access to a server for free so I wanted to
> set it up myself, how can it be so difficult? Django is renowned as an easy
> rapid development framework so why is it so difficult to deploy?
>
You haven't said why you think it's difficult. The documentation is
clear, and most people here have found it fairly easy to deploy. What
has been your problem? Why has the Django book not told you want you
want?
--
DR.

justin jools

unread,
Aug 8, 2009, 5:14:53 AM8/8/09
to django...@googlegroups.com
Yes Ive read these docs and I understand certain script changes are needed before running on the server but I want to know about:

 installing Django on the server, do i need to use telnet to do this? or can i upload already executed django directory from local server?

Eric Abrahamsen

unread,
Aug 8, 2009, 6:06:58 AM8/8/09
to django...@googlegroups.com
On Aug 8, 2009, at 5:14 PM, justin jools wrote:

Yes Ive read these docs and I understand certain script changes are needed before running on the server but I want to know about:

 installing Django on the server, do i need to use telnet to do this? or can i upload already executed django directory from local server?

Django is a Python library like any other, so you'll need to be able to add new libraries to your webhost's python installation. Whether you do that as a svn checkout or upload a directory doesn't matter, but you will need access to the python installation (or be able to talk them into installing the library themselves). Django doesn't really need to be compiled/executed, if you can just get the source directory uploaded, into a place that's accessible to the python path, that will be enough.

Installing django is extremely easy, provided you've got a host that allows you to install libraries. If they don't, then it could be very hard/impossible. Unfortunately, free hosts often aren't willing to give you shell access, or much put themselves out on your behalf, simply because they're free.

Once you've got django installed, your own website is a similar deal: a set of files in a directory that needs to be on the python path. If you can install django you can install your own website. If you cant do one, you can't do the other.

Hope that's what you were after,
Eric

justin jools

unread,
Aug 8, 2009, 8:24:34 AM8/8/09
to django...@googlegroups.com
ok well thanks for your reply:

first I have free access and they have told me python is installed but it's not working as I ran a hello world test script which doesbt execute. That is the first of my problems.

My second problem is installing Django...

and third configuring the django scripts to run as outlined in the django book, but I am stuck and the first and second hurdles...

I have been looking for a web host server that does support but seems there isnt any.. python support is a paid for service.

----------------------------------------

If you can offer any advice here its would be great. I guess the first thing i need to do is bug the administrator to get a Python test script running.

Larrik Jaerico

unread,
Aug 8, 2009, 1:43:34 PM8/8/09
to Django users
I'll bet a lot of the mailing list will faint when they see this, but
I've gotten it to work pretty easily by just dropping the django
directory directly into my project directory.

Eric Abrahamsen

unread,
Aug 8, 2009, 1:43:51 PM8/8/09
to django...@googlegroups.com
On Aug 8, 2009, at 8:24 PM, justin jools wrote:

ok well thanks for your reply:

first I have free access and they have told me python is installed but it's not working as I ran a hello world test script which doesbt execute. That is the first of my problems.

My second problem is installing Django...

and third configuring the django scripts to run as outlined in the django book, but I am stuck and the first and second hurdles...

I have been looking for a web host server that does support but seems there isnt any.. python support is a paid for service.

Yep, free services will often be limited to static web pages... If you want full control over your installation you'll probably have to pay a bit!

E

justin jools

unread,
Aug 9, 2009, 1:49:32 PM8/9/09
to django...@googlegroups.com
o thanks for that :)
as soon as my administrator finally sorts out Python script executing for me - omg! ,I'll try that

derek

unread,
Aug 11, 2009, 3:17:19 AM8/11/09
to Django users
On Aug 9, 7:49 pm, justin jools <justinjo...@googlemail.com> wrote:
> o thanks for that :)
> as soon as my administrator finally sorts out Python script executing for me
> - omg! ,I'll try that

Not sure if this is off-topic or not, but I see Google is also
offering free Django deployment on their App Engine:
http://code.google.com/appengine/articles/django.html
and
http://code.google.com/appengine/docs/whatisgoogleappengine.html
quote:
"App Engine costs nothing to get started. All applications can use up
to
500 MB of storage and enough CPU and bandwidth to support an
efficient
app serving around 5 million page views a month, absolutely free."

disclaimer: I've not had any experience with this at all.
Reply all
Reply to author
Forward
0 new messages