Thanks to a comment on my blog: the below is null and void: the
request object can be retrieved directly from context: context
['request'].
On Jun 2, 2:55 pm, BluMarble wrote:
> On Jun 1, 7:53 pm, "bax...@gretschpages.com"
> wrote:
>
> > I'm trying t
If you just need the request obj passed to all pages. I use this in my
URLs:
# Custom Direct to template - carrys the request object
def direct_to_template(request, template):
from django.shortcuts import render_to_response
from django.template import RequestContext
return render_to_r
On Jun 1, 7:53 pm, "bax...@gretschpages.com"
wrote:
> I'm trying to write a template tag that accesses the user's
> request.session. My problem is, I don't know how to get the request.
>
> Googling around, I saw references to including
> TEMPLATE_CONTEXT_PROCESSORS in settings, but I'm still no
I personally feel you should look into doing the post via Ajax, pass
your form field values into an array and unpack the values in your
view:
ie:
function AjaxSubmitForm(formdata){
$.post('/ajax/some-view/'+formdata+'/', function(data){
if(data == 'done'){
d.body.innerHTML = "
Thanks for the help Thomas, unfortunetly it wouldn't be within budget
to port this site over to 1.0. Will however look into the link you
provided.
On Jan 29, 12:50 pm, Tomas Kopecek wrote:
> In that version (0.96) of Django was bug in combination of these
> decorators and CacheMiddleware. If you
Anyone?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@
Hi,
I'm pretty new to django so please bear with me.
The Server:
lighttpd
python 2.5
django 0.96
The Code:
>>> settings.py
# Cache settings
CACHE_MIDDLEWARE_SECONDS = 5*60
CACHE_BACKEND = 'file:///var/www/data/some_project/tmp/file_cache/?
timeout=300&max_entries=500'
# Middleware
MIDDLEWARE_
7 matches
Mail list logo