System check identified no issues (0 silenced).
Unhandled exception in thread started by <function check_errors..wrapper at 0x7f2f6c022598>
Traceback (most recent call last):
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 171, in connect
self.connection = self.get_new_connection(conn_params)
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
connection = Database.connect(conn_params)
File "/home/dreamblue/.local/lib/python3.6/site-packages/psycopg2/init.py", line 127, in connect
conn = _connect(dsn, connection_factory=connection_factory, kwasync)
psycopg2.OperationalError: could not translate host name "pgserver" to address: Name or service not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, kwargs)
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 124, in inner_run
self.check_migrations()
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/core/management/base.py", line 437, in check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 20, in init
self.loader = MigrationLoader(self.connection)
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 52, in init
self.build_graph()
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 203, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations
self.ensure_schema()
File "/home/dreamblue/.local/lib/python3.6/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/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 231, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 204, in _cursor
self.ensure_connection()
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/utils.py", line 94, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 171, in connect
self.connection = self.get_new_connection(conn_params)
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
connection = Database.connect(conn_params)
File "/home/dreamblue/.local/lib/python3.6/site-packages/psycopg2/init.py", line 127, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: could not translate host name "pgserver" to address: Name or service not known
got this error while installing backend tried various version of django but still receiving the same error
Performing system checks...
System check identified no issues (0 silenced). Unhandled exception in thread started by <function check_errors..wrapper at 0x7f2f6c022598>
Traceback (most recent call last):
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 171, in connect
self.connection = self.get_new_connection(conn_params)
File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
connection = Database.connect(conn_params)
File "/home/dreamblue/.local/lib/python3.6/site-packages/psycopg2/init.py", line 127, in connect
conn = _connect(dsn, connection_factory=connection_factory, kwasync)
psycopg2.OperationalError: could not translate host name "pgserver" to address: Name or service not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/home/dreamblue/.local/lib/python3.6/site-packages/django/utils/autoreload.py", line 226, in wrapper fn(*args, kwargs) File "/home/dreamblue/.local/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 124, in inner_run self.check_migrations() File "/home/dreamblue/.local/lib/python3.6/site-packages/django/core/management/base.py", line 437, in check_migrations executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS]) File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 20, in init self.loader = MigrationLoader(self.connection) File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 52, in init self.build_graph() File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 203, in build_graph self.applied_migrations = recorder.applied_migrations() File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations self.ensure_schema() File "/home/dreamblue/.local/lib/python3.6/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/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 231, in cursor cursor = self.make_debug_cursor(self._cursor()) File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 204, in _cursor self.ensure_connection() File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection self.connect() File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/utils.py", line 94, in exit six.reraise(dj_exc_type, dj_exc_value, traceback) File "/home/dreamblue/.local/lib/python3.6/site-packages/django/utils/six.py", line 685, in reraise raise value.with_traceback(tb) File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection self.connect() File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/base/base.py", line 171, in connect self.connection = self.get_new_connection(conn_params) File "/home/dreamblue/.local/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection connection = Database.connect(conn_params) File "/home/dreamblue/.local/lib/python3.6/site-packages/psycopg2/init.py", line 127, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) django.db.utils.OperationalError: could not translate host name "pgserver" to address: Name or service not known
got this error while installing backend tried various version of django but still receiving the same error