#24971: Make startapp generate an apps.py
-------------------------------------+-------------------------------------
     Reporter:  timgraham            |                    Owner:
                                     |  MounirMesselmeni
         Type:  New feature          |                   Status:  closed
    Component:  Core (Management     |                  Version:  master
  commands)                          |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by jamesbeith):

 I just tested this with Django 1.9rc1 and the `default_app_config`
 statement was not added to the `__init__.py` file, the file was blank.

 I noticed this first in my own project but also in a blank test project.

 '''Steps'''

 - Created a new Python 3.4 virtualenv
 - Installed Django 1.9rc1 via pip
 - Ran `django-admin startproject mysite`
 - Ran `python manage.py startapp polls` from within the project

 '''Expected Behaviour'''

 - An `apps.py` file is created with appropriate content
 - An `__init__.py` file is created with appropriate `default_app_config`
 statement

 '''Actual Behaviour'''

 - An `apps.py` file is created with appropriate content
 - An `__init__.py` file is created but '''no''' `default_app_config`
 statement is included, the file is blank

--
Ticket URL: <https://code.djangoproject.com/ticket/24971#comment:5>
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/067.7ebf93ae15d7226964fd331fbd18ef8e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to