-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adds module for dynamic ALLOWED_HOSTS #34
base: develop-multisite
Are you sure you want to change the base?
Adds module for dynamic ALLOWED_HOSTS #34
Conversation
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.
Please remove extra code.
@@ -109,3 +109,44 @@ def user_is_course_creator(request): | |||
|
|||
decoded_cookie_data = decode_edly_user_info_cookie(edly_user_info_cookie) | |||
return decoded_cookie_data.get('is_course_creator', False) | |||
|
|||
|
|||
class AllowedHosts(object): |
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.
nit: remove this as we are using django-allowedsites
app
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.
done
@@ -37,6 +37,7 @@ def process_request(self, request): | |||
setattr(settings, config_key, current_value) | |||
else: | |||
setattr(settings, config_key, config_value) | |||
|
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.
nit: remove this extra line
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.
done
Description:
Adds module
django-allowedsites
for dynamicALLOWED_HOSTS
.JIRA:
https://edlyio.atlassian.net/browse/EDLY-1493