0๐
โ
So after playing around it started to work.
Solution was that I havent added the server to pgAdmin https://www.pgadmin.org/
I was under assumptions that pgadmin is just a tool to see whats going on but without adding postgre to pgadmin the migration had errors.
๐คIlya Bibik
1๐
Your DATABASES section in settings.py should be like:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'yourdb',
'USER': 'youruser',
'PASSWORD': 'yourpass',
'HOST': '',
},
}
Your INSTALLED_APPS should include psycopg2
Once this in place and server restarted, you can remigrate, which should create the missing table
๐คdmitryro
- View with form and context dict
- What is a right way of creating apps into django project? (doubts about file location)
- Which query to be used in data base
- Django Test request.method == 'POST' not working
0๐
django_content_type should be created automatically.
Iโm wondering how did you do your makemigrations
Maybe try
python manage.py makemigrations
instead of doing them one by one
๐คI. Xue
- Sorted/searchable StackedInline options
- Names with dash does not work in django-haystack
- Django external api calls
- Django model name in save() method
- How do I resolve the "'mathfilter' tag 'addition' stopped working since replicating django project" error?
Source:stackexchange.com