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.
Great! The world of Django is getting better and better :D Thanks!
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
Erm, I mean user.has_module_perms
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
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.
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).
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
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)
9 matches
Mail list logo