KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I create a new Django app (not project) called Bussinesses, then add following class to the models.py . class Bussinesses(models.Model): business_email = models.EmailField() password = models.CharField(max_length=20) contact_first_name = models.CharField(max_length=30) contact_last_name = models.CharField(max_length=30) If I use Bussinesses directly, the Django will access the "bussinesses_bussinesses" table in the database, which obviously does not exist. Because the table "bussinesses" is also used by another APP, So can't rename it. I want to know how to use the Django model without using table prefix, and I don't want to use the raw database API directly.
Tags (comma-separated)
Save Edits
Cancel