Re: Two Django projects with common models and business logic

2014-12-28 Thread Collin Anderson
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. Collin On Tuesday, December 23, 2014 12:22:03 PM UTC-6, andy wrote: > > Hi, > > I have two Django Projects that have different use cases.

Re: Two Django projects with common models and business logic

2014-12-25 Thread Stefano Probst
If you use Git as VCS: Use submodules . Submodules allow foreign repositories to be embedded within a dedicated subdirectory of the source tree, always pointed at a particular commit. Quote from the link: > It often happens that while working

Re: Two Django projects with common models and business logic

2014-12-24 Thread Vijay Khemlani
You can version it under a different repository, clone it in each server, and then add that path to the PYTHONPATH of each project, or just make a symbolic link to the app. On Wed, Dec 24, 2014 at 1:18 PM, andy wrote: > Thank you. Since it's only me that'd be using the

Re: Two Django projects with common models and business logic

2014-12-24 Thread Javier Guerra Giraldez
On Wed, Dec 24, 2014 at 11:18 AM, andy wrote: > Thank you. Since it's only me that'd be using the apps do can I bypass the > 'deploy using pip' thing and somehow directly use it in my other projects? you could just set links or add to your `sys.path` list, but that makes it

Re: Two Django projects with common models and business logic

2014-12-24 Thread andy
Thank you. Since it's only me that'd be using the apps do can I bypass the 'deploy using pip' thing and somehow directly use it in my other projects? /andy On Wednesday, December 24, 2014 12:41:25 AM UTC+5:30, Javier Guerra wrote: > > On Tue, Dec 23, 2014 at 1:22 PM, andy

Re: Two Django projects with common models and business logic

2014-12-23 Thread Javier Guerra Giraldez
On Tue, Dec 23, 2014 at 1:22 PM, andy wrote: > 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

Two Django projects with common models and business logic

2014-12-23 Thread andy
Hi, 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