i've screwed up my virtualenv

25 views
Skip to first unread message

Malik Rumi

unread,
May 5, 2014, 7:32:47 AM5/5/14
to django...@googlegroups.com

I have several problems. They are:

My Django project folder is 3 levels below my virtualenv.

Pip freeze:

a.    on my virtualenv, in the parent folder or the Django project, only gives me the Django-trunk I got from github

b.    but in the Django project folder, and without the virtualenv, it gives me all 8 packages I’ve been using on my project thus far.

c.    Note this includes Django 1.6.1, not Django-trunk, which is the beta Django 1.7a2.

So clearly I’ve screwed up. The question is, how bad is it, and what do I do about it?

thx

Mike Dewhirst

unread,
May 5, 2014, 7:46:11 AM5/5/14
to django...@googlegroups.com
On 5/05/2014 5:32 PM, Malik Rumi wrote:
>
> I have several problems. They are:

Try ...

1. Create a new virtualenv for your project

2. pip install all the dependencies again (if you don't have a
requirements file) including Django 1.6

3. Retrieve your project code from the repo or backup

4. Manually copy any changed source (from three levels down) over the
restored source

5. Repeat from 1 above except for Django 1.7 in step 2

Don't forget to activate whichever virtualenv you want to work on.

Good luck

Mike


>
> My Django project folder is 3 levels below my virtualenv.
>
> Pip freeze:
>
> a. on my virtualenv, in the parent folder or the Django project,
> only gives me the Django-trunk I got from github
>
> b. but in the Django project folder, and without the virtualenv,
> it gives me all 8 packages I’ve been using on my project thus far.
>
> c. Note this includes Django 1.6.1, not Django-trunk, which is
> the beta Django 1.7a2.
>
> So clearly I’ve screwed up. The question is, how bad is it, and
> what do I do about it?
>
> thx
>
> --
> 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
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto: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/7c1fc205-eefe-45fb-9538-bddb1aaf321a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7c1fc205-eefe-45fb-9538-bddb1aaf321a%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Malik Rumi

unread,
May 5, 2014, 12:56:03 PM5/5/14
to django...@googlegroups.com
THANKS!
Yea, it's that 'activate' part that I kept forgetting that got me into this mess. Maybe I should paste it to my forehead? (-:




To post to this group, send email to django...@googlegroups.com

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/Jwp0yd5IXgU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.

yati sagade

unread,
May 5, 2014, 1:18:06 PM5/5/14
to django...@googlegroups.com

Or probably just use the excellent virtualenv-wrapper :) You can then do things like:

    mkvirtualenv foo # to create a venv

    workon foo # switch to venv foo

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.
Reply all
Reply to author
Forward
0 new messages