I am about to build a django project for a web app I am developing. For structural purposes, I want to know if it is possible to have two different apps within a project that communicate with each other like two different things in a single app within a django project. For example:
have two different parts of a django project. users and groups.
I currently have a testing project that has both within the general app of the django project. within the general project I included all parts of project in a single app. I want to know if i can break apart different parts of this project into seperate apps that can communicate with each other (templates, redirects, renders), and how I can connect them or what I need to do to connect them together.
example
-example
-__init__.py
-settings.py
-urls.py
-wsgi.py
-general
-__init__.py
-admin.py
-apps.py
-models.py
-test.py
-urls.py
-views.p
THis is what I am thinking of doing
example
-example
-__init__.py
-settings.py
-urls.py
-wsgi.py
-users
-__init__.py
-admin.py
-apps.py
-models.py
-test.py
-urls.py
-views.p
-groups
-__init__.py
-admin.py
-apps.py
-models.py
-test.py
-urls.py
-views.p
How can i connect the two different projects inthe urls file so I can redirect url's between the two. if possible, what would a redirect look like if I want to go from a url in the users app to a url in a groups app... What would the main urls file look like... in the example folder...
Another question is... are queries going to stay the same or do i need to change how queries are made...