#22280: "Conflicting models in application" RuntimeError for same model with different paths -----------------------------------+------------------------------------ Reporter: blueyed | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+------------------------------------
Comment (by MalikRumi): Replying to [comment:24 collinanderson]: > You either need to move your `apps` folder next `manage.py` or reference things as `Baillee.apps.usconst` instead of `apps.usconst`. Always reference absolute import paths relative to manage.py - I chose to go to absolute paths instead of moving apps, and that cleared up the conflict problem, so thanks. However, now I am getting a NameError - 'Baillee' is not defined - in my usconst/urls.py, which is importing * from views which in turn imports from models. I changed the * to specify the views but that made no difference. My understanding is that this error comes up because it is the first time Django/Python has seen a term and does not know what it is/means/represents. But if the checks are run in models and views before urls, why is this happening? I know this is not supposed to be a support forum, but I've been looking since yesterday with no luck. Any suggestions? -- Ticket URL: <https://code.djangoproject.com/ticket/22280#comment:25> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.364f6ca49bc5fc841112954e276c5ebb%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.