Hi,I'm trying to pre-populate a choices list for a CharField from some folders on the file system, I was doing this by calling a function within the models.py which assigned the list of folders to a variable which was then used in the charfield. This all worked perfectly using the development server, however, when deploying the site under apache2/mod_python I find that this list only ever gets updated when apache is restarted. I had vaguely thought of using a signal((pre| post)-init) to create the list as a global variable, but that didn't seem to work.
Does anyone, please have any idea how I could do this? Thanks, Dave -- David Reynolds [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature