HELP HELP FATAL: password authentication failed for user "postgres"
cqn some body helps me to correct this error while running *python manager.py runeserver * (analyseprotection) flavien@flavien-VirtualBox:~/MyProjects/alertprot$ python manage.py runserver Performing system checks... System check identified no issues (0 silenced). Unhandled exception in thread started by Traceback (most recent call last): File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 228, in wrapper fn(*args, **kwargs) File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 127, in inner_run self.check_migrations() File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/management/base.py", line 422, in check_migrations executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS]) File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 20, in __init__ self.loader = MigrationLoader(self.connection) File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 52, in __init__ self.build_graph() File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 210, in build_graph self.applied_migrations = recorder.applied_migrations() File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations self.ensure_schema() File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 52, in ensure_schema if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()): File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 254, in cursor return self._cursor() File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 229, in _cursor self.ensure_connection() File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection self.connect() File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__ six.reraise(dj_exc_type, dj_exc_value, traceback) File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection self.connect() File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 189, in connect self.connection = self.get_new_connection(conn_params) File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection connection = Database.connect(**conn_params) File "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 126, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) django.db.utils.OperationalError: FATAL: password authentication failed for user "postgres" 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/eb5beb47-013e-4e07-a077-31a732635325%40googlegroups.com.
Re: HELP HELP FATAL: password authentication failed for user "postgres"
thanks On 11/29/19, Integr@te System wrote: > Hi freind, > > check your connection on vm first, and then config > https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-HOST > > On Fri, Nov 29, 2019, 19:41 EMPOWER EXCEL wrote: > >> cqn some body helps me to correct this error while running *python >> manager.py runeserver * >> (analyseprotection) flavien@flavien-VirtualBox:~/MyProjects/alertprot$ >> python manage.py runserver >> Performing system checks... >> System check identified no issues (0 silenced). >> Unhandled exception in thread started by >> Traceback (most recent call last): >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/autoreload.py", >> line 228, in wrapper >> fn(*args, **kwargs) >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", >> line 127, in inner_run >> self.check_migrations() >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 422, in check_migrations >> executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS]) >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/executor.py", >> line 20, in __init__ >> self.loader = MigrationLoader(self.connection) >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/loader.py", >> line 52, in __init__ >> self.build_graph() >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/loader.py", >> line 210, in build_graph >> self.applied_migrations = recorder.applied_migrations() >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", >> line 65, in applied_migrations >> self.ensure_schema() >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", >> line 52, in ensure_schema >> if self.Migration._meta.db_table in >> self.connection.introspection.table_names(self.connection.cursor()): >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 254, in cursor >> return self._cursor() >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 229, in _cursor >> self.ensure_connection() >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 213, in ensure_connection >> self.connect() >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/utils.py", >> line 94, in __exit__ >> six.reraise(dj_exc_type, dj_exc_value, traceback) >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 213, in ensure_connection >> self.connect() >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 189, in connect >> self.connection = self.get_new_connection(conn_params) >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py", >> line 176, in get_new_connection >> connection = Database.connect(**conn_params) >> File >> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/psycopg2/__init__.py", >> line 126, in connect >> conn = _connect(dsn, connection_factory=connection_factory, >> **kwasync) >> django.db.utils.OperationalError: FATAL: password authentication failed >> for user "postgres" >> 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+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://
ERROR IndentationError: unindent does not match any outer indentation level
PLEASE PUSH ME UP TO CORRECT THIS PROBLEM: class Alerts(models.Model): name = models.CharField(max_length=20) location = models.PointField(srid=4326) objects = models.GeoManager() self.models_module = import_module(models_module_name) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/home/flavien/MyProjects/alertprot/ZSalertprot/models.py", line 11 objects = models.GeoManager() ^ IndentationError: unindent does not match any outer indentation level -- FLAVIEN HERI *Information management AscociateUNHCR-Kinshasa* Tél:+243978587009 Skype: flavien.heri1 Facebook: flavien semi -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG3GEnzWm_4wAcFboaT%3Dn8OD%3DC1cigm%2B9N-%2Bvib8pin2Uv7BCA%40mail.gmail.com.