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 with

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 execute_from_com

Re: imported models

2009-06-14 Thread Luc Saffre
On 13.06.2009 21:19, Luc Saffre wrote: > Can somebody explain what's going wrong there? Okay, I now looked into Django's code and understood a few things: I imagined that Django finds out the models of a project by looking into the "models" module of each application. That's wrong. django.models