-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
92 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{% load markup %} | ||
{{pageblock.body|markdown}} | ||
{% load markdownify %} | ||
{{ pageblock.body|markdownify }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
from __future__ import unicode_literals | ||
|
||
from django.conf.urls import include, url | ||
from django.urls import include, re_path | ||
from pagetree.generic.views import EditView, InstructorView, PageView | ||
|
||
urlpatterns = [ | ||
url(r'^pagetree/', include('pagetree.urls')), | ||
re_path(r'^pagetree/', include('pagetree.urls')), | ||
|
||
# instantiate generic views using a template that doesn't | ||
# extend/depend on base.html | ||
url(r'^pages/edit/(?P<path>.*)$', | ||
EditView.as_view(template_name="pagetree/test_page.html"), | ||
{}, 'edit-page'), | ||
url(r'^pages/instructor/(?P<path>.*)$', | ||
InstructorView.as_view(template_name="pagetree/test_page.html")), | ||
url(r'^pages/(?P<path>.*)$', | ||
PageView.as_view(template_name="pagetree/test_page.html")), | ||
re_path(r'^pages/edit/(?P<path>.*)$', | ||
EditView.as_view(template_name="pagetree/test_page.html"), | ||
{}, 'edit-page'), | ||
re_path(r'^pages/instructor/(?P<path>.*)$', | ||
InstructorView.as_view(template_name="pagetree/test_page.html")), | ||
re_path(r'^pages/(?P<path>.*)$', | ||
PageView.as_view(template_name="pagetree/test_page.html")), | ||
|
||
# a second set to make sure non-default hierarchies | ||
# get handled as well | ||
url(r'^pages2/edit/(?P<path>.*)$', | ||
EditView.as_view( | ||
hierarchy_name="two", | ||
hierarchy_base="/pages2", | ||
template_name="pagetree/test_page.html"), | ||
{}, 'edit-page'), | ||
url(r'^pages2/instructor/(?P<path>.*)$', | ||
InstructorView.as_view( | ||
hierarchy_name="two", | ||
hierarchy_base="/pages2", | ||
template_name="pagetree/test_page.html")), | ||
url(r'^pages2/(?P<path>.*)$', | ||
PageView.as_view( | ||
hierarchy_name="two", | ||
hierarchy_base="/pages2", | ||
template_name="pagetree/test_page.html")), | ||
re_path(r'^pages2/edit/(?P<path>.*)$', | ||
EditView.as_view( | ||
hierarchy_name="two", | ||
hierarchy_base="/pages2", | ||
template_name="pagetree/test_page.html"), | ||
{}, 'edit-page'), | ||
re_path(r'^pages2/instructor/(?P<path>.*)$', | ||
InstructorView.as_view( | ||
hierarchy_name="two", | ||
hierarchy_base="/pages2", | ||
template_name="pagetree/test_page.html")), | ||
re_path(r'^pages2/(?P<path>.*)$', | ||
PageView.as_view( | ||
hierarchy_name="two", | ||
hierarchy_base="/pages2", | ||
template_name="pagetree/test_page.html")), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Used by readthedocs.org to build the documentation | ||
Django>=3.2.14,<4 | ||
Django>=4.2.11,<5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
django-treebeard==4.7.1 | ||
Markdown>=2.6.11,<3 | ||
coverage==7.4.3 | ||
importlib-metadata<7.1 # for flake8 | ||
importlib-metadata==7.0.2 # for flake8 | ||
typing_extensions==4.10.0 | ||
zipp==3.17.0 # for flake8 | ||
flake8==7.0.0 | ||
django-jenkins==0.110.0 | ||
pep8==1.7.1 | ||
pyflakes==3.2.0 | ||
django-markwhat==1.6.2 | ||
Faker==24.0.0 | ||
factory_boy==3.3.0 | ||
six==1.16.0 | ||
pycodestyle==2.11.1 | ||
mccabe==0.7.0 | ||
python-dateutil==2.9.0.post0 | ||
text-unidecode==1.3 | ||
|
||
Markdown==3.5.2 | ||
django-markdownify==0.9.3 | ||
bleach==6.1.0 | ||
webencodings==0.5.1 | ||
tinycss2==1.2.1 # django-markdownify |