

This is my Django Config File Container_commands:Ĭommand: "source /opt/python/run/venv/bin/activate & python manage.py makemigrations"Ĭommand: "source /opt/python/run/venv/bin/activate & python manage.py migrate -noinput"Ĭommand: "source /opt/python/run/venv/bin/activate & python manage.py createsu"Ĭommand: "source /opt/python/run/venv/bin/activate & python manage.py collectstatic -noinput"Īws:elasticbeanstalk:application:environment:ĭJANGO_SETTINGS_MODULE: my_ 'ENGINE': 'django.db.backends.postgresql', This is the databases section of my project. Raise dj_exc_value.with_traceback(traceback) from exc_valueĭjango.db.utils.OperationalError: could not connect to server: Connection timed out (0x0000274C/10060) Return self.Migration._meta.db_table in _names(())įile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\db\backends\base\base.py", line 256, in cursorįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\db\backends\base\base.py", line 233, in _cursorįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\db\utils.py", line 89, in _exit_ Loader.check_consistent_history(connection)įile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\db\migrations\loader.py", line 283, in check_consistent_historyįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\db\migrations\recorder.py", line 73, in applied_migrationsįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\db\migrations\recorder.py", line 56, in has_table Self.fetch_command(subcommand).run_from_argv(self.argv)įile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\core\management\base.py", line 323, in run_from_argvįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\core\management\base.py", line 364, in executeįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\core\management\base.py", line 83, in wrappedįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\core\management\commands\makemigrations.py", line 101, in handle

The above exception was the direct cause of the following exception:įile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\core\management\_init_.py", line 381, in execute_from_command_lineįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\core\management\_init_.py", line 375, in execute Is the server running on host "my_." (13.239.177.165) and accepting Psycopg2.OperationalError: could not connect to server: Connection timed out (0x0000274C/10060) nnection = self.get_new_connection(conn_params)įile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\db\backends\postgresql\base.py", line 178, in get_new_connectionĬonnection = nnect(**conn_params)įile "C:\Users\dania\Development\my_website\venv\lib\site-packages\psycopg2\_init_.py", line 127, in connectĬonn = _connect(dsn, connection_factory=connection_factory, **kwasync) This is the Error Log (venv) C:\Users\dania\Development\my_website>python manage.py makemigrationsįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\db\backends\base\base.py", line 217, in ensure_connectionįile "C:\Users\dania\Development\my_website\venv\lib\site-packages\django\db\backends\base\base.py", line 195, in connect

I have been trying for a while with no luck. I have been able to successfully set up a local Postgres database. When trying to makemigrations in django I am getting an error. I am trying to deploy a website using elastic beanstalk and connect it up to a Postgres Database.
