-
Notifications
You must be signed in to change notification settings - Fork 6.3k
-
Thank you so much for this project.
I have been trying to get Django to work with a Docker image for code-server from linuxserver.io. Everything works great so far except for static files. Code-server serves the Django app with a suffix /proxy/8000/. I have looked at the documentation and it says that code-server strips /proxy/ from the request path. This is true only for static files but is not ideal for the django development server. Static files are reachable when the suffix is added. I would really appreciate help setting up serving static files with a prefix /proxy/8000/ or any other suggestion
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you for your time and help!
I was trying to run code-server on a local server from another local machine. I have tried all combinations of different settings including the ones you suggested but none worked for django.
I have managed to run the code-server on apache2, ubuntu and published it on my site as a subdomain. However, I am still working on forwarding/adding reverse proxy for the development server traffic to the subdomain 8000.example.com. I'll update you on this later on.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Anyone found a way to get Django working?
Beta Was this translation helpful? Give feedback.