Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (16 sloc) 597 Bytes
Django design patterns
1. Singleton model.
Why do you need this?
You want a config model. For example, you are writing a blog application, and you need to store the name of Blog and Tagline
which is guaranteed to be single. You can save this in, but you do not want to force users to edit settings,
and want a web interface for everything.
2. Logged model.
3. Change Tracked model.
4. Handling get and post.
5. Handling Get, Post and Ajax
6. Url naming
7. Template naming
8. Project layout
9. Template inheritance
Something went wrong with that request. Please try again.