Disable i18n for certain templates

2008-10-21 Thread Armandas
Hi, I am using internationalization on my project. Recently I found out that output from date filter is not in english. The point is, that I use this to construct pubDate for my rss, like this: {{ post.date|date:"D, d M Y H:i:s" }} GMT and i18n just screws things up here. Is there any proper

Re: "Global" variables for templates

2008-06-08 Thread Armandas
That's what I was looking for. Thank you! On Jun 8, 8:14 pm, "Adi J. Sieker" <[EMAIL PROTECTED]> wrote: > Hi, > > Armandas wrote: > > Hi, I have this issue about some variables that should be available in > > templates, no matter which view is called. So

"Global" variables for templates

2008-06-08 Thread Armandas
Hi, I have this issue about some variables that should be available in templates, no matter which view is called. So far I could only think of making a custom function, that would add these variables like so: def render(request, template, context): #variables that should be allways available

Re: URL tag

2008-06-06 Thread Armandas
passed to the templatetag. > > Try the following : {% url blogapp.posts_by_tag 'mytag' %} > > On Jun 5, 8:40 pm, Armandas <[EMAIL PROTECTED]> wrote: > > > Hi, I have problems making {% url %} work. > > > I have this urls.py file in my project directory: > > from

Re: URL tag

2008-06-05 Thread Armandas
for a certain client like this:: {% url app_name.client client.id %} The URL will look like ``/clients/client/123/``. On 5 Jun, 20:09, "Bruno Tikami" <[EMAIL PROTECTED]> wrote: > Armandas, > > The url patterns are not sent within the HttpResponse a

URL tag

2008-06-05 Thread Armandas
Hi, I have problems making {% url %} work. I have this urls.py file in my project directory: from django.conf.urls.defaults import * urlpatterns = patterns('root', (r'^blog/', include('blogapp.urls')), (r'^admin/', include('django.contrib.admin.urls')), ) then in my applicatoion