Django Structure Tool Window -- Models don't show unless defined directly in models.py
I'm interested in seeing my Django project structure, but the Structure Tool Window is only showing models in my applications that are defined in the root models.py file. In my app, I have many models that are in a `my-app/models` directory. I thought I could import the models into the base models.py like:
#my-app/models.py
from django.db import models
from .models import *
class MyModel(models.Model):
pass
but the Tool Window only shows the `MyModel` class in its view. the `models/__init__.py` file has this in it:
#models/__init__.py
from .complaints import *
from .labor_operations import *
from .models import *
Anyone run into this and have a solution? This is also a problem with my views, too.
请先登录再写评论。
As a workaround, consider using explicit imports instead of the wildcard "*" until the issue is fixed. I'm sorry for the inconvenience.