Search code examples
djangoherokudjango-cms

django cms admin looks weird on heroku and unable to function


I'm having a problem with django cms after pushing to heroku.

Django cms admin page is showing up without styling (plain html). Kindly refer to picture.

It should look like this.

Django cms is also not functioning- such as unable to add pages.

Django cms looks and functions well on localhost. For your advice please, thank you.


Solution

  • You staticfiles not coming on admin page

    So you need to run command

    python manage.py collectstatic --noinput

    on Heroku server for collectstatic files and make you have correct STATIC_ROOT and STATIC_URL in settings of project