Re: 2 projects, 2 apps, bad templates ...
Hi Tomas! Thank you for your reply, I really appreciate it. :)
On Thu, Jan 24, 2013 at 6:12 PM, Tomas Neme <lacrymology@gmail.com> wrote:
> Use virtualenvs. That's basic for any serious python development
> you'll want to do.
Totally agree. Setting up virtualenv's are our long term goal.
> Besides that, you might add DjangoProjectA to sys.path on ProjectA
> (and add DjangoProjectB to sys.path on ProjectB) in their respective
> manage.py files.
I'll look into that, thanks for the tip! :)
> On the other hand, why does pip install -e install it under ProjectA's
> directories? that shouldn't happen, you should end up with a SINGLE
Doh, I probably did not explain things clearly. Sorry about that.
I installed FOOAPP from DjangoProjectB's root project directory; the
pip -e installation put FOOAPP into:
DjangoProjectB/src/FOOAPP/...
Just to clarify further, I ran the pip install from DjangoProjectB/--->here<---
> FOOAPP package, probably in /usr/local/lib or something. Try removing
> (or renaming so it's not there under that name, anyways)
> ProjectA/FOOAPP and see if adding FOOAPP to INSTALLED_APPS uses the
> global version (the one you installed with `sudo pip`)
Thanks for tips Tomas! I will experiment with the things you
suggested. I really appreciate it.
I'm hoping we can convert everything to virtualenvs sooner than later.
The side-by-side projects with a pip installed app that has the same
name in both projects is probably what's weird about our install (and
no virtualenvs, like you've pointed out).
A part of me wonders if it would have been best to just import FOOAPP
from DjangoProjectA into DjangoProjectB and syncdb (wouldn't that give
me separate databases, but they would share the same Python code,
right?)
Well, anyway, many thanks again for the help and tips, I appreciate it! :)
Cheers,
M
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home