Django Atom feed Item Category

2011-10-20 Thread ggavy
Hi everyone, I'm geting a little confused with the 'item category' section of Django's atom feed framework. I want to extend each entry in a feed with a further piece of information beyond the standard title, id, etc. The only way I see how to do this is to make use of the 'category' element

queryset extension with field from different model

2011-10-26 Thread ggavy
Hi, this is just a question to help me understand queryset usage a little better. If I had two models, unrelated via foreignkey etc, but which shared a common field, e.g. class modelOne(models.Model): a = b = c = class modelTwo(models.Model): c =

FTP prefic in URL field

2011-07-15 Thread ggavy
Hi all, I'm using a URLField in a model and form. However the form validation for this does not accept 'ftp://' type prefixes. What are my options here? Do I need to write a custom field or is it possible to modify the 'validate' method on the field itself so that it includes the default URL r

Re: FTP prefic in URL field

2011-07-15 Thread ggavy
Hi Tim, I'm getting the 'Enter a valid URL.' error returned. I am however using Django 1.1, and thought that was the issue (I'm not sure where to look for the validator.py in this older version, but I think Iread somewhere that ftp wasn't in the regex at that version). Migrating to 1.2 isn't p

Re: FTP prefic in URL field

2011-07-18 Thread ggavy
Thanks Tim, I kinda guessed that would be the case. Thanks for the advice. G On Jul 15, 3:12 pm, Tim Shaffer wrote: > Yeah, it doesn't look like 1.1 allowed for ftp protocol: > > https://github.com/django/django/blob/1.1.X/django/forms/fields.py#L545 > > Best bet might be to create your ow

Selecting a directory on a local machine

2011-08-15 Thread ggavy
Hi, I have a django app running on a webfaction account. I want to be able to make use of a list of files that I hold locally on my own machine. Is there a way through forms to allow a user of the webapp to select a local directory on which files within this directory can then be uploaded? I h

pgadmin vs schema migration

2011-02-24 Thread ggavy
Hello everyone, if I have a live app running off a postgres db (containing data) and I want to make reasonably simple schema (and possibly data content) changes, are there any dangers in just using pgadmin (e.g adding a column) as opposed to using some type of migration software, e.g. south. I

Re: pgadmin vs schema migration

2011-02-24 Thread ggavy
Thanks. It's good to get a little second opinion. I'm sure I'll make the switch to migration tools eventually as things become a little more involved. Cheers gav On Feb 24, 11:58 am, Mike Ramirez wrote: > On Thursday, February 24, 2011 03:48:18 am ggavy wrote: &g