2 ms·
> No matter what happens in your page flow, you still need to return a HttpRequest object at the end of the day. I think you mean HttpResponse object. We must
by njharman 18y ago
> No matter what happens in your page flow, you still need to return a HttpRequest object at the end of the day.
I think you mean HttpResponse object. We must use Django differently (Do you use templates and contexts?) I don't understand what you are saying in your bafflement paragraph. And your evaluation of good for simple but not for heavy lifting is the exact opposite of mine. I love Django cause it makes the simple, simple and and the hard, possible.
Each view function takes a Request + parameters and returns a Response. Simple, consistent, and flexible. Easy to write decorators. Easy to reuse view functions, easy to compose view functions from parts. Easy to ditch the whole thing and roll your own.
Django is extremely well decoupled. It comes with all sorts of batteries included but it's very easy to take out a battery and use your own. Templates, storage, url routing are all easily replaced. Apps can come and go, middleware can come and go. And most the functionality admin/auth/caching/templates/storage backend/sessions/etc are split out into apps and/or middleware so it's easy to replace/extend if you need to do something special. Recent releases have made even made the admin much easier to customize without wholesale replacement.
I've even used Django for non web apps. I didn't have to do anything particularly special. It just worked.
P.S. If you think "media"/newspaper sites are simple, you don't know newspaper sites.