django rest swagger does not display properly -


i want use django-rest-swagger document apis, follow official doc setting in django app. doesn't display below:

does-not-display-properly

i using nginx+supervisor+gunicorn serve django app. possible cause it?

the proper page should below:

s http://www.django-rest-framework.org/img/django-rest-swagger.png

i assume static files not configured. can see in firebug or chrome dev tools.

  1. read documentation how deploy static files (https://docs.djangoproject.com/en/1.8/howto/static-files/deployment/)
  2. check rest_swagger in installed_apps.
  3. check static_url, static_root settings setted properly.
  4. call collectstatic management command.
  5. check nginx configured serve static files in static_root folder.

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -