0

I have deployed a simple blog application( using tutorials and python buildpack) using Django and deployed it on Pivotal Cloud Foundry. But I am unable to log in using the same admin credentials after it is in the cloud. How can I change the admin superuser credentials?

1 Answers1

0

This might help you This link in the docs may help you (changepassword)

Or, perhaps you could simply create a new superuser with ./manage.py createsuperuser, and then change the password via the /admin/ panels.

rob
  • 2,119
  • 1
  • 22
  • 41
  • But how do i link it with the CF commands for pivotal? I am able to do it on local but it's already deployed as an instance on the cloud. – vinay kumar Nov 28 '17 at 15:13
  • Run `cf ssh -t -c "/tmp/lifecycle/launcher /home/vcap/app bash ‘’”`. That will put you in the app container and you should be able to run Python scripts or other commands just like you'd do locally. – Daniel Mikusa Nov 29 '17 at 02:12
  • @DanielMikusa That's exactly what i needed. Thank you so much! – vinay kumar Nov 29 '17 at 13:34