Dynamic Form Widget [django admin]

2010-07-14 Thread Jon Walsh
Hi guys, This might be best explained by example... for the following model: class Setting(models.Model): data_type = models.CharField() value = models.TextField() I want Django's admin to display a different form widget for the "value" field depending on the input of "data_type". For ex

Re: Managing static content / basically handling images best practices

2010-07-14 Thread Jon Walsh
I solved this issue by making the FileField (or ImageField) save the files into an Apache (or other web server) served directory. Though obviously this has security implications so I only do this for the password protected admin. Hope that helps cheers, Jon On Jul 15, 12:33 am, reduxdj wrote: >

contenttypes installed but not ???

2011-03-24 Thread Jon Walsh
If anyone could make sense of the below traceback, I'd greatly appreciate it! Noting that contenttypes is installed (as seen below) but Django says it isn't (as seen below). thanks in advance! Jon === Environment: Request Method: GET Request URL: http://127.

Re: contenttypes installed but not ???

2011-03-24 Thread Jon Walsh
The error is caused by importing an additional settings module (into settings.py). I can't figure out why though... since they are mostly just variables with string values... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group