Skip to content
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

Split DTL context creation into its own function. #4104

Merged
merged 1 commit into from Feb 10, 2015

Conversation

aaugustin
Copy link
Member

This reduces the length of rope RequestContext gives users to hang
themselves with.

Thanks Alex Hill for the report.


def make_context(context, request=None):
"""
Create a suitable Context from a plain dict and optionally a HttpRequest.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an Http

This reduces the length of rope RequestContext gives users to hang
themselves with.

Thanks Alex Hill for the report and Tim Graham for the review.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants