using django with multiple apps

31 views
Skip to first unread message

bng0802

unread,
Jan 4, 2017, 10:31:08 PM1/4/17
to Django users
Can anyone point to me in the right direction regarding how to use Django with Multiple apps. I am trying to build website that can work seamlessly that would direct from one view to the other based on some logic. Obviously, I have both o2m (one to many) and m2m (many to many) relationships. All the basic stuff like settings that include URLs, "including and importing" models/views/urls are all done by the book.

Yet, i get all kinds of errors including template loading, URLs not working etc. I know this is too vague but I have a feeling that I am missing something obvious while building a website using multiple apps. I am relatively new to Django and I hope there is some good documentation/example. I tried many sources including Django documentation but so far, I haven't had the luck of finding the right answer.


thanks in advance.

bng0802

C. Kirby

unread,
Jan 5, 2017, 3:36:36 AM1/5/17
to Django users
Have you worked through the Django tutorial? Generally the django documentation is considered to be some of the best framework documentation there is. I sure think so.

Specific to your problem, chances are you are having some trouble with either namespacing or scoping.

A few things to make sure of:
-Have all of your apps listed in settings.INSTALLED_APPS
-Make sure you are importing following python namespace rules.

If you feel like those are correct in your project, try breaking out one issue you are having and provide the error and the code you expect is around it. I, and most of the community, will be happy to work with you through the issues (to a degree of course).

Kirby

bng0802

unread,
Jan 5, 2017, 11:23:22 AM1/5/17
to Django users
Thanks Kirby, I will get down to the nitty gritty and let you know what I found out. I appreciate your help - Ben
Reply all
Reply to author
Forward
0 new messages