Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Deploying Django to production environment
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
  4 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
 
JohnL  
View profile  
 More options Nov 4, 3:19 pm
From: JohnL <john.lamber...@gmail.com>
Date: Tue, 3 Nov 2009 20:19:29 -0800 (PST)
Local: Wed, Nov 4 2009 3:19 pm
Subject: Deploying Django to production environment
Hi All,

I just joined linode and followed there instructions in setting up
Django at http://library.linode.com/lamp-guides/ubuntu-9.10-karmic/.

<VirtualHost *:80>
     ServerAdmin squ...@bucknell.net
     ServerName bucknell.net
     ServerAlias www.bucknell.net
     DocumentRoot /srv/www/bucknell.net/public_html/
     ErrorLog /srv/www/bucknell.net/logs/error.log
     CustomLog /srv/www/bucknell.net/logs/access.log combined
</VirtualHost>

My question is where do I place my django application files?  How can
I setup something like my development machine where I have a
repository on assembla.com where I can check in and out easily to
deploy?

Thank you,
John


    Reply    Reply to author    Forward  
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.
fest  
View profile  
 More options Nov 4, 7:44 pm
From: fest <hell...@gmail.com>
Date: Wed, 4 Nov 2009 00:44:36 -0800 (PST)
Local: Wed, Nov 4 2009 7:44 pm
Subject: Re: Deploying Django to production environment
Hi John,
It doesn't really matter where you place your application code- just
don't put it in a place accessible by your web server, so nobody can
access your source code.
I have apache configured to serve php websites from /var/sharedwww/
site1/www, but my django site resides in /var/sharedwww/site2/<project
name>. I basically have svn repos on my server, and I just cd'd to /
var/sharedwww/site2 and checked out my repository. So eventually my
application layout will be as follows:
/var/sharedwww/site2/
-------------------------------<project_name> (django code resides in
this directory)
-------------------------------media
-------------------------------logs
-------------------------------django.wsgi

Of course, webserver is configured not to show any python code in this
directory. You can read about django deployment on apache with
mod_wsgi here: http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#howto-...

Reinis

On 4 nov., 06:19, JohnL <john.lamber...@gmail.com> wrote:


    Reply    Reply to author    Forward  
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 Nov 4, 8:30 pm
From: Daniel Roseman <dan...@roseman.org.uk>
Date: Wed, 4 Nov 2009 01:30:09 -0800 (PST)
Local: Wed, Nov 4 2009 8:30 pm
Subject: Re: Deploying Django to production environment
On Nov 4, 4:19 am, JohnL <john.lamber...@gmail.com> wrote:

The configuration you have shown above will not serve Django at all.
It is purely for static files. You should read the Django deployment
documentation: http://docs.djangoproject.com/en/dev/howto/deployment/

Your code can live anywhere you like that is readable by your server,
although preferably it shouldn't live under your DocumentRoot.
--
DR.


    Reply    Reply to author    Forward  
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.
ssteinerX@gmail.com  
View profile  
 More options Nov 5, 6:24 am
From: "sstein...@gmail.com" <sstein...@gmail.com>
Date: Wed, 4 Nov 2009 14:24:25 -0500
Local: Thurs, Nov 5 2009 6:24 am
Subject: Re: Deploying Django to production environment
On Nov 3, 2009, at 11:19 PM, JohnL wrote:

I use OS X and just use the pre-installed Apache server with  
mod_python, and set up the virtual host to point to the right place;  
wherever I want.

Is that what you mean?

S


    Reply    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google