You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 5, 2020. It is now read-only.
This is more of a report than an issue, but I'm writing it here as we
do not have any public place for docs currently.
In short, what is needed for running in an IFRAME seems to be: all
URLs should be complete paths, otherwise browsers will complete (some)
relative URLs using the base URL of the page around the IFRAME) and
not the one within the IFRAME.
What was needed to get the django-simple-poll webapp working in a IFRAME:
This is more of a report than an issue, but I'm writing it here as we
do not have any public place for docs currently.
In short, what is needed for running in an IFRAME seems to be: all
URLs should be complete paths, otherwise browsers will complete (some)
relative URLs using the base URL of the page around the IFRAME) and
not the one within the IFRAME.
What was needed to get the
django-simple-poll
webapp working in a IFRAME:Update the code so that
settings.BASE_URL
is exported to AngularJS templates(commit 96bc7bbf568cb6840844640c9e937b283d0d02de)
Run Django over WSGI:
Configure Apache to serve the static content at the URL
/use/poll/static
:Edit
voting/settings.py
so thatSTATIC_URL
is the complete URL:The text was updated successfully, but these errors were encountered: