Re: setlang using AJAX

2011-05-30 Thread Luca Casagrande
load the whole page anyway or you want only part of > the page to be translated? > There's a way to change language without form. > > R. > > On 30. Máj, 13:07 h., Luca Casagrande > wrote: > > > > > > > > > Hello everybody, > > I'd like

setlang using AJAX

2011-05-30 Thread Luca Casagrande
Hello everybody, I'd like to use an AJAX request without any form to change the language of my site. My problem is that I haven't found a way to avoid the csrf_token error.. How can I generate the token without any form? The other way it to use setlang with a GET request but, according to docs, th

Re: Localization of CharField entries

2011-03-22 Thread Luca Casagrande
On 22 Mar, 10:22, bruno desthuilliers wrote: > on 22 mar, 09:26, Luca Casagrande wrote: > > > Hello everyone, > > I'm working on the localization of a Django project and I met some > > difficulties. Following the documentation in the section > > "Internat

Localization of CharField entries

2011-03-22 Thread Luca Casagrande
Hello everyone, I'm working on the localization of a Django project and I met some difficulties. Following the documentation in the section "Internationalization ", I could easily translate the contents of the templates and the verbose_name of the model's attributes. The problem is that one of my m

GeoDjango admin and data reprojection

2011-01-21 Thread Luca Casagrande
Hello everybody, I have simple model defined like this: class point(models.Model): geom = models.PointField(srid='3004') object = models.GeoManager() In PostGIS spatial_ref_sys table and in proj's epsg file I changed the proj string adding the +towgs84 parameters to have a better reproject

Removing title from each admin page

2010-11-26 Thread Luca Casagrande
Hello folks, is there any way to remove the title over each admin element, like "Site administration" or "Select..to change". Thanks Luca -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegr

Filter data inside template

2010-07-16 Thread Luca Casagrande
Hello everybody, is it possible to filter data inside template? I have 2 models with a foreignkey relationship: class Requests(models.Model): name = models.CharField(max_length=16) surname = models.CharField(max_length=16) class Information(models.Model): request = models

Looping through models

2010-06-01 Thread Luca Casagrande
Hello everybody, using GeoDjango I need to do a spatial intersections through a lot of different model (polygon): output1 = model1.objects.filter(geom__intersects=fs[0].geom) output2 = model2.objects.filter(geom__intersects=fs[0].geom) ... Where fs is a QuerySet output. Is there a way to create a l