Editing
Running a Django Application on IIS
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Setting up a virtualenv under Windows == All that's necessary is the instructions above. This section about setting up a virtualenv was a path that I started down but ultimately wasn't applied. Leaving this information here just in case it would be of use in the future. * [http://djangonautlostinspace.wordpress.com/2012/04/16/django-and-windows Django and Windows] * [http://stackoverflow.com/questions/8688709/virtualenv-on-windows-7-returns-assertionerror/10078890 Stackoverflow: virtualenv on windows 7 returns AssertionError] :* Running the command `virtualenv my-proj-env --no-site-packages` I was running into this error: <pre> AssertionError: Filename c:\Python27\Lib\os.py does not start with any of these prefixes: ['c:\\python27'] </pre> :* There were two useful bits of advice in the Stackoverflow thread: ::* The path values stored in the `PYTHONPATH` environment variable need to match the case of the path at the end of the error message.<br />In my case both the drive letter and the "p" in "python" were lowercase and all the paths needed to match, i.e. both the "c" and "p" needed to be lowercase even though the directory name was actually capitalized. ::* Once that error was resolved, I got the following <pre> ImportError: No module named _socket </pre> ::* Which was resolved by adding "c:\python27\DLLs" to the `PYTHONPATH` environment variable.
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information