Re: {% if method(arguments) %}

2005-09-11 Thread Mookai
Although I thought it would work, it isn't working, or I am doing something wrong: {% for app in app_list %} {% if perms.app.name %} ... some html code {% endif %} {% endfor %} This won't work, because in: class PermLookupDict: def __init__(self, user, module_name): self.user, self.

Re: {% if method(arguments) %}

2005-09-11 Thread Mookai
Great! The world of Django is getting better and better :D Thanks!

Re: {% if method(arguments) %}

2005-09-11 Thread Simon Willison
On 11 Sep 2005, at 20:16, Mookai wrote: Is it possible to use this syntax of do I have to write an own template tag? I want to use it to check if a module has to be displayed based on permissions: {% if user.get_module_perms(app.name) %} That syntax won't work - but the magic perms varia

Re: {% if method(arguments) %}

2005-09-11 Thread Mookai
Erm, I mean user.has_module_perms

{% if method(arguments) %}

2005-09-11 Thread Mookai
Is it possible to use this syntax of do I have to write an own template tag? I want to use it to check if a module has to be displayed based on permissions: {% if user.get_module_perms(app.name) %} But this doen't work

Re: auto-generated template for generic views

2005-09-11 Thread Johan
Also a big +1. using django-admin.py to generate the template is not only great for generating a standard template, but also an ideal tool for people like me who learn best by example. Looking forward for this feature.

Re: SuspiciousOperation: User tampered with session cookie.

2005-09-11 Thread [EMAIL PROTECTED]
I've no idea why, but after building my own version of Apache 2.0.54 everything works just fine (earlier I was using Apache from official deb's). I used ./configure --enable-so --with-mpm=worker (just in case if anybody would need this).

Re: middleware needed

2005-09-11 Thread Eugene Lazutkin
Lawgon, Are you sure you run admin with correct settings? Please note that admin requires myproject.settings.admin, while the rest of the site requires myproject.settings.main (see http://www.djangoproject.com/documentation/tutorial1/). Cheers, Eugene "lawgon" <[EMAIL PROTECTED]> wrote in m

middleware needed

2005-09-11 Thread lawgon
I set up a django installation, but when i tried to run the admin thingie, i get this message: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", line 60, in get_response response = middleware_method(request, callback, param_dict)