Re: Configuring mod_python and Djano on Apache2

2008-12-30 Thread tosh
it depends on the url structure of your site really if you don't need your django site to load from the root you could just do something like SetHandler None SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE Test.settings

Re: inline model with FilePathField

2008-08-18 Thread tosh
On Aug 18, 2:09 pm, tosh <[EMAIL PROTECTED]> wrote: > maybe i'm missing something obvious but it seems that if i have an > inline model that uses the FilePathField a new object is added on > every save. > > simple example > > models: > class Video(models.Mod

inline model with FilePathField

2008-08-18 Thread tosh
maybe i'm missing something obvious but it seems that if i have an inline model that uses the FilePathField a new object is added on every save. simple example models: class Video(models.Model): title = models.CharField() filepath = models.FilePathField(path="/path") class Story(models.

Re: auto_id after validation

2008-07-14 Thread tosh
On Jul 14, 2:40 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi, > > On Jul 14, 3:32 pm, tosh <[EMAIL PROTECTED]> wrote: > > > i'm using newforms admin branch. i have a form and auto_id="%s". > > everything works fine on the initial load. H

auto_id after validation

2008-07-14 Thread tosh
i'm using newforms admin branch. i have a form and auto_id="%s". everything works fine on the initial load. However, If there is a validation error when the form is redisplayed i get id_ prepended to my form ids. is there some way to control this or am i missing something? thanks --~--~-~-

How to use combined indices (esp. in fulltext queries)?

2008-07-08 Thread ToSH
Hi, I would need to do a query like SELECT * FROM mytable WHERE match (a) against("+AAA" in boolean mode) and match (b against("+BBB" in boolean mode) and match (a,b) against("+AAA +BBB" in boolean mode) If I would omit the last line (which seems to be redundant) I could do this easily with the