On Fri, Mar 21, 2008 at 2:37 PM, Greg <[EMAIL PROTECTED]> wrote: > I would like to store model schema and URL regexes in the database and > be able to retrieve them from the database and use them in an app. > For example, let's say I create a simple poll model and store that > schema in the database in, for example, a "schema" model which has > already been defined the normal way in a models.py file. Is there > anything pre-existing that would allow me to retrieve and use that > model schema from the database as though it had actually been written > in a models.py file instead?
I don't think there's a "fancy schmancy term" what you're looking for, but it falls under what I've been calling dynamic models. I wrote up a wiki article[1] some time ago that covered this exact use case. Hopefully it'll help. > Could one "inject" a new model into the > running application without restarting the web server? Yes. Though I haven't actually done it in any kind of production environment, so I make no guarantees or warranties. If your server blows up, don't blame me. > Same story with URL regexes. I had wondered that some time ago, but haven't had the time to play around with them yet. Sorry, but I can't say one way or the other. -Gul [1] http://code.djangoproject.com/wiki/DynamicModels --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---