I feel embarrassed just writing this question.
I've just installed python 3.4 and django 1.8
If I enter the python interpreter and enter:
>>> import django
>>> print(django.get_version())
I get the answer 1.8 which is fine.
If I create a file django.py and in it enter:
import django
print(django.get_version())
Two things happen:
When I run it I get the error
Traceback (most recent call last): File "django.py", line 1, in <module> import django File "C:\Python_Mongo\django.py", line 2, in <module> print(django.get_version()) AttributeError: 'module' object has no attribute 'get_version'It then creates a cache folder
__pycache__and if I simply start python interpreter and enter the command:import djangoit runs mydjango.pyfile! (any other command is fine).
Please help :(