To test just create another user and database and grant all privileges for the new user to the new database and finally add those new credentials to django settings.py
On Fri, 3 Jan 2020, 12:46 pm ramadhan ngallen, <ngallen4@gmail.com> wrote:
--HelloThe reason was due to wrong password for the postgre. Kindly test the password via Pgadmin.On 3 Jan 2020, 12:27 +0300, shailendra singh <singh.shail0608@gmail.com>, wrote:
--The above exception was the direct cause of the following exception:Traceback (most recent call last):File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_innerself.run()File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in runself._target(*self._args, **self._kwargs)File "/Applications/Projects/venv/lib/python3.8/site-packages/django/utils/autoreload.py", line 53, in wrapperfn(*args, **kwargs)File "/Applications/Projects/venv/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 120, in inner_runself.check_migrations()File "/Applications/Projects/venv/lib/python3.8/site-packages/django/core/management/base.py", line 458, in check_migrationsexecutor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in __init__self.loader = MigrationLoader(self.connection)File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 49, in __init__self.build_graph()File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 212, in build_graphself.applied_migrations = recorder.applied_migrations()File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 76, in applied_migrationsif self.has_table():File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 56, in has_tablereturn self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())File "/Applications/Projects/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in innerreturn func(*args, **kwargs)File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 260, in cursorreturn self._cursor()File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 236, in _cursorself.ensure_connection()File "/Applications/Projects/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in innerreturn func(*args, **kwargs)File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connectionself.connect()File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__raise dj_exc_value.with_traceback(traceback) from exc_valueFile "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connectionself.connect()File "/Applications/Projects/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in innerreturn func(*args, **kwargs)File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connectself.connection = self.get_new_connection(conn_params)File "/Applications/Projects/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in innerreturn func(*args, **kwargs)File "/Applications/Projects/venv/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connectionconnection = Database.connect(**conn_params)File "/Applications/Projects/venv/lib/python3.8/site-packages/psycopg2/__init__.py", line 126, in connectconn = _connect(dsn, connection_factory=connection_factory, **kwasync)django.db.utils.OperationalError: FATAL: password authentication failed for user "postgres"
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fdcdb68e-ce8d-4326-a519-7ae07a51ee2f%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f5a6ffb7-548a-4da1-96d3-adfe13f9c42b%40Spark.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHV4E-cHDUQD9eQ9kGVjY9f2UtbwZy0drFby2hBMtg9QruY3FA%40mail.gmail.com.
No comments:
Post a Comment