Docker Spaces are incompatible with Django
Hello,I’ve been trying to get my containerized Django application up and running in a docker space for a few weeks now, but I think there is some incompatibility.I made a simple hello world application to help illustrate the error:huggingface.coDjangoDocker - a Hugging Face Space by CazCDiscover amazing ML apps made by the communityThe index just doesn’t show at all.This app works fine when I run it locally though. It just shows hello world.Regards,Caz
2023-09-15T22:40:02Z
Hello@CazC,This error is due Django security features. Since the Space is embed onhuggingface.covia an Iframe you need to add this to yoursettings.pyX_FRAME_OPTIONS = 'ALLOW-FROM https://huggingface.co/'read more hereDjango ProjectDjangoThe web framework for perfectionists with deadlines.
2023-09-16T00:36:41Z
That’s it thank you!I would have never figured that out.