-
Notifications
You must be signed in to change notification settings - Fork 20
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
LOCKDOWN_URL_EXCEPTIONS with subdomain? #5
Comments
I'm not familiar with |
Great, thank you! |
I'm pretty new to Python, so I'm not 100% how to write the tests otherwise I'd submit a pull request, but this might work inside of process_request in middleware.py
The add this to settings.py
Then you could just use the following inside of the apps settings.
|
To rephrase the difficulty with my own words: From my point of view it's difficult to extend the current behavior of I'm also not sure if it's beneficial to support more capabilities in terms of routing requests in So for now I would like to not include the functionality you proposed, but you should consider one of the following options, which might or might not be an option for you depending on your use case:
I hope that information helps you to decide how to proceed. |
Hi there!
I'd like to lockdown on a staging site, however the API needs to be open at api.domain.com. I currently use django-hosts (https://github.com/jezdez/django-hosts). Is it possible to match the 'api' subdomain inside of LOCKDOWN_URL_EXCEPTIONS?
Thanks
Steve
The text was updated successfully, but these errors were encountered: