#33207: django.apps.apps.get_model() does not allow namespaced (PEP 420) apps to
get a model
------------------------------+--------------------------------------
     Reporter:  Jonas L.      |                    Owner:  nobody
         Type:  Bug           |                   Status:  closed
    Component:  Core (Other)  |                  Version:  3.2
     Severity:  Normal        |               Resolution:  invalid
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------

Comment (by Jonas L.):

 > There's a ​Nested namespace packages example but it's not really about
 namespaces',' as in nesting that you get from folders, that we're familiar
 with from Namespaces are one honking great idea -- let's do more of
 those''

 Sorry, I am not sure I understand your comment here.

 I probably didn't explain enough my use case.

 We have few services, '''playout''', '''analyzer''', '''api''', and more.
 Only one of them is actually based on Django the '''api'''.

 Our goal is to put them into the libretime namespace so we don't collide
 with other packages/modules. This would result in '''libretime.playout''',
 '''libretime.analyzer''', '''libretime.api'''.

 The django app is still full of __init__.py files, we just wanted to wrap
 it into the namespace so we can separate the different services.

 I understood the documentation like this: "Since our django app does not
 have anything anything outside the '''libretime/api''' folder, we can put
 it in the libretime namespace.

 So based on my explanation, is it doable ? And how can we make the
 documentation less misleading, as it seem to perfectly fit my uses case ?

 Thanks for your time, and sorry if I have trouble to understand your
 answers, the question was probably too short.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33207#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.531ddacc13535aa6c040021365d29912%40djangoproject.com.

Reply via email to