Question

can't access Django admin site

Connected Tutorial
This question is a follow-up to this tutorial:

Hi, I followed your tutorial and everything looks good but admin site, which I cannot access, can you help me to solve this issue?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Got this! thanks to do support help we identified that the app routing is wrong in the tutorial when its setup on app platform to the domain/appname the you cannot access /admin, I’ve have changed temporary to just domain/ and it works. br, Kris

I gave up! following this tutorial you cant access django admin page after you deploy app to the app platform, have tried several times with my app and also building from scratch. Somethings wrong in this steps, few of them seems to be outdated to the current platform functions.

Unfortunately there is no other dijango tutorial for do app platform, need to look for another platform.

br, Kris

Yes I did, this app works locally, and there is no other interface but admin site. I will try to follow tutorial once again and will see.

Br, Kris

unfortunately doesnt work still the same effect :( when accessing /app/admin redirect me to /admin with blank page.

but thanks for tips.

br, Kris

Hi Bobby!

thx for the rapid response!

the problem it self is that in general cant access admin path, I have URL generated by Web Service component eg. https://myapp.ondigitalocean.app/djangoapp and it works fine but when I type https://myapp.ondigitalocean.app/djangoapp/admin it takes me to https://myapp.ondigitalocean.app/admin/ and its empty: <html><head></head><body data-new-gr-c-s-loaded=“9.29.0”></body></html>

I suppose that is the matter of the routing URLs, but Im not really experienced in this.

br, Kris!

Hi there,

Would you mind sharing the exact error that you are getting?

If you are getting a white screen only, I could suggest checking your browser’s web console as well.

Feel free to share the errors here. Regards, Bobby