Template problem

2007-02-21 Thread VirusRaja
Dear all, Am new to django, i have a problem i don't know how it will work in Django, i have created a user model, which has user data, in my template if i use the model tags {{form.username}} my webpage alighments is not coming up properly, I need to set the sizes for the controls. is there any

Re: Template problem

2007-02-21 Thread VirusRaja
Can create the controls in HTML?? how can i set it Django model. thanx Prasad On Feb 22, 5:21 am, "VirusRaja" <[EMAIL PROTECTED]> wrote: > Dear all, > > Am new to django, i have a problem i don't know how it will work in > Django, > i have created a user model, which has user data, in my templat

Re: MEDIA_URL - feedback pls on ticket 1278

2007-02-21 Thread James Bennett
On 2/21/07, SmileyChris <[EMAIL PROTECTED]> wrote: > Regarding ADMIN_MEDIA_PREFIX however there is already a way to do > this: > Not sure if it's documented but there is a template tag in > contrib.admin.templatetags.adminmedia which provides this > functionality already, do we want to be doubling

Re: many_to_many, symmetry and newforms

2007-02-21 Thread Russell Keith-Magee
On 2/22/07, Sandro Dentella <[EMAIL PROTECTED]> wrote: > > The reverse is not true, you don't get a widget for the user in the form > created for Group. > > Why that? Mostly historical. In the bad old days, the Django query syntax didn't support queries across the reverse direction of relat

Re: MEDIA_URL - feedback pls on ticket 1278

2007-02-21 Thread SmileyChris
On Feb 22, 7:48 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > I know Adrian's argued that this is feature creep, but in this > particular case I'm not convinced. Thanks for chiming in James, your reasons are the ones I've been trying to iterate. Regarding ADMIN_MEDIA_PREFIX however there is al

application development in Django

2007-02-21 Thread ik ben op t fietske
I'm considering having built a size-able (500+ users) web app that is a true application (like CRM, ERP, etc). Next to primarily read/search/browse capabilities that I see a lot in Django applications there's thus a need for transactional write functionality as well. Pls share your experiences.

Custom CoordinatesField for geographic data

2007-02-21 Thread Jannis Leidel
Hi list, I created a custom form field for editing geographic data (coordinates) with a Google, Yahoo(Ajax) or Yahoo(Flash) map in the Django admin application. Please go to http://code.google.com/p/django-coordinatesfield/ to get the source or browse the svn repository. Although there is

Re: MEDIA_URL - feedback pls on ticket 1278

2007-02-21 Thread James Bennett
I've gone ahead and added a patch to this ticket which adds 'django.core.context_processors.media' and places it in the default TEMPLATE_CONTEXT_PROCESSORS tuple (and documents the new processor and its inclusion in the default setting). The context processor simply adds the values of the ADMIN_ME

many_to_many, symmetry and newforms

2007-02-21 Thread Sandro Dentella
Here again... Im trying to understand if there is a real need to brake symmetry in a ManyToMany relation, and how can that be bypassed creating a model. Let's use User/Group models. class User(model.Model): ... groups = models.ManyToManyField(Group,...) creating a form u

FloatField, blank and newforms and PostgreSQL failure

2007-02-21 Thread Sandro Dentella
I'd like to take your attention on a side effect of missing FloatField.formfield(): CharField is used in newforms that means that null=True, blank=True will use an empty strings that correctly makes PostgreSql quite angry... (sqlite doesn't bother...) Digging into the open tickets I see the reaso

Re: new Comments contrib application suggestion

2007-02-21 Thread James Bennett
On 2/21/07, Matias <[EMAIL PROTECTED]> wrote: > I need to create a comment system in wich could be made per-reply > replies, I mean something like slashdot's one, and add some features > like mail notifications and so on. You can already do comments on comments, actually -- a comment can "attach"

new Comments contrib application suggestion

2007-02-21 Thread Matias
Hi, I need to create a comment system in wich could be made per-reply replies, I mean something like slashdot's one, and add some features like mail notifications and so on. I would like to know if someone is still working on a "new-comment" application, or if there are any future plans for this

Re: #3297newforms: Implement FileField and ImageField

2007-02-21 Thread [EMAIL PROTECTED]
You use the latest patch? Still needs tests for required/not required/failed required/empty file/ wrong encoding of form/valid image/invalid image for create and update. On 21 Feb, 01:36, Sandro Dentella <[EMAIL PROTECTED]> wrote: > On Tue, Feb 20, 2007 at 06:14:34PM -, [EMAIL PROTECTED] wro