Re: App label with dot

2020-12-20 Thread Federico Capoano
Created: https://code.djangoproject.com/ticket/32285#ticket Not sure if the categorization is correct, I don't see where AppConfig could fit there? Let's continue there. Thanks On Fri, Dec 18, 2020 at 11:59 AM Tom Forbes wrote: > Yes, a more friendly error message would be far better here! User

Re: App label with dot

2020-12-18 Thread Tom Forbes
Yes, a more friendly error message would be far better here! User-facing runtime exceptions like unpacking errors are never good. This should be quite a simple change to make, I’d suggest opening a trac ticket first and we can go from there. Tom > On 18 Dec 2020, at 16:38, Federico Capoano w

Re: App label with dot

2020-12-18 Thread Federico Capoano
Thanks Tim, would it be useful to have a more user friendly error message? Il ven 18 dic 2020, 11:08 Tim Graham ha scritto: > app_label "should be a valid Python identifier." Dots aren't allowed. > > > https://docs.djangoproject.com/en/stable/ref/applications/#django.apps.AppConfig.label > > On

Re: App label with dot

2020-12-18 Thread Tim Graham
app_label "should be a valid Python identifier." Dots aren't allowed. https://docs.djangoproject.com/en/stable/ref/applications/#django.apps.AppConfig.label On Friday, December 18, 2020 at 10:47:45 AM UTC-5 Federico Capoano wrote: > Defining the app_label of an AppConfig with a dot, like "myproj

App label with dot

2020-12-18 Thread Federico Capoano
Defining the app_label of an AppConfig with a dot, like "myproject.subapp" is allowed, but raises an exception in the migration framework (too many values to unpack). Did anybody notice this? Is it supposed to be allowed or not at all? Best regards Federico Capoano -- You received this messa