#25381: "default_app_config" causes custom commands to not be found
-------------------------------------+-------------------------------------
     Reporter:  thebritican          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Management     |                  Version:  1.8
  commands)                          |
     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 thebritican):

 Replying to [comment:1 timgraham]:
 > It looks like you have set
 
[https://docs.djangoproject.com/en/stable/ref/applications/#django.apps.AppConfig.name
 AppConfig.name] incorrectly. It [https://github.com/anovelmous-dev-
 
squad/anovelmous/blob/7239e33172eeb411462bfefdff92aa71576f0d48/anovelmous_app/apps.py#L9
 points to 'api'] but the Python path for that app appears to be
 'anovelmous_app'.

 When I change the name property to "anovelmous_app", I receive a
 LookupError.
 LookupError: App 'anovelmous_app' doesn't have a 'Token' model.

 I originally tried this setup to no avail, and it looked incorrect from
 the start. I need access to a database model on initialization that is
 defined in the api package. It works as expected when supplying "api" to
 the name property, except when looking for django commands.

--
Ticket URL: <https://code.djangoproject.com/ticket/25381#comment:3>
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.857ecc92d90ecd155e494dd020fedf9b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to