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?
Asked
Active
Viewed 902 times
0
-
https://docs.djangoproject.com/en/1.11/ref/contrib/auth/#django.contrib.auth.models.User.set_password – hansTheFranz Nov 28 '17 at 13:07
-
Assume you do not have command line access? – cwallenpoole Nov 28 '17 at 13:23
-
as i said i am able to change it in local, but its already on cloud and those dont seem to work. And not able to figure out how to change now. – vinay kumar Nov 28 '17 at 15:30
1 Answers
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 -