[Dir structure]
trouble_ticketer/
models.py
views.py
incidences/
models.py
views.py
problems/
models.py
views.py
[settings.py]
INSTALLED_APPS = (
'trouble_ticketer',
'trouble_ticketer.incidences'
'trouble_ticketer.problems'
)
[imports and app]
from django.db.models import get_app
get_app('incidences')
> module 'trouble_ticketer.incidences.models.py' ...
import incidences
> Import Error
from app1 import incidences
PD: I don't totally understand the process of Django app loading
PD2: Excuse my English level
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/cVwCzqJKsvYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment