Dynamically adding new data model but not re-runserver.

1 view
Skip to first unread message

Bo Zhao

unread,
Jun 6, 2009, 5:49:59 PM6/6/09
to geod...@googlegroups.com
Hi all,

My client has several requests on adding new shapefiles to the postgresql, then I need to create new data model and import the data. but my question is that should I re-runserver everytime I adding a new data model, or is there any alternatives?

best,

Bo


--
Bo, Zhao
GIS Intern, Center for Geographic Analysis, Harvard Univ.
Ph.D student, Dept. of Urban & Reg. Planning, Univ. of Florida.
Mobile: +1-352-235-5029
Site: http://geoinformatics.cn
Coordinates: 42°22'32"N  71°04'55"W

Erik Allik

unread,
Jun 6, 2009, 6:48:51 PM6/6/09
to geod...@googlegroups.com
I assume by "create new data model" you mean generate a new Django
model and save it to a .py file? If that's true, why not just import
it right after you've saved it to the file?

Erik

Bo Zhao

unread,
Jun 6, 2009, 7:02:10 PM6/6/09
to geod...@googlegroups.com
Thanks for your prompt reply.

so that's what I think about. but I assumed that  adding a new .py is not that easy, I have to build new .py and run "syncdb". then the data model and shapefile be in the database. right?

Bo

2009/6/6 Erik Allik <eal...@gmail.com>
Reply all
Reply to author
Forward
0 new messages