django-context
Django messages framework not working in template loop
I recently upgraded to Django 1.3 and I want to start using the Messages system. I have added my Middleware, Template context processors and also messages i开发者_如何学Pythonnto the INSTALLED_APPS[详细]
2023-04-09 05:59 分类:问答RequestContext on django redirect()
I\'m wondering if there is any way to include the RequestContext in the django redirect function or any other context.[详细]
2023-03-21 13:28 分类:问答DJango Passing in POST as a Context Argument
When making views in django, is it allowable to pass in POST data as context? That is: def view( request ):[详细]
2023-03-09 15:06 分类:问答Is it possible automatically include user to all templates?
I have project in Django 1.3. In order to show username in all pages I use such tags in bas开发者_运维百科e.html[详细]
2023-03-02 14:30 分类:问答How do I pass context to a template without actually specifying it in all views?
I have a few views and they all work good and all use templates that extend one base template that outputs the core HTML, the header, footer, navigation and so on. Happy family.[详细]
2023-02-16 06:13 分类:问答Django: Does DRY fundamentally conflict with logic separation?
This is similar to this question: How to use method parameters in a Django template? I understand (and agree with and appreciate) the basic django philosophy of separation of business logic from pres[详细]
2023-01-25 17:00 分类:问答django change_form.html
I\'d like to pass an argument {{x}}to my custom file change_form.html, which is located in /home/django/project/app/template/admin/change_form.html. I found this code but it doesn\'t work:[详细]
2023-01-21 20:31 分类:问答django context with several inclusion_tag
I have a little problem with the context. I have an inclusion tag with the param : takes_context=True In this inclusion\'s tag\'s template, I call for another inclusion_tag whic开发者_如何学Goh h[详细]
2023-01-18 19:37 分类:问答Django Context Processors: Is it possible to access current context in ContextProcessor?
Is there a way I can access current context passed by view in custom context processor so I can add missing variable if I want rather than overriding existing variable ?[详细]
2023-01-18 18:54 分类:问答Conditional context processor for authenticated users
I have a context processor returning list of users friends. I\'d like it to return the dictionary of friends only if user is logged in, because currently I have clean database without any users and I\[详细]
2023-01-05 22:01 分类:问答