Django database table naming convention

1.9k views Asked by At

What is the convention/best practices for naming database tables in Django... using the default database naming scheme (appname_classname) or creating your own table name (using your own naming conventions) with the meta class?

1

There are 1 answers

0
Amr Abdelaziz On

The default convention is better and cleaner to use :

  • It avoids any table naming conflict ( As It's a combination of App name and Model name)
  • It creates well organized database (Tables are ordered by App names)

So until you have any special case that needs special naming convention , use the default.