Replacing description field in syndication RSS feed

2009-10-14 Thread simong
I can create an RSS feed using the documentation for syndication and have tried to extend it using the MediaRSS format as described here: http://www.djangosnippets.org/snippets/1648/. This works up to a point: I'm testing with Firefox and it still doesn't display the media: extensions, but that's

Passing a dynamic ChoiceField response to a ForeignKey instance

2009-05-15 Thread simong
There's probably a very simple answer to this but I can't see it at the moment: This model: class Product(models.Model): user = models.ForeignKey(User, related_name="product_list", editable=False) productid = models.CharField(max_length=40, blank=True) prodname = models.C

fail_message 'changed' when updating form

2009-04-03 Thread simong
elf.instance, self._meta.fields, fail_message, commit) File "/usr/lib/python2.5/site-packages/django/forms/models.py" in save_instance 43. cleaned_data = form.cleaned_data Exception Type: AttributeError at /products/edit/1/ Exception Value: 'ProductForm' object has no attribute &

django-profile instance data on custom form

2009-03-12 Thread simong
I'm creating a profile form that includes first_name and last_name fields that write to the User model and additional fields that write to my user profile model derived from Alex S's post here: http://groups.google.com/group/django-users/msg/00e49ca16c63762c class UserProfileForm(forms.Form):

Re: Datetime and apache log files show wrong timezone

2009-01-24 Thread simong
On Jan 24, 2:30 pm, Graham Dumpleton wrote: > On Jan 24, 8:46 pm, simong wrote: > > > > > My apologies in advance if this isn't a direct django issue but I > > can't work out where the problem is coming from. > > > My server's system time runs C

Re: Datetime and apache log files show wrong timezone

2009-01-24 Thread simong
On Jan 24, 2:30 pm, Graham Dumpleton wrote: > On Jan 24, 8:46 pm, simong wrote: > > > > > My apologies in advance if this isn't a direct django issue but I > > can't work out where the problem is coming from. > > > My server's system time runs C

Datetime and apache log files show wrong timezone

2009-01-24 Thread simong
My apologies in advance if this isn't a direct django issue but I can't work out where the problem is coming from. My server's system time runs Centos 5 and is set to Europe/London: -bash-3.2$ date Sat Jan 24 12:26:14 GMT 2009 -bash-3.2$ date -u Sat Jan 24 12:26:17 UTC 2009 -bash-3.2$ /sbin/hwcl

Re: ModelForm fails with TypeError on save

2008-10-20 Thread simong
On Oct 20, 12:28 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Oct 20, 11:12 am, simong <[EMAIL PROTECTED]> wrote: > > > > >         if request.method == 'POST': > >                 orderform = OrderForm(request.P

ModelForm fails with TypeError on save

2008-10-20 Thread simong
I have a model like this: class OrderProfile(models.Model): cartid = models.CharField(max_length=128, null=True, blank=True) orderno = models.CharField(max_length=48, null=True, blank=True) userid = models.CharField(max_length=128, null=True, blank=True) userfirstn

Re: TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread simong
On Sep 4, 3:53 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 10:00 AM, simong <[EMAIL PROTECTED]> wrote: > > It might have been in part a caching problem in Firefox: to clarify, > > I'm testing this on my laptop running Ubu

Re: TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread simong
On Sep 4, 2:02 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 7:04 AM, simong <[EMAIL PROTECTED]> wrote: > > > I am trying to migrate a project to 1.0 and I'm currently updating the > > admin system. When I try to load the /admi

TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread simong
I am trying to migrate a project to 1.0 and I'm currently updating the admin system. When I try to load the /admin/ URL I get this error: Exception Type: TemplateSyntaxError Exception Value:Caught an exception while rendering: No module named admin_urls The error is coming from l

Re: Get and set encryption in Model Forms

2008-08-18 Thread simong
On Aug 11, 1:42 am, jonknee <[EMAIL PROTECTED]> wrote: > On Aug 10, 11:29 am, simong <[EMAIL PROTECTED]> wrote: > > > The code executes correctly and writes the record to the database but > > doesn't encrypt the credit card number. > > You're not foll