Re: Combine page content (html) and model instance (json) in ajax response

2014-06-13 Thread Max Demars
your JS can parse the JSON and access the `html` and `param` values. On Thursday, June 12, 2014 2:30:58 PM UTC-4, Max Demars wrote: > > I would like my view to return the page content and some parameters that I > would like to use in the Ext.Ajax.request success function. > >

Re: Django OneToOne field problem

2014-06-12 Thread Max Demars
You will have to do content.link_set to retrieve the Link model related to the Content model instance. See: https://docs.djangoproject.com/en/dev/topics/db/queries/#following-relationships-backward On Thursday, June 12, 2014 2:54:48 PM UTC-4, Satinderpal Singh wrote: > > Suppose there are two t

Combine page content (html) and model instance (json) in ajax response

2014-06-12 Thread Max Demars
I would like my view to return the page content and some parameters that I would like to use in the Ext.Ajax.request success function. views.py def importFile(request): form = ImportVectorForm() html_response = render_to_response("page_content.html", {'form': form, 'folder':

django-tables2 - Mix queryset and non-queryset data in table

2014-04-14 Thread Max Demars
wms.valid = False wms_table = WMSListTable(wms_list) RequestConfig(request).configure(wms_table) return render(request,"basqui/manage_layer_wms_list.html", {'wms_list':wms_table},context_instance=RequestContext(request)) Thanks a l

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2014-04-03 Thread Max Demars
Greetings, I encounter the same error here. In latest gunicorn release, it's not possible anymore to deploy gunicorn/django the old way doing python manage.py run_gunicorn, so I'm stuck...I'd like to know if someone found what causes this error. -Max Demars On Wednesday, Nove

Re: "Beginning Geo Django: Rich Gis Web Applications With Python" Where can I get the book?

2014-03-19 Thread Max Demars
Hi Alex, I cannot help you with this book in particular, but I could suggest another book that helped me a lot. Python Geospatial Development by Erik Westra -Max Demars On Tuesday, March 18, 2014 11:49:49 AM UTC-4, Alex wrote: > > Thats an interesting dilemma. I just looked around a

Re: hstore support in postgis backend

2013-04-15 Thread Max Demars
Hi Matt Have you test this hstore branch? Does it combines well the postgis backend with hstore modified postgres backend? Have you found something better so far? Thank you, Max Demars On Wednesday, November 28, 2012 7:08:25 PM UTC-5, Matthew Cooper wrote: > > Hi Reiner > >

Re: Dynamic Models for CSV Importing

2013-04-15 Thread Max Demars
bit of what you have learnt that would be much appreciated. Thank you, Max Demars On Monday, June 20, 2011 7:04:07 PM UTC-4, Andre Terra (airstrike) wrote: > > Thanks for the quick reply, Shawn! > > The reason I wanted to use Django was so that I could leverage the ORM to > al

Re: Dynamic runtime modeling: which is the best choice?

2013-04-14 Thread Max Demars
maybe combining with a queue like Celery. I am not sure neither about this avenue. Please give me a little feedback about this topic! Max Demars On Tuesday, January 31, 2012 10:15:44 AM UTC-5, Alessandro Candini wrote: > > Hi list. > I need to create an app in which the user can

Persist toggle (show/hide) state when form is submitted using window.localStorage

2013-02-25 Thread Max Demars
Hello, I have a form that use the collapse.js of django admin (outiste django admin). I would like to persist the show/hide fieldsets state when the form is submitted. According to this question