Trouble with VirtualEnv on Windows
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/-/lVP5ZCW1BpYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home