Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Development server won't work from a shared web host
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jonathan Baker  
View profile  
 More options Sep 3 2012, 4:10 pm
From: Jonathan Baker <jonathandavidba...@gmail.com>
Date: Mon, 3 Sep 2012 14:10:18 -0600
Local: Mon, Sep 3 2012 4:10 pm
Subject: Re: Development server won't work from a shared web host

In the 'Running the Development Server' section of this
page<http://www.djangobook.com/en/2.0/chapter02/>in the tutorial it
states that:
"Although this server is convenient for development, resist the temptation
to use it in anything resembling a production environment. The development
server can handle only a single request at a time reliably, and it has not
gone through a security audit of any sort."

The 'runserver' command should only be used for local development. You need
to configure your server to work with Django via wsgi (or a similar method).

Jonathan

--
Jonathan D. Baker
Developer
http://jonathandbaker.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ecs1749  
View profile  
 More options Sep 3 2012, 10:32 pm
From: ecs1749 <ecs1...@gmail.com>
Date: Mon, 3 Sep 2012 19:32:08 -0700 (PDT)
Local: Mon, Sep 3 2012 10:32 pm
Subject: Re: Development server won't work from a shared web host

Thanks for the reply.  Yes, I saw that message.  I am a bit lost where to
go next if I completely ignore that tutorial regarding doing admin from the
development server (which I don't have).  Do I dive into tutorial   #3 and
hope that it will pick up the admin stuff later when it gets to talk about
wsgi?  Or is there a "here's what you do if you don't have a development
server" tutorial somewhere?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Roseman  
View profile  
 More options Sep 4 2012, 2:13 am
From: Daniel Roseman <dan...@roseman.org.uk>
Date: Mon, 3 Sep 2012 23:13:53 -0700 (PDT)
Local: Tues, Sep 4 2012 2:13 am
Subject: Re: Development server won't work from a shared web host

On Tuesday, 4 September 2012 03:32:08 UTC+1, ecs1749 wrote:

> Thanks for the reply.  Yes, I saw that message.  I am a bit lost where to
> go next if I completely ignore that tutorial regarding doing admin from the
> development server (which I don't have).  Do I dive into tutorial   #3 and
> hope that it will pick up the admin stuff later when it gets to talk about
> wsgi?  Or is there a "here's what you do if you don't have a development
> server" tutorial somewhere?

You should not be doing the tutorial - or any development - on your server.
Install Django locally and do it there, then deploy when you are ready and
not before.

However, you are wrong to assume that the admin console has anything to do
with the development server - it works just fine with any server.
--
DR.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ecs1749  
View profile  
 More options Sep 4 2012, 12:03 pm
From: ecs1749 <ecs1...@gmail.com>
Date: Tue, 4 Sep 2012 09:03:44 -0700 (PDT)
Local: Tues, Sep 4 2012 12:03 pm
Subject: Re: Development server won't work from a shared web host

I don't have a local machine I can use to learn Django - just a personal
acct from a shared host.  The question I kept asking was:  How do I get
into admin and follow the tutorial without the development server because
the tutorial doesn't tell me that.

Regards,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcin Tustin  
View profile  
 More options Sep 4 2012, 12:19 pm
From: Marcin Tustin <marcin.tus...@gmail.com>
Date: Tue, 4 Sep 2012 12:19:14 -0400
Local: Tues, Sep 4 2012 12:19 pm
Subject: Re: Development server won't work from a shared web host

You don't have a computer that you can develop on at all? How are you
writing this email? Developing over ssh is going to be a huge pain.

Now, you *maybe* can use the runserver command - if you do add the --help
switch it will tell you how to run it to bind to a particular interface and
port. It maybe that you can bind it to a port on the localhost interface
(and then tunnel that over ssh), or you may be able to have your host
allocate you specific ports which you can use to run any kind of web server
you like.

While runserver shouldn't be used for production, I have used it to
diagnose specific problems in the production environment, which inevitably
will differ from development when using a shared host. This is, of course,
fairly insecure, and could even be illegal depending on your data
protection obligations.

--
Marcin Tustin
Tel: +44 (0) 7773 787 105 (UK)
       +1  917 553 3974 (US)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ecs1749  
View profile  
 More options Sep 6 2012, 12:19 am
From: ecs1749 <ecs1...@gmail.com>
Date: Wed, 5 Sep 2012 21:19:29 -0700 (PDT)
Local: Thurs, Sep 6 2012 12:19 am
Subject: Re: Development server won't work from a shared web host

Ok, ok.  I now have a Ubuntu/server with a Ubuntu desktop running using
oracle vm virtualbox.   I know almost nothing about Linux.  I don't even
know how to ssh to this beast sitting in front of me.  I  hope this is a
start...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Demian Brecht  
View profile  
 More options Sep 6 2012, 9:59 am
From: Demian Brecht <demianbre...@gmail.com>
Date: Thu, 6 Sep 2012 06:58:13 -0700
Local: Thurs, Sep 6 2012 9:58 am
Subject: Re: Development server won't work from a shared web host
You *can* install Django on Linux, Mac or Windows. Choose the
environment that you're most accustomed to if you're just trying to
get things done. However, if you want to learn Linux at the same time
(at least, bits of it), then I fully endorse going down that path.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ecs1749  
View profile  
 More options Sep 6 2012, 1:23 pm
From: ecs1749 <ecs1...@gmail.com>
Date: Thu, 6 Sep 2012 10:23:07 -0700 (PDT)
Local: Thurs, Sep 6 2012 1:23 pm
Subject: Re: Development server won't work from a shared web host

Thanks.  I might as well bite bits of it.  It's tough going because there
are so many dependencies.  It's hard to gather all of the right packages
just to get through the Django tutorial.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kurtis Mullins  
View profile  
 More options Sep 6 2012, 2:21 pm
From: Kurtis Mullins <kurtis.mull...@gmail.com>
Date: Thu, 6 Sep 2012 14:21:11 -0400
Local: Thurs, Sep 6 2012 2:21 pm
Subject: Re: Development server won't work from a shared web host

Hey,

All you should need to get through the Django Tutorial is Python and
Django. During development you can use SQLite which is built in and doesn't
need any third-party libraries. Good luck!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ecs1749  
View profile  
 More options Sep 6 2012, 11:08 pm
From: ecs1749 <ecs1...@gmail.com>
Date: Thu, 6 Sep 2012 20:08:56 -0700 (PDT)
Local: Thurs, Sep 6 2012 11:08 pm
Subject: Re: Development server won't work from a shared web host

Well, that's almost true :-)

Granted - it's a lot easier so far but I had to track down several things
(and a whole lot of "here's how" tips) that were taken for granted (like
pip which require easy_install.... so on and so forth).  

In retrospect, I recommend future newbee to take this route: start with
Oracle's VirtualBox and build a Ubuntu virtual machine,   Enable the
desktop, mySQL, and SSLServer.  Get easy_install which comes with pip.  
Install Django via pip, add Python-mySQL and Mako - then off you go.  It's
a whole lot easier this way.  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
graeme  
View profile  
 More options Sep 8 2012, 1:30 am
From: graeme <graeme.piete...@gmail.com>
Date: Fri, 7 Sep 2012 22:30:19 -0700 (PDT)
Local: Sat, Sep 8 2012 1:30 am
Subject: Re: Development server won't work from a shared web host

I have used the development server to run a test site so the client could
see the site easily. It sat behind a real webserver: if you do this you can
tighten security a bit (e.g. use http authentication to limit access).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
graeme  
View profile  
 More options Sep 8 2012, 1:55 am
From: graeme <graeme.piete...@gmail.com>
Date: Fri, 7 Sep 2012 22:55:36 -0700 (PDT)
Local: Sat, Sep 8 2012 1:55 am
Subject: Re: Development server won't work from a shared web host

On Friday, September 7, 2012 8:38:56 AM UTC+5:30, ecs1749 wrote:

> Well, that's almost true :-)

> Granted - it's a lot easier so far but I had to track down several things
> (and a whole lot of "here's how" tips) that were taken for granted (like
> pip which require easy_install.... so on and so forth).  

> In retrospect, I recommend future newbee to take this route: start with
> Oracle's VirtualBox and build a Ubuntu virtual machine,   Enable the
> desktop, mySQL, and SSLServer.  Get easy_install which comes with pip.  
> Install Django via pip, add Python-mySQL and Mako - then off you go.  It's
> a whole lot easier this way.

Easier still: install  virtualenv (in the Ubuntu repos), which comes with
pip and use sqlite (which should be already installed). I have not had any
problems so far developing on SQLite and eventually deploying using
Postgres.

Why Mako? As a personal preference it is fine, but why general advice for
newbies? Many people are happy with Django templates - although I far
prefer Jinja which had the advantages without some of the more annoying
restrictions.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Javier Guerra Giraldez  
View profile  
 More options Sep 8 2012, 2:43 pm
From: Javier Guerra Giraldez <jav...@guerrag.com>
Date: Sat, 8 Sep 2012 13:43:10 -0500
Local: Sat, Sep 8 2012 2:43 pm
Subject: Re: Development server won't work from a shared web host

On Sat, Sep 8, 2012 at 12:55 AM, graeme <graeme.piete...@gmail.com> wrote:
> Why Mako? As a personal preference it is fine, but why general advice for
> newbies? Many people are happy with Django templates - although I far prefer
> Jinja which had the advantages without some of the more annoying
> restrictions.

after a quick look at Mako, it's similar enough to PHP (embedding a
full language in the template) to be familiar to many newcomers....
for the wrong reasons.

there's a reason why the Django templates (and Jinja too, i believe)
make a conscious effort not to be Turing-complete.

--
Javier


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »