Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Import error #7
I have experienced some very odd behaivor.
In file __ init__.py:
In file first.py:
This returns "NameError: global name 'os' is not defined".
I am using Python 2.7.5 and django-split-settings==0.1.1
Unfortunately I have to say that this project is more or less abandoned. I'm one of the original developers in this project, but I'm not very familiar with the Python internals that are causing this problem. However, I was able to reproduce the error.
It seems to occur only if a class is used. If you do simply
import os print os.path.join('root', 'subfolder')
there's no error.
Maybe the error has something to do with the way
I will close this issue because I don't see anything wrong in using the workaround of importing