Re: 404 Page Help

2007-09-12 Thread Ryan K
Ok...nevermind. Jake is righttemplate context processors are my friend. Thanks! On Sep 12, 10:06 am, Ryan K <[EMAIL PROTECTED]> wrote: > Ok...so how do I pass my 'site_context' dictionary (which is just a > dict with URL prefixes in it for static media) to the default 404 > handler? > > On Se

Re: 404 Page Help

2007-09-12 Thread Ryan K
Ok...so how do I pass my 'site_context' dictionary (which is just a dict with URL prefixes in it for static media) to the default 404 handler? On Sep 12, 4:24 am, Collin Grady <[EMAIL PROTECTED]> wrote: > You don't need a custom 404 handler in order to use RequestContext - > the default handler a

Re: 404 Page Help

2007-09-11 Thread Collin Grady
You don't need a custom 404 handler in order to use RequestContext - the default handler already does. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: 404 Page Help

2007-09-11 Thread Ryan K
from django import http from django.template import RequestContext, loader from urls import site_context def display_404(request): custom_dict = {'request_path': request.path} custom_dict.update(site_context) t = loader.get_template('404.html') return http.HttpResponseNotFound(t.

Re: 404 Page Help

2007-09-11 Thread jake elliott
hi ryan, how about a context processor? http://www.djangoproject.com/documentation/templates_python/#writing-your-own-context-processors -jake Ryan K wrote: > Hi. All URLs in my templates are preceded by variables I added to the > settings file so I could easily deploy my site on many differen

404 Page Help

2007-09-11 Thread Ryan K
Hi. All URLs in my templates are preceded by variables I added to the settings file so I could easily deploy my site on many different URLs, this includes CSS file URLs. When the custom error 404 page comes up, there is obviously no style because I can't pass the setting to it. Is there a way to h