Local host not opening

14 views
Skip to first unread message

Rhythm Batra

unread,
Jun 16, 2021, 1:01:52 PM6/16/21
to django...@googlegroups.com
I created a django website and deployed it on heroku and have used aws s3 and amazon RDS Postgres database.
Now when i try to run python manage.py runserver in my cmd it gives error - 
psycopg2.OperationalError: fe_sendauth: no password supplied
I have set os.environ.get to name, user, password and host variables in the database section in settings.py.
What should i do to resolve this? Please someone help.

Krish M

unread,
Jun 16, 2021, 1:51:12 PM6/16/21
to Django users
Rhythm,

The settings must be in uppercase - try changing it to 'PASSWORD'

Without seeing your setting.py (without your credential of course) there is no way to debug.




Rhythm Batra

unread,
Jun 16, 2021, 1:59:32 PM6/16/21
to django...@googlegroups.com
Hey Thanks for your reply.
I forgot to add the database url in the settings.py file. I added that and it worked.

But I've got a doubt, now I would be working on local host and if I update the models and execute the 
"python manage.py  migrate" command, would the changes be reflected in the database and heroku app or do I need to run the command "heroku ..... python manage.py migrate"  ?



--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a98496c5-e2a5-493d-b7a7-e8a05f51838an%40googlegroups.com.

Krish M

unread,
Jun 16, 2021, 2:33:11 PM6/16/21
to Django users
Depending on your setup, if your database is pointing to production(Heroku) then the local migrate would be make changes to the  Heroku database.
If not, you would need to follow best practice below:

Reply all
Reply to author
Forward
0 new messages