enes durmuş
enes durmuş

Reputation: 67

Heroku django admin panel looks like not normal

Im created a heroku server. I did all setups, urls etc. But when I trying access to django admin panel using https://demoherokutest48.herokuapp.com/admin/ all css contents disappear. I dont know why happening. But all sql tables prefectly transfered to heroku. Only css contents disappeared. Note: I tryed run at local in my pc. Its perfectly worked. I think problem is about at heroku.

SS

Upvotes: 0

Views: 252

Answers (1)

enes durmuş
enes durmuş

Reputation: 67

I solved problem. I just install whitenoise and added to settings.py/MIDDLEWARE


        MIDDLEWARE = [
      # 'django.middleware.security.SecurityMiddleware',
      'whitenoise.middleware.WhiteNoiseMiddleware',
      # ...
    ]

documentation

Upvotes: 1

Related Questions