Hi,
I am trying to install Django on Windows XP. Here is what I did:
(1) Downloaded and installed Python 2.7 from
in C:\Python27
(2) Downloaded Django 1.2.1 from
(3). After unzipping the file I placed Django's folder inside Python's site packages folder as below:
C:\Python27\Lib\site-packages\Django-1.2.1
(4). Now when I try to run "setup.py" in Django folder, I get the following error:
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\Django-1.2.1\setup.py", line 48, in <module>
root_dir = os.path.dirname(__file__)
NameError: name '__file__' is not defined
Screenshot can be seen below:
What am I doing wrong?
Thanks