How do I include the Django settings file?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-05-19T22:30:15Z Indexed on 2010/05/19 22:30 UTC
Read the original article Hit count: 199

Filed under:
|
|
|

I have a .py file in a directory , which is inside the Django project folder.

I have email settings in my settings.py, but this .py file does not import that file.

How can I specify to Django that settings.py should be used , so that I can use EmailMessage class with the settings that are in my settings.py?

© Stack Overflow or respective owner

Related posts about django

Related posts about python