Hi,

Don't forget "yolk". Very powerful tool to display virtualenv contents in readable format. You can install it with pip install yolk.

15.10.2012 9:00, Frank Bieniek kirjoitti:
Hi,

do a "pip freeze" after you have activated your environment,
this way you see the packages that are visible to the python interpreter
inside your virtual env.

Possible Problem
You have installed all packaged before you created the virtual env.
-> virtual env shows no components.
pip install componentname should solve the problem.

or:
Windows reads the registry for some packages (mainly none native
packages) and
inside the virutual env this does not work.
Try to recreate the virtualenv with --system-site-packages option set.

another solution - use vagrant: - google for djangocon 2012 vagrant

Thanks
Frank







Am 15.10.2012 04:45, schrieb Joshua Russo:
I suppose I was a little light on the details of how I setup the
environment. I don't often setup a new environment from scratch so I
used this post as the basis:
http://slacy.com/blog/2011/06/django-postgresql-virtualenv-development-setup-for-windows-7/


The versions of each program I used / ended up with were:
   Python 2.7.3 (32 bit)
   Postgres 9.2 (32 bit)
   Setuptools 0.6c11 for Python 2.7
   Psycopg2 2.4.5 for Python 2.7 (32 bit)
   VirtualEnv 1.8.2
   Django 1.4.1



On Sunday, October 14, 2012 6:25:41 PM UTC-4, Joshua Russo wrote:

    This is probably a VirturalEnv problem as opposed to a Django
    problem but I was wondering if someone here could point me in the
    right direction.

    I'm trying to setup clean environment for a demonstration of
    Django on Tuesday but I get the following when I try to setup the
    project within the virtual environment. You can see that if I just
    run python from within the virtual environment I do have access to
    the libraries, but if I try to use the django-admin.py script, the
    libraries aren't found. Any thoughts?

    (django-tutorial)
    C:\dev\venv\django-tutorial>Scripts\django-admin.py startproject
    testsite
    Traceback (most recent call last):
      File "C:\dev\venv\django-tutorial\Scripts\django-admin.py", line
    2, in <module>
        from django.core import management
    ImportError: No module named django.core

    (django-tutorial)
    C:\dev\venv\django-tutorial>C:\dev\venv\django-tutorial\Script
    s\python.exe
    Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit
    (Intel)] on win
    32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from django.core import management
    >>> management
    <module 'django.core.management' from
    'C:\dev\venv\django-tutorial\lib\site-pack
    ages\django\core\management\__init__.pyc'>
    >>>

--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/YuSLHUyt6xIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.


--
Jani Tiainen

- Well planned is half done and a half done has been sufficient before...

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to