mdargacz
mdargacz

Reputation: 1379

Django ERROR: Not environment configured

When i try to runserver from terminal or by using Pycharm i get An Error like :

"ERROR: Not environment configured"

I Have never met that error. I'm starting it for a first time on linux+pycharm, but I had it done before on linux+aptana and windows+pycharm. Project is using virtualenv, Pycharm sees all imports etc.. lampp server is also running. Unfortunately i haven't found any clues on google/stackoverflow.

Upvotes: 0

Views: 76

Answers (1)

Simeon Visser
Simeon Visser

Reputation: 122456

Are you using django-project-template?

It has that line here and it happens when it can't find settings for the current hostname (the output of socket.gethostname().lower()).

To fix it you need to check the hostname of the server you're running on and specify Django project settings for it.

Upvotes: 2

Related Questions