You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings : [This is my pycharm settings and my django app manage.py, view.py and wsgi.py][1]


  [1]: http://i.stack.imgur.com/BGPEV.png