Sunday, December 28, 2014

Re: Two Django projects with common models and business logic

Hi All,

Another option which no one mentioned yet would be to keep all of the code for _both_ projects in the same repo and share common code that way.


On Tuesday, December 23, 2014 12:22:03 PM UTC-6, andy wrote:


I have two Django Projects that have different use cases. There are reached using different domains. They are hosted in two different servers. Also each Django project has it's own database.

Now, both the projects have some models and some business logic common between them. I don't want to duplicate the code and data which shall be chaotic going forward. Also, I want the models and code (business logic) to be in sync (when models/code is altered).

Can anyone guide me towards a pattern that can help me attain the required architecture: 2 separate projects with common models and business logic.

Thanks in advance.


P.S. This is my first post. So pardon me for breaking any forum etiquette.

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
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment