How to share apps between projects?

42 views
Skip to first unread message

ThomasTheDjangoFan

unread,
Mar 21, 2015, 12:50:35 PM3/21/15
to django...@googlegroups.com
Hi guys,

I developed some apps that I want share between 2 of my own projects.

What is the best practise for this?
I could just copy them over, but what if there needs to be a bug-fix?

Is there something like a 'private pip install'?

Kind regards
Thomas

Brian Schott

unread,
Mar 21, 2015, 4:47:33 PM3/21/15
to django...@googlegroups.com
--
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 django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b95b7671-44f8-4942-9de5-daf0a5951e1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ezequiel Bertti

unread,
Mar 21, 2015, 6:09:33 PM3/21/15
to django...@googlegroups.com
You can put the shared app in a git repository and use a git submodule.


Using pip with git for update a package, you need to manual remove and add again. The update command no work fine.



For more options, visit https://groups.google.com/d/optout.



--
Ezequiel Bertti
E-Mail: ebe...@gmail.com
Cel: (21) 99188-4860

Zachary McCord

unread,
Mar 21, 2015, 9:29:25 PM3/21/15
to django...@googlegroups.com
I second the suggestion of a git submodule, as it makes changes to the shared app much more convenient. This is also how I deal with third-party apps that I've forked. There is a small learning curve on git-submodule, but it's worth it.
Reply all
Reply to author
Forward
0 new messages