Trying to retrieve dynamically generated session key in template

2009-01-17 Thread dahpgjgamgan
Hi, A simple scenario: - A generic object detail view, on which I can vote for the displayed object. - vote is handled by custom view which sets a key in session (named "vote_) indicating that a vote was made - in the template I want to check for existance of this key, and if present,

Re: Decoupling between projects and app in 4-part tutorial.

2009-01-13 Thread dahpgjgamgan
On Jan 13, 1:51 am, Malcolm Tredinnick wrote: > [...] > > Look, if you aren't going to be moving the applications around, the > imports in the tutorial aren't horrible. It's the beginner's tutorial. That's a big if, regarding that tutorial does stress decoupling

Decoupling between projects and app in 4-part tutorial.

2009-01-11 Thread dahpgjgamgan
Hi, In the 4-part tutorial on Django's main site, there's a lot of advice on how to decouple apps and projects, but when I look at the import statements in most of the tutorial's files, it's always "from projectname.appname import ." - not very decoupled for me. Am I missing something,