#30618: Fix wrong AppConfig.name when called startapp command with target
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  JungChaeMoon                       |
                   Type:             |         Status:  assigned
  Cleanup/optimization               |
              Component:  Core       |        Version:  master
  (Management commands)              |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  1
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Currently, If someone calls the `startapp` command with a target directory
 argument, the generated `AppConfig.name` is wrong.
 It has to be a python path of app not just name of app.
 So, users have to reset the attribute oneself.

 In the document, 'AppConfig.name' is defined as follows.

 {{{
 AppConfig.name

 Full Python path to the application, e.g. 'django.contrib.admin'.

 This attribute defines which application the configuration applies to. It
 must be set in all AppConfig subclasses.

 It must be unique across a Django project.
 }}}
 
[https://docs.djangoproject.com/en/2.2/ref/applications/#django.apps.AppConfig.name]

 So, I belive that It has to be a path of app.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30618>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.48632425b4c6ae5f3cf9b5aad7b4a686%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to