0

When I do python manage.py runserver I see this:

local

After I deployed it to AWS, I accessed the URL and this is what I see:

after deploying

Why does it look so different after deploying it? And how do I get it to look like how it is on the local server?

SilentDev
  • 20,997
  • 28
  • 111
  • 214

2 Answers2

2

following link may help you solving this error

missing-static-directory

and if this does not work then you can recollect static files with...

python /path/to/your/project/manage.py collectstatic --noinput
Community
  • 1
  • 1
Amrit
  • 2,115
  • 1
  • 21
  • 41
1

This isn't an issue with Django REST framework. You are not serving the static files. Django explains how to deploy static files here

Linovia
  • 19,812
  • 4
  • 47
  • 48