-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dcp can't seem to proxy Django applications #4158
Comments
@karolz-ms can you take a look? |
Will do. Thanks for the report and a repro, much appreciated @wmeints |
OK so there is a couple of problems with this scenario: one is an Aspire problem, and one is the application problem. The Aspire problem is that the The second problem is that the application is not honoring the from django.core.management.commands.runserver import Command as Runserver
import os
class Command(Runserver):
def handle(self, *args, **options):
options['addrport'] = os.getenv('DJANGO_HTTP_PORT', '8000')
return super().handle(*args, **options) After changing the AppHost project to use the custom @wmeints let me know please if this is enough information to get this issue closed as fixed, with the caveat that the fix may need some time to be released publicly. |
Well, that explains a lot :-) Thanks for looking into this! I can work around the limitation for now. I'm happy to close this issue. |
I am trying to add support for Django and I'm running into this weird problem where Django doesn't seem to like cooperate with Dcp. But I'm unsure if the problem lies with Dcp or with Django.
The problem I see is that the app is running succesfully, but when I open the link in the dashboard I never receive a response from the Django Server. It looks like the server never receives a request from Dcp. I tried accessing the Django app without the proxy and that works okay.
I made a short video to demonstrate what happens:
https://youtu.be/Ih6gjU_uewI?si=VeSfc6FmcL5u5Z9y
For a full repro, please check out the sample on my github repo: https://github.com/wmeints/aspire-django-demo
The text was updated successfully, but these errors were encountered: