Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Nov. 3, 2005 13:41:28

s.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

model for database view


I'm thinking of using a model for a database view (for convinience). Is
there anyway one could set anything int the META of a model to tell it
*not* to create a database table when doing a "django-admin sqlreset",
or do I have to manually filter out the "create table..." statement?

/stava

Offline

#2 Nov. 3, 2005 13:50:42

Jacob K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

model for database view


On Nov 3, 2005, at 7:41 AM, stava wrote:I'm thinking of using a model for a database view (forconvinience). Isthere anyway one could set anything int the META of a model to tell it
*not* to create a database table when doing a "django-admin sqlreset",
or do I have to manually filter out the "create table..." statement?Currently you've got to do the manual thing, but see http://code.djangoproject.com/ticket/419.Note that when you're "wrapping" a view be sure to insert the outputof "django-admin sqlinitialdata" so that the packages/content-typestables get set up correctly.Jacob

Offline

#3 Nov. 5, 2005 07:25:23

s.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

model for database view


Yeah, the meta.AbstractModel seems to come in handy. In the mean time,
I'll do it manually. Thanks!

stava

Offline

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support