Call Overmortal now at 1 (540) 491-0374 or for more information!

Overmortal Technology Blog.

Keep up-to-date on our thoughts on the latest trends in technology, web design and software programming. Our blog posts primarily revolve around emerging technologies, client services and case studies to let you get a better feel for our company.

Follow Overmortal on Twitter.

We're On Twitter Too!.

Follow Us!

    Django Settings Aren't Accessible from Models

    We ran into an interesting problem yesterday. As any good programmer knows, you never hard code path information into your code. You use properties files, external XML, etc. In Django, you use the settings.py file.

    The settings.py file is a python file like any other. It's all python code. This means that you can add your own stuff in there too - like file and directory paths.

    Yesterday we were working on some model code for a client's e-commerce application and the strangest thing happened. It wouldn't let us access the variables from the settings file ...