django-context
Django Thread-Safety for templatetags
I am coming here, because 开发者_C百科I have a question about Django and Thread. I read the documentation http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#template-tag-thread-safety an[详细]
2023-01-01 12:48 分类:问答creating my own context processor in django
I have come to a point where I need to pass certain variables to all of my views (mostly custom authentication type variables).[详细]
2023-01-01 06:19 分类:问答When to use context processor
I have a site on which I\'m including a userBox with some data shown for each logged user (your name, avatar etc). From what I already know about django it seems obvious, that I should add query for u[详细]
2023-01-01 02:06 分类:问答Is content from AJAX call added to Django context variable
I am using the JQuery load function to load part of my page.Can I access the variables开发者_C百科 from that page in the page that loads it. e.g.[详细]
2022-12-29 03:30 分类:问答Passing context between templatetags, django
I am using django to create a web-application. I have created a template in where I load a templatetag. In this templatetag I load another templatetag. From the template I pass context to the first t[详细]
2022-12-24 08:09 分类:问答Django template tag exception
It looks like this template tag works like a charm for most people: http://blog.localkinegrinds.com/2007/09/06/digg-style-pagination-in-django/[详细]
2022-12-24 01:59 分类:问答How do i write a sql query with user input and wildcards
Usually i write my where statements as WHERE key=@0 then add a param. Now i would like the user to specific a few let开发者_StackOverflow社区ters such as \'oat\' and would like to stick wildcards arou[详细]
2022-12-23 15:32 分类:问答Unable to get custom context processor to be invoked
I am trying to create a custom context processor which will render a list of menu items for a logged in user. I have done the following:[详细]
2022-12-21 06:09 分类:问答Django template context function without running automatically
Sorry or the confusing title! It\'s actually a lot simpler than it sounds. I\'ve got a function: def get_messages(request):[详细]
2022-12-20 17:54 分类:问答How can my Django views know which template to render, or whether to return JSON?
Our site can be accessed from a full browser, from mobile browsers, and from a custom iPhone app. Since the logic is mostly the same regardless of the client, we\'re using the same views to process al[详细]
2022-12-19 16:16 分类:问答
加载中,请稍侯......