1
So it turns out the that the problem was that I had another file called local.py in my settings folder for my project. Tree as follows:
โโโ microblog
โ โโโ __init__.py
โ โโโ __init__.pyc
โ โโโ settings
โ โ โโโ base.py
โ โ โโโ base.pyc
โ โ โโโ __init__.py
โ โ โโโ __init__.pyc
โ โ โโโ local.py
โ โ โโโ local.pyc
โ โโโ settings.pyc
โ โโโ urls.py
โ โโโ urls.pyc
โ โโโ wsgi.py
โ โโโ wsgi.pyc
โโโ Procfile
โโโ requirements.txt
Since I was following the Getting Started wit Django Tutorial, I had the following in my local.py file:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'USER': '<user>',
'PASSWORD': '<pwd>',
'NAME': '<name>',
'HOST': 'localhost',
}
}
That was causing the problem. I tried adding the file to my .gitignore, but that didnโt work. The solution was to actually comment these lines out.
- [Answer]-User matching query does not exist โ django
- [Answer]-How to change the name of the document=True field of Haystack in Django?
Source:stackexchange.com