-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adding '/admin/' to default URL #23
Conversation
When we are deploy the app to staging, it is being served from the /admin URL therefore we need to add `url_base_pathname`. Solution link : https://community.plotly.com/t/mod-wsgi-and-dash-virtual-host-configuration/28687 Testing done: 1. Cognito works fine 2. `http://localhost:8050/admin/` is loading 3. Other URLs such as `http://localhost:8050/admin/tokens` are also loading fine
@swastis10 that is not actually the solution suggested in the link The solution (at https://community.plotly.com/t/mod-wsgi-and-dash-virtual-host-configuration/28687/2) is to specify it once while setting up the dash app Is there a reason why you did not use that approach? Also, you have indicated that the Finally, can you please ensure that we don't introduce extraneous whitespace changes. Look at the diffs for this PR - it is almost impossible to see what the real changes are since almost every line has supposedly changed. This will also mess up the blame and make it harder to work with the code later. |
@shankari, I have used
Which loads the app at If I do not provide any path prefix env variable, the app will load like it used to before i.e using the default prefix of |
@swastis10 is there a reason that you are using
And you have tested this? Or you assume it based on the code? |
@shankari url_base_pathname seemed like a more appropriate choice as
Also,
I have tested this |
@swastis10 thank you for the clarification. Just to set expectations, it would have been helpful to state that upfront while creating the PR. Again, think about an intern looking at this code 10 years later - you have linked to a resource that says to use And this is still not fully clear. Finally, while I will merge this now given the time sensitivity, I still don't think that this is the correct solution. For the long term, you should indicate exactly why Please file an issue for the cleanup task. |
Adding the link to url_base_pathname |
I am merging this for now given the time sensitivity, but I don't think that it is the long-term solution. |
@swastis10 merged |
When we are deploy the app to staging, it is being served from the /admin URL therefore we need to add
url_base_pathname
. Solution link : https://community.plotly.com/t/mod-wsgi-and-dash-virtual-host-configuration/28687Testing done:
http://localhost:8050/admin/
is loadinghttp://localhost:8050/admin/tokens
are also loading fine