-
Notifications
You must be signed in to change notification settings - Fork 602
Source of the image throbber.gif is wrong #311
Comments
effectively, what should be happening is
if you aren't getting that, either STATIC_URL is misconfigured, or this line: django-rest-swagger/rest_framework_swagger/templates/rest_framework_swagger/base.html Line 50 in e917f70
isn't being run. |
Yea! that line is the problem. |
so STATIC_URL is an empty string. maybe set
in your settings.py? |
it is set already, I'm afraid :/ |
hmm. are you using the default templates (base.html and index.html)? |
Does this help: myProject/Settings.pyDEBUG = True
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_countries',
'rest_framework',
'rest_framework.authtoken',
'rest_auth',
'rest_framework_swagger',
'rest_auth.registration',
'allauth',
'allauth.account',
'django_extensions',
.........
......
)
ROOT_URLCONF = 'myProject.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "static/") myProject/urls.pyfrom django.conf.urls import include, url
from django.contrib import admin
from django.template.loader import render_to_string
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
.................
.............
url(r'^docs/', include('rest_framework_swagger.urls')),
.........
.....
] |
I've bumped into this today as well using the stock templates. I am using version I made the following adjustment to the template: Its almost as if its attempting the fetch the image before that JS has fired but I don't know javascript well enough to know if that is the case for sure. |
pr #334 made the same fix. maybe try using master? |
I'll give master a shot, but when I mad that change it still didn't work properly. |
Hi, the problem was reintroduced by #420 |
the source given is
src="rest_framework_swagger/images/throbber.gif"
it should be
src="static/rest_framework_swagger/images/throbber.gif"
The text was updated successfully, but these errors were encountered: