I have two closely related sites, a main site and a mobile site, hosted as a django app. They'll have a lot of the same functionality and need to access the same data. The main difference is the templates will be different and the way the site is structured will be different.
I have two separate virtual hosts, one for each (though I don't have to do it that way). My first thought was that the Django sites framework helps to solve this, but the docs don't seem to describe my use case.
Can someone give me a hint to know if I'm on the right track? The urls.py will need to be different since, for example, the homepage is completely different between the apps. The main goal is that for the data in the two different apps to be shared and the code to manage that does not need to be duplicated.
From the main site:
- User submits an item that is stored in the model
From the mobile site:
- User views a list of items and see the one just entered on the main site
- User gives a 5 star rating on the recently added item
From the main site:
- User views a list of highly rated items and the recently added item (which now has a high rating) shows up on the list.