self-rerencing ForeignKey menu in admin

2008-05-02 Thread leland
Hi all - I have this code: class Page(models.Model): visible = models.BooleanField(default=True) parent = models.ForeignKey('self', null=True, blank=True) title = models.CharField(max_length=255) In the admin, I don't want a user to be able to select the current page as its own paren

django on mediatemple (dv) box?

2007-03-01 Thread leland
what's up gang - i've got everything installed on my mediatemple (dv) box. python, mod_python, mysqldb, django, etc. the only part i cannot get to work is setting up the vhost.conf file. i've got the following in there, but when i go to /mysite/ it's still served up by apache... any ideas? S

Re: Rich text editor

2007-03-02 Thread leland
i agree - tiny_mce is SUPER easy to implement. also - check out your line: js = 'media/js/admin/AddRichTextEditing.js' view the source on your admin page and look at the src attribute of the

Re: django on mediatemple (dv) box?

2007-03-06 Thread leland
joe - thanks for the tip. turns out it wasn't including the vhosts.conf file. so i got everything to work on mediatemple's (dv) 3.0 server. now, i've run into another issue. my company runs a (dv) 2.0 box that came standard with python 2.2. i upgraded to python 2.3, but now mod_python still points

Re: django on mediatemple (dv) box?

2007-03-07 Thread leland
that my apr version needs to be 0.9.4, and that is the version i'm running. any idea what that might be? thanks again! On Mar 7, 10:34 am, Brian Rosner <[EMAIL PROTECTED]> wrote: > On 2007-03-06 20:51:14 -0700, "leland" <[EMAIL PROTECTED]> said: > > > >

Re: django on mediatemple (dv) box?

2007-03-08 Thread leland
OK! figured this out. Turns out you have to install an older version of mod_python - 3.1.4 to be precise. everything works perfectly now! thanks for all of your help! On Mar 7, 9:38 pm, Brian Rosner <[EMAIL PROTECTED]> wrote: > On 2007-03-07 09:49:48 -0700, "leland" <[

MySQL Clustering

2007-07-18 Thread Richard Leland
Trying to set up a connection from Django to a MySQL cluster. I've never done this before, so any guidance you could provide would be excellent. I know that DATABASE_OPTIONS can be used in the settings.py file, just not sure if that's the right course of action or even how to write this into the D