Can I close the feature that django orm will create table when a modal create?
11 views
Skip to first unread message
tinybox
unread,
Dec 28, 2016, 7:17:31 AM12/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi everyone,
I am a beginner about django.
It seems django will create a table when the modal first create, but I want to create table in database by myself and forbid django creating table automatically.
What can I do in setting.py?
Thanks~
Tim Graham
unread,
Dec 28, 2016, 7:33:24 AM12/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
You'll want to set Meta.managed = False on the model.