Re: can't adapt type 'Decimal'

2010-08-24 Thread Gabriel Farrell
(I tried to post the below in a comment at poupou's site (http:// www.defitek.com/blog/2010/06/29/cant-adapt-type-decimal-error-with-django-apache-postgresql-psycopg2/), but kept getting errors.) Just ran into the same problem. In my mod_wsgi config I had: WSGIDaemonProcess site1

Re: Enable users to input formatted text

2009-12-22 Thread Gabriel Farrell
If you have any trouble with tinymce look at Markdown in django.contrib.markup, especially with the "safe" extension. Nice lightweight solution. On Mon, Dec 21, 2009 at 6:22 PM, Continuation wrote: > django-tinymce looks like is what I need. > > Thanks for pointing me

filter and count on multi-table inheritance?

2009-12-18 Thread Gabriel Farrell
I have the following models: class News(models.Model): title = models.CharField(max_length=128) author = models.ForeignKey(User, related_name='news') class Report(News): subtitle = models.CharField(max_length=128) synopsis = models.TextField() class Post(News): body =

Re: starting point?

2007-11-21 Thread Gabriel Farrell
If you are stuck with PHP I recommend Symfony (http://www.symfony- project.org/). It's the most Django-like PHP framework I've seen. On Nov 21, 10:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > ok! argh... i don't want to use php anymore... :p is there at least a > django like framework

Re: Include tag - encoding

2007-11-20 Thread Gabriel Farrell
I don't know details on this, but there have been a lot of improvements to the Unicode handling in versions since 0.96, so an obvious suggestion would be to upgrade to the latest Subversion trunk. That will most likely solve your problem. gsf On Nov 20, 12:09 pm, cwurld <[EMAIL PROTECTED]>

Re: starting point?

2007-11-20 Thread Gabriel Farrell
Hi Horace, Depending on your webhost, you will need to use fastcgi or mod- python. See http://wiki.dreamhost.com/index.php/Django as an example -- therein are the steps necessary to get Django running on DreamHost, a large webhost that supports fastcgi. Also see

Re: Error message when viewing admin? (ViewDoesNotExist at /admin/)

2007-10-03 Thread Gabriel Farrell
Did you have a view named "startsess" that you subsequently deleted? Admin is looking for it but not finding it. You may need to remove it from django_content_type. Try dropping that table from your database and running python manage.py syncdb. On Oct 3, 12:34 pm, Greg <[EMAIL PROTECTED]>

Re: Passing a list of field names to the value() method?

2007-06-21 Thread Gabriel Farrell
On Jun 19, 5:19 pm, RichardH <[EMAIL PROTECTED]> wrote: > This is probably more of a Python question than django, but django > provides the context for my problem. > > Requirement: I have got a user defined list of field names (e.g. > field_names=['id','name','description',...]) and I want to

Re: CheckboxSelectMultiple error: Select a valid choice. That choice is not one of the available choices.

2007-06-18 Thread Gabriel Farrell
On Jun 15, 3:13 pm, Gabriel Farrell <[EMAIL PROTECTED]> wrote: > I've just replaced the RadioSelect widget with CheckboxSelectMultiple > for one field in my view. Here's the relevant code: > > self.fields['patron_type'] = forms.ChoiceField(choices=( >

Re: delete obsolete content type entries...

2007-06-18 Thread Gabriel Farrell
On May 7, 4:32 am, Jens Diemer <[EMAIL PROTECTED]> wrote: > That surprises me. Does nobody have the same problems? > Still nobody delete a model class? > > How to clean up the django tables? With phpMyAdmin? > I've just run into a similar issue when I removed an app from a project. After some

CheckboxSelectMultiple error: Select a valid choice. That choice is not one of the available choices.

2007-06-15 Thread Gabriel Farrell
I've just replaced the RadioSelect widget with CheckboxSelectMultiple for one field in my view. Here's the relevant code: self.fields['patron_type'] = forms.ChoiceField(choices=( (pt.id, pt.name) for pt in patron_type_choices),