Skip to content

Fixed get_template_sources #5

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

Merged
merged 4 commits into from
Jul 1, 2020

Conversation

shinning91
Copy link

Fixed get_template_sources to be compatible with Django 2.2.13
Refer: https://github.com/alexmorozov/templated-docs/pull/27/files

@shinning91
Copy link
Author

@Jafnee travis fixed

setup.py Outdated
@@ -13,7 +13,7 @@

requirements = [
'pylokit==0.8.1',
'django>=1.8,<1.12',
'django>=1.8,<=2.2.13',
Copy link

Choose a reason for hiding this comment

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

the change you made above to MIDDLEWARE was only introduced with Django 1.10.

For simplicity let's drop 'support' for Django 1.

Also 2.2.13 is too strict. We'd need to update this library after every DJ update. I recommend just set it to <3.0.0

Copy link

@hueyyeng hueyyeng left a comment

Choose a reason for hiding this comment

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

LGTM with the changes to requirements. Also can confirm with the removal of None argument, templated_docs can generate the PDF without issue.

@shinning91 shinning91 merged commit bf7f3cf into master Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants