0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

63 Commits

Author SHA1 Message Date
Matt Westcott
5bcfcdd315 Formalise support for Python 3.9 2020-11-02 17:29:58 +00:00
Coen van der Kamp
a1a2c35c1c Template render richtext without wrapper, add wagtail.contrib.legacy.richtext
* Add wagtail.contrib.legacy.richtext with tests & docs
* Make RichText.__html__ behave the same as template filter
* Resolves #1214
2020-05-21 07:53:31 +10:00
Martey Dodoo
229103ff2e Update links in documentation. (#5689)
Use HTTPS links instead of non-secure HTTP links wherever possible in
documentation.
2019-11-08 09:15:01 +00:00
Matt Westcott
69e96a9227 Formalise Python 3.8 support 2019-10-22 16:23:44 +01:00
Matt Westcott
3024e02481 Revert "Formalise Python 3.8 support"
This reverts commit ddbbaea288.
2019-10-16 14:27:59 +01:00
Matt Westcott
ddbbaea288 Formalise Python 3.8 support 2019-10-15 20:08:04 +01:00
Matt Westcott
a304f0f9f8 Remove support for Python 3.4 2019-04-10 17:39:53 +01:00
nmorduch
5d57d591fe Change suggested location of venv folder in installation tutorial
- Group venv creation and activation by shell, because Windows uses backslashes
- Note that the env folder should be excluded from version control
- Account for the need to specify the directory for `wagtail start` when the directory already exists
- Move the `cd mysite` line to the project dependency instruction, because that's the first time it's really needs

-
2019-04-10 10:22:52 -04:00
nmorduch
4c849e4562 Small text changes in documentation
Make explanations of project template more accurate and consistent
2019-04-10 10:22:40 -04:00
nmorduch
696c7d5b45 Break lines in the installation instructions semantically
In the interest of better diffs:
Instead of breaking by line length, break by sentence. Break lists by item in the list and put some long urls on their own lines.
2019-04-10 10:20:35 -04:00
nmorduch
aab0393c3f Update and clarify installation instructions
- Always clarify that the instructions assume a virtual environment
- Add to the tutorial instructions for using venv
- Clarify that Python 3 is required
- Clarify that the tutorial is an alternative to "Getting started" that
assumes less background knowledge
- Remove pip installation instructions because Django only supports
versions of Python that include it
- Make headings in the tutorial instead of an ordered list
  This makes the page easier to scan visually and allows linking to
specific headings.
- Add the warning about Pillow dependencies to the tutorial
- In "Getting started" move Pillow's dependencies to the general
dependencies list
- Make language more welcoming (saying "we just do x" alienates people
who have less familiarity with x")
- Other small text changes
2019-04-10 10:20:24 -04:00
Sergey Fedoseev
47465197a9 Use intersphinx for Django references when possible. (#4896) 2018-11-14 11:48:32 +00:00
Matt Westcott
d2b02dff00 Update welcome page screenshot (ref #4892) 2018-11-13 11:39:12 +00:00
Victor Miti
c38b172793 updated Django Docs Links to point to *docs.djangoproject.com/en/stable/* 2018-05-18 14:43:42 +01:00
Karl Hobley
bf3e994505 Fix capitalisation of QuerySet 2018-04-05 12:13:05 +01:00
Matt Westcott
4fc05fc79e
Tutorial should refer to 'Pages', not 'Explorer' (#4293) 2018-02-16 10:31:12 +00:00
Mary Kate Fain
6c7d0abad7 Add on_delete to BlogPageTag model 2018-02-08 11:52:45 +00:00
Mads Jensen
b30c722728 Used Python 3 super() syntax also in documentation. (#4246)
This disregards the release notes for earlier releases and only deals
with current documentation.
2018-02-07 10:11:27 +00:00
Kushal
4bf6b09873 use https://docs.djangoproject.com/en/1.11... (#4204) 2018-01-29 18:51:59 +00:00
LB
70eb2b6ae3 add on_delete argument to ParentalKey & ForeignKey 2017-12-15 10:33:09 +00:00
Mads Jensen
8b420b9abc Removed __future__ imports
Also delete add_imports directive from isort configuration
2017-11-27 02:18:30 +00:00
Karl Hobley
1ecf48fb3f Rename wagtail.wagtailsnippets to wagtail.snippets
Conflicts:
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	docs/topics/pages.rst
	docs/topics/snippets.rst
	gulpfile.js/config.js
	wagtail/contrib/wagtailstyleguide/views.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/snippets/tests.py
	wagtail/snippets/views/chooser.py
	wagtail/snippets/views/snippets.py
	wagtail/snippets/wagtail_hooks.py
	wagtail/tests/settings.py
	wagtail/tests/snippets/models.py
	wagtail/tests/testapp/models.py
2017-11-26 22:43:47 +00:00
Karl Hobley
19730bea53 Renamed wagtail.wagtailsearch to wagtail.search
Conflicts:
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	docs/getting_started/tutorial.rst
	docs/topics/pages.rst
	docs/topics/search/searching.rst
	tox.ini
	wagtail/admin/tests/test_pages_views.py
	wagtail/admin/views/mixins.py
	wagtail/api/v2/filters.py
	wagtail/contrib/wagtailsearchpromotions/forms.py
	wagtail/contrib/wagtailsearchpromotions/views.py
	wagtail/documents/models.py
	wagtail/documents/views/chooser.py
	wagtail/documents/views/documents.py
	wagtail/documents/views/multiple.py
	wagtail/images/migrations/0001_initial.py
	wagtail/images/models.py
	wagtail/images/views/chooser.py
	wagtail/images/views/images.py
	wagtail/images/views/multiple.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/project_template/search/views.py
	wagtail/search/tests/test_frontend.py
	wagtail/search/tests/test_index_functions.py
	wagtail/search/views/frontend.py
	wagtail/search/views/queries.py
	wagtail/search/wagtail_hooks.py
	wagtail/tests/demosite/models.py
	wagtail/tests/modeladmintest/models.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/snippets/models.py
	wagtail/tests/testapp/migrations/0001_initial.py
	wagtail/tests/testapp/migrations/0020_customdocument.py
	wagtail/tests/testapp/models.py
	wagtail/tests/urls.py
	wagtail/wagtailsnippets/views/chooser.py
	wagtail/wagtailsnippets/views/snippets.py
2017-11-26 22:43:47 +00:00
Karl Hobley
bf0f3e02ba Rename wagtail.wagtailimages to wagtail.images
Conflicts:
	docs/advanced_topics/api/v2/configuration.rst
	docs/advanced_topics/jinja2.rst
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	docs/getting_started/tutorial.rst
	docs/topics/pages.rst
	docs/topics/streamfield.rst
	gulpfile.js/config.js
	tox.ini
	wagtail/admin/tests/test_compare.py
	wagtail/admin/tests/test_edit_handlers.py
	wagtail/api/v2/signal_handlers.py
	wagtail/contrib/wagtailstyleguide/views.py
	wagtail/core/tests/test_streamfield.py
	wagtail/documents/tests/test_models.py
	wagtail/images/models.py
	wagtail/images/permissions.py
	wagtail/images/tests/test_admin_views.py
	wagtail/images/tests/test_image_operations.py
	wagtail/images/tests/test_models.py
	wagtail/images/tests/test_signal_handlers.py
	wagtail/images/views/chooser.py
	wagtail/images/views/images.py
	wagtail/images/views/multiple.py
	wagtail/images/wagtail_hooks.py
	wagtail/images/widgets.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/tests/demosite/models.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/testapp/migrations/0001_initial.py
	wagtail/tests/testapp/migrations/0008_inlinestreampage_inlinestreampagesection.py
	wagtail/tests/testapp/migrations/0009_defaultstreampage.py
	wagtail/tests/urls.py
2017-11-26 22:43:47 +00:00
Karl Hobley
062d05189b Rename wagtail.wagtailadmin to wagtail.admin
Conflicts:
	docs/advanced_topics/customisation/admin_templates.rst
	docs/advanced_topics/customisation/page_editing_interface.rst
	docs/advanced_topics/i18n/duplicate_tree.rst
	docs/advanced_topics/jinja2.rst
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	docs/getting_started/tutorial.rst
	docs/reference/hooks.rst
	docs/reference/pages/panels.rst
	docs/topics/pages.rst
	docs/topics/streamfield.rst
	wagtail/admin/blocks.py
	wagtail/admin/checks.py
	wagtail/admin/edit_handlers.py
	wagtail/admin/forms.py
	wagtail/admin/rich_text.py
	wagtail/admin/search.py
	wagtail/admin/site_summary.py
	wagtail/admin/templatetags/wagtailadmin_tags.py
	wagtail/admin/tests/test_admin_search.py
	wagtail/admin/tests/test_buttons_hooks.py
	wagtail/admin/tests/test_compare.py
	wagtail/admin/tests/test_edit_handlers.py
	wagtail/admin/tests/test_page_chooser.py
	wagtail/admin/tests/test_pages_views.py
	wagtail/admin/tests/test_rich_text.py
	wagtail/admin/tests/test_widgets.py
	wagtail/admin/tests/tests.py
	wagtail/admin/urls/__init__.py
	wagtail/admin/views/account.py
	wagtail/admin/views/chooser.py
	wagtail/admin/views/collection_privacy.py
	wagtail/admin/views/collections.py
	wagtail/admin/views/home.py
	wagtail/admin/views/page_privacy.py
	wagtail/admin/viewsets/model.py
	wagtail/admin/wagtail_hooks.py
	wagtail/admin/widgets.py
	wagtail/contrib/settings/registry.py
	wagtail/contrib/wagtailsearchpromotions/wagtail_hooks.py
	wagtail/contrib/wagtailstyleguide/wagtail_hooks.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/project_template/project_name/urls.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/snippets/models.py
	wagtail/tests/testapp/models.py
	wagtail/tests/testapp/wagtail_hooks.py
	wagtail/tests/urls.py
	wagtail/wagtaildocs/models.py
	wagtail/wagtaildocs/views/chooser.py
	wagtail/wagtaildocs/wagtail_hooks.py
	wagtail/wagtailembeds/wagtail_hooks.py
	wagtail/wagtailforms/models.py
	wagtail/wagtailforms/tests/test_views.py
	wagtail/wagtailforms/views.py
	wagtail/wagtailforms/wagtail_hooks.py
	wagtail/wagtailimages/models.py
	wagtail/wagtailimages/views/chooser.py
	wagtail/wagtailimages/wagtail_hooks.py
	wagtail/wagtailredirects/forms.py
	wagtail/wagtailredirects/wagtail_hooks.py
	wagtail/wagtailsites/forms.py
	wagtail/wagtailsites/views.py
	wagtail/wagtailsites/wagtail_hooks.py
	wagtail/wagtailsnippets/tests.py
	wagtail/wagtailsnippets/wagtail_hooks.py
	wagtail/wagtailusers/forms.py
	wagtail/wagtailusers/views/groups.py
	wagtail/wagtailusers/wagtail_hooks.py
2017-11-26 22:43:47 +00:00
Karl Hobley
4300e19da2 Rename wagtail.wagtailcore to wagtail.core 2017-11-26 22:43:47 +00:00
Matt Westcott
0629b6a866 Say "as a child of Homepage" rather than "under Homepage", to avoid ambiguity
Thanks to @rifuso for the suggestion!
2017-10-10 11:48:03 +01:00
Matt Westcott
ef7ef8de13 Blog posts are ordered most recently published first, not most recently modified
Fixes #3909 - thanks to @gkahn for the report.
2017-10-06 14:06:57 +01:00
Matt Westcott
6bc6480cd2 Fix deprecated import of modelcluster.tags in tutorial 2017-06-19 12:23:30 +01:00
Matt Westcott
b3e723eea3 Release note for #3305 2017-02-03 21:24:57 +00:00
Matt Westcott
37c7b696ef Add 'Categories' section to tutorial
This demonstrates the use of snippets and many-to-many relations.
2017-02-03 21:24:54 +00:00
Matt Westcott
e18c1d99c8 Update tutorial wording to clarify that templates are not created automatically (#3290)
Based on feedback at http://stackoverflow.com/questions/41751034/template-file-not-created-after-adding-page-class-to-models-py
2017-01-25 19:57:44 +00:00
Matt Westcott
cbb31c80e1 Remove redundant filter() in tutorial example. Fixes #3280
Thanks to @gogobook for the report!
2017-01-19 17:39:28 +00:00
Mihail Russu
4f5ffe98bc Fix the inconsistent use of blogpages
`page.get_children` was changed earlier to `blogpages` in order to show the blog posts ordered and hide the unpublished ones
2016-12-13 10:07:11 +00:00
Matt Westcott
f54498b3b0 Clarify '# ...' comments when omitting code in tutorial snippets
See https://groups.google.com/d/msg/wagtail/NFFqKY98jiY/XZjmk3-mBAAJ
2016-12-01 13:43:19 +00:00
Matt Westcott
3fd5bb1820 Add image gallery / InlinePanel section to tutorial 2016-11-30 16:38:20 +00:00
Tim Heap
254e675634 Use .. code-block:: console for all shell commands
This is the correct lexer for interactive console sessions, according to
<http://pygments.org/docs/lexers/>. This does require command lines to
be prefixed with `$`, otherwise they are interpreted as the output of a
command. It highlights the command nicely, including environment
variables, strings, and comments.
2016-11-28 13:41:35 +00:00
Matt Westcott
011f2099eb Remove categories section, add better example of MultiFieldPanel, minor copyediting 2016-11-09 14:35:58 +00:00
Scot Hacker
756d5ec0dd Move slugurl example/explanation
- Also misc cleanup
2016-11-09 10:42:47 +00:00
Scot Hacker
3634c2b289 Add a Categories system to Getting Started tutorial 2016-11-09 10:42:46 +00:00
Scot Hacker
8c5b62ccfc Intro tutorial additions and improvements
- Addresses all issues raised in PR review
- Adds more info to "Navigating parents/children"
- Adds a new dedicated section on overriding context
2016-11-09 10:42:45 +00:00
Scot Hacker
32f97ff43a Update Getting Started tutorial to include posts automatically, plus tagging
- Resolves #3096
2016-11-09 10:42:44 +00:00
Tom Dyson
703c9984c6 Make /admin a link in the Getting Started tutorial 2016-07-20 09:41:03 +01:00
Matt Westcott
b39ff4a134 add note about Wagtail <=1.4 syntax for search_fields 2016-05-02 18:42:21 +01:00
Robert Rollins
11793f88c5 Changed indentation on all code samples to 4 spaces.
Most of the samples were already 4-space indented, but a few were using 2-space,
which is both inconsistent and, when it happened with Python code samples,
incompatible with PEP8.
2016-04-28 10:57:22 +01:00
Tim Heap
6bd168580e Change Indexed.search_fields to be a listish thing
Indexed.search_fields used to be a tuple. This is incorrect, and it
should have been a list.  Changing it to be a list now would be a
backwards incompatible change, as people do

    search_fields = Page.search_fields + (
        SearchField('body')
    )

Adding a tuple to the end of a list causes an error, so this would
cause all old code that used tuples to throw an error. This is not
great.

A new ThisShouldBeAList class, which subclasses list, has been added.
It additionally allows tuples to be added to it, as in the above
behaviour, but will raise a deprecation warning if someone does this.
Old code that uses tuples will continue to work, but raise a deprecation
warning.

See #2310
2016-03-24 21:05:09 +00:00
Loïc Teixeira
33aad3957f Fix internal links with anchors
Generating links with `link text <./path/to/doc#anchor>`__ does not work for html.
It produces a link to `./path/to/doc#anchor` instead of `./path/to/doc.html#anchor`.

It would be tempting to add `.html` before `#` but would likely cause some more issues
when generating the documentation as pdf or epub.

References on the other hand will work regardless of the output format.
2016-03-06 21:05:05 +00:00
Karl Hobley
95ff74feeb Moved advanced image topics into advanced topics 2016-01-27 11:27:16 +00:00
Matt Westcott
19f370c20a Add pointers to the new integrating-with-Django docs 2015-11-10 21:45:21 +00:00
John Heasly
d87d737f52 Need to flip order of class creation
Need to flip order of creating `BlogIndexRelatedLink` and `BlogIndexPage`, otherwise `BlogIndexRelatedLink` references `BlogIndexPage` before it's been created and you get:
```bash
ERRORS:
blog.BlogIndexRelatedLink.page: (fields.E300) Field defines a relation with model 'BlogIndexPage', which is either not installed, or is abstract.
```
2015-10-14 17:29:19 -07:00