On Wednesday, 13 June 2012 21:46:27 UTC+1, Karandeep Nagra wrote: > > So I've set up my Django site to create a dynamic model for every Server > that is created. So at the creation of server Bender, the model > Bender_request is created. But whenever I restart the built-in server, > Bender_request disappears from the admin page. I checked my database and > there is no table for Bender_request even before I shut down the server. > Furthermore, even though Bender_requests shows up in the admin interface, > it can't be clicked on. So it seems there is no database table being > created for Bender_requests. My code is below. Any clue on this situation? >
Well, no, the code you've posted doesn't create any tables. What makes you think it would? And why would you expect a dynamic model to persist across restarts? My "clue on this situation" is simply to not do this. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/tXqlVMo3Gb0J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.