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
get rid of SITE_ID (for multiple site installation) #125
Conversation
Thanks @gassan for taking the time to do this. I would prefer not to wrap Did you consider The CI issues are most probably because you go beyond column 79. I would appreciate if you could keep that constraint. |
Good idea - I will use |
def _reverse: avoid http absolute urs on https pages
I need the shortcut utils.get_current_site_id - this function is called from 11 places. |
use pip<19 for install from github. |
@@ -46,14 +47,14 @@ def commentbox_props(obj, user, request=None): | |||
""" | |||
|
|||
def _reverse(*args, **kwargs): | |||
"""Inject the request, if provided, to generate absolute URLs""" | |||
return reverse(*args, request=request, **kwargs) | |||
"""do not inject request to avoid http:// urls on https:// only sites""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an observation here, if no request
is passed to reverse
here, there's no point on keeping the _reverse
function. You can replace all the calls to _reverse
with the original reverse
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, yes you are right here
Thanks @gassan, |
subj