These are chat archives for django/django

10th
Feb 2017
Bruno F Souza
@varnion
Feb 10 2017 11:30
Hello, guys!
Is it possible to change the "default" db_table for all models without explicitly edit the subclass Meta for all the classes?
(I want to convert the class name from CamelCase to snake_case. eg, AnotherModel => app_name_another_model)
(I'm currently using underscores in the classes names, but i find this solution ugly :P)
Miracle Ayodele
@iammiracle
Feb 10 2017 12:05
hi guys, i keep getting Model class doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS even though i have it in my INSTALLED_APPS
when i try class Meta:
my table, deletes
Miracle Ayodele
@iammiracle
Feb 10 2017 12:19
any help?
Bruno F Souza
@varnion
Feb 10 2017 15:49

when i try class Meta:
my table, deletes

@koderNeptune I don't get it. What are you trying? When does this error shows up?

Miracle Ayodele
@iammiracle
Feb 10 2017 19:46
it pops up error that model class doesnt declare explicit app_label
Miracle Ayodele
@iammiracle
Feb 10 2017 19:56
@varnion and if i try adding class Meta: app_label = "model_name"
it deletes my created model from the database