[Django] #30559: Django 2.2 | Auto-reload doesn't detect changes in new apps

2 views
Skip to first unread message

Django

unread,
Jun 11, 2019, 9:36:43 AM6/11/19
to django-...@googlegroups.com
#30559: Django 2.2 | Auto-reload doesn't detect changes in new apps
-----------------------------------------+------------------------
Reporter: ronzilca | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Just created a new project with Django CLI. My project split into multiple
apps so the structure is like this:


{{{
project
app1/
..
migrations/
views/
__init__.py
apps.py
urls.py
core/
..
migrations/
views/
__init__.py
apps.py
urls.py
project/
settings/
__init__.py
common.py
development.py
__init__.py
urls.py
wsgi.py
}}}

I'm using Docker to build the environment and make sure that both apps
registered in the INSTALLED_APPS property.

The problem is that the Django doesn't listen to app1 app, but only to
core app. Also, if I add another folder under the core app, it's doesn't
listen to this folder as well.

I've changed the BASE_DIR property to support the new structure:

{{{
BASE_DIR =
os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
}}}

Any suggestions?

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

Django

unread,
Jun 11, 2019, 11:03:37 AM6/11/19
to django-...@googlegroups.com
#30559: Django 2.2 | Auto-reload doesn't detect changes in new apps.
---------------------------+--------------------------------------
Reporter: ronzilca | Owner: nobody
Type: Bug | Status: closed
Component: Utilities | Version: 2.2
Severity: Normal | Resolution: needsinfo

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => needsinfo
* type: Uncategorized => Bug
* component: Uncategorized => Utilities


Comment:

Thanks for the report, however I cannot reproduce this issue on Django 2.2
or on master even with a similar structure:
{{{
├── manage.py
├── test_one
│   ├── admin.py
│   ├── apps.py
│   ├── __init__.py
│   ├── migrations
│   │   └── __init__.py
│   ├── models.py
│   ├── tests.py
│   └── views.py
├── test_two
│   ├── admin.py
│   ├── apps.py
│   ├── __init__.py
│   ├── migrations
│   │   └── __init__.py
│   ├── models.py
│   ├── tests.py
│   └── views.py
└── ticket_30559
├── db.sqlite3
├── __init__.py
├── settings
│   ├── __init__.py
│   └── settings.py
├── settings.py
├── urls.py
└── wsgi.py
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30559#comment:1>

Reply all
Reply to author
Forward
0 new messages