Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database connection #3

Open
kalissus opened this issue Sep 9, 2020 · 11 comments
Open

Database connection #3

kalissus opened this issue Sep 9, 2020 · 11 comments

Comments

@kalissus
Copy link

kalissus commented Sep 9, 2020

is there any need to be changed to get connected to the database or it gets connected automatically?

@anuj-glitch
Copy link
Owner

anuj-glitch commented Sep 13, 2020

Yes, first you have to manually create a DB instance on PostgreSQL named "predico",
use PgAdmin for that.

@tirthjivani
Copy link

I have added this to the readme. I also faced the same issue.

@T2061
Copy link

T2061 commented Jan 1, 2021

I tried to run your code but it didn't predicted any

@tirthjivani
Copy link

@T2061 it runs perfectly fine 👍🏻

@sevenhills87
Copy link

Help Me! What is the Admin User Name And Password

@anuj-glitch
Copy link
Owner

You can create a new admin username using Django's - create superuser commands

@sevenhills87
Copy link

sevenhills87 commented Feb 1, 2021 via email

@ridham-sood
Copy link

can u plzz help me out
@anuj-glitch

@sauharda4
Copy link

how to create a new environment and run the commands?

@Manojkumar0308
Copy link

System check identified 5 issues (0 silenced).
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/db/backends/base/base.py", line 230, in ensure_connection
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/utils/asyncio.py", line 25, in inner
return func(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/db/backends/base/base.py", line 211, in connect
self.connection = self.get_new_connection(conn_params)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/utils/asyncio.py", line 25, in inner
return func(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/db/backends/postgresql/base.py", line 199, in get_new_connection
connection = Database.connect(**conn_params)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/psycopg2/init.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (::1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?

@sarathkd
Copy link

sir please explain the code of disease prediction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants