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 = models.
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 to that.
>
> On Dec 21, 5:
(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 maximum-requ
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),
widget=widgets.CheckboxSelec
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 at
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=(
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 pass
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]> wrote
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 http://www.djangoproject.com/doc
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]> wrot
I'll second Christian Joergensen by saying that foreign key fields are
the way to go here, rather than choices hacks. Put those types in
another table.
gsf
On Nov 20, 12:16 pm, David Marko <[EMAIL PROTECTED]> wrote:
> Using this I could create a static list only. But what I mean is
> dynamic li
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
12 matches
Mail list logo