Re: Cannot call imported models in views

2017-08-16 Thread Antonis Christofides
Hi, at some point in your code you have "import pprint". Replace it with "from pprint import pprint". Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-08-16 12:57, Ladislav Brodecký wrote: > Hi, I installed newest django version and python 3.6 on CentOS 7 together

Cannot call imported models in views

2017-08-16 Thread Ladislav Brodecký
Hi, I installed newest django version and python 3.6 on CentOS 7 together with postgresql and I get this error everytime I try to call model class in views. I even tried MariaDB instead and I get same error. Traceback (most recent call last): File "manage.py", line 22, in