C
C
catletmedown2014-12-06 11:39:56
Django
catletmedown, 2014-12-06 11:39:56

Django. How to include an external library?

Newbie. I can't understand what's going on. I install the iapws python library via pip, it is imported and works without problems in the python console, it also works on the built-in django server, but on apache + mod wsgi the page simply does not respond (500). What logs to watch?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
catletmedown, 2014-12-11
@katletmedown

sudo chmod -R 644 /usr/lib/python2.7/dist-packages/django

V
Vladislav, 2014-12-06
@RGV

Could it be that Apache and the console refer to different interpreters?

D
Dmitry Kirichuk, 2014-12-06
@orgkhnargh

Check the ALLOWED_HOSTS setting .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question