you can use classes refer from here https://github.com/bmentges/django-cart and see how he is using cart.py <https://github.com/bmentges/django-cart>
On Sat, Oct 8, 2016 at 3:22 PM, hans.krebs42 <[email protected]> wrote: > I'm coding a Django web project. I've created an app and implemented its > functionality - templates, models etc. The website needs to use this > application in two places, and the only difference are the sets of data the > instances will be operating on (for example, say it's a news app and I have > two unrelated sections of the site, each needs to display news concerning > completely different topics). Is there a clean (i.e. other than just > copying all the code into another directory) way to achieve this in Django? > Ideally I'd like to use one database and split the data into separate > tables. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/713754f8-89ec-44cd-92d2-2017035e5cd1%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/713754f8-89ec-44cd-92d2-2017035e5cd1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAcanstNRGVzG94yAk%3Da_A5LEdYJz0AKta23wRiQdK%2BFnnPQZA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

