On 12/21/05, Armin <[EMAIL PROTECTED]> wrote: > I don't quite understand the need for multiple 'apps'. They share the > same 'session' variables... so you wouldn't run 2 different websites as > two different apps. Basically, I want to get some examples of > situations I'd need to use apps.
You don't have to use separate apps for everything, but it can be handy depending on what you're going to use them for, particularly if you're going to reuse them. For example, consider the case of a freelance web developer who has three clients: Client A is an individual who wants to have a weblog. Client B is a company that wants to have an online store. Client C is a company that wants to have both an online store and a weblog. So you could write a 'weblog' application, and install it into Client A's site and Client C's site, and a 'store' application, and install it for Client B and Client C. Because Django applications are portable, you only have to write each application once, and then you can install it into as many sites as you need to. If you're only ever going to set up one Django-powered site, the case for maintaining separate applications isn't as strong; as far as I'm concerned, reusability and portability are the big benefits here. -- "May the forces of evil become confused on the way to your house." -- George Carlin