Main app name with a startproject template (1.4)

2012-05-05 Thread Dominique Guardiola Falco
I have a template project I want to use to ease deployment of instances of a rather complex app In the example source of django, the name of the "main app" folder, just above the root project folder is named "project_name" and when the command is used, the name is replaced by the project name.

Passing template_context vars to the starproject command

2012-05-05 Thread Dominique Guardiola Falco
I have a working project template that I can use with the new "--template" option of the startproject management command Now Iwanted to pass more variables in the template_context, and the doc [1] says : The template context

Re: How to fill up the field with ForeignKey type (rendered by django Forms)

2012-05-05 Thread Dominique Guardiola Falco
Dominis, you need to override the rendering of this field, to mek it a hidden field look at the answer of this question to have a good code example : http://stackoverflow.com/questions/621212/another-django-forms-foreign-key-in-hidden-field -- You received this message because you are subscrib

Re: Main app name with a startproject template (1.4)

2012-05-06 Thread Dominique Guardiola Falco
Ok Ramiro While looking to explain it clearer, I isolated the problem : I'm calling an online gzipped template (from a github repo actually), and the problem is the final output of the startproject command , example here to create a "pony" project : $ django-admin.py startproject --template=h

Re: Admin Inline empty extra - how to access parent form model ID?

2012-05-31 Thread Dominique Guardiola Falco
On Wednesday, April 28, 2010 2:55:26 PM UTC+2, Daniel Roseman wrote: > > > The inline formset itself (rather than its forms) has an "instance" > attribute which refers to the instance of the parent form. > Sorry to bring back a two-years old post, but is there still a way to do this in django

Re: Admin Inline empty extra - how to access parent form model ID?

2012-05-31 Thread Dominique Guardiola Falco
I found a noce solution, it only needs this tiny patch already proposed on the tracker : https://code.djangoproject.com/ticket/17856 There's no reason this patch could not be merged in the trunk, it's self-contained With this, I can override get_inline_instances in my ModelAdmin : def get_i

Re: PostGIS 2.0.0 problems

2012-07-19 Thread Dominique Guardiola Falco
Is there a tutorial describing how to do this somewhere please ? Because right now, geodjango is unusable with PostGreSQL 9 + PostGIS 2 -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.goo

ReĀ : get_absolute_url method breaks under 1.3 but works with 1.2.5 and many major and minor versions prior

2011-05-13 Thread Dominique Guardiola Falco
None of my business, but you could also look why your code is calling this method when it shouldn't be called Or add a blank get_absolute_url methods to the models which doesn't have one -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t