Wykres commitów

669 Commity (main)

Autor SHA1 Wiadomość Data
Matt Westcott 2947c584b0 Recommend the use of ManifestStaticFilesStorage. Fixes #3700 2018-09-04 12:56:11 +01:00
Meteor0id cb8fe063bb depriciate url() for alias re_path() 2018-08-18 11:33:12 +02:00
Meteor0id cb75effd11 url() is depriciated. Alias re_path()
Added important note about using url() on older versions of django, but switched the examples to re_path as to comply with Django docs for 2.0 and later.
2018-08-18 11:32:39 +02:00
Martey Dodoo 1247565d3d Add warning about unregistering image formats.
Add warning to documentation to warn that unregistering image formats
that are being used will create an error when viewing or editing pages.

See https://groups.google.com/forum/#!topic/wagtail/X8xTUs-2npA and
https://github.com/wagtail/wagtail/issues/1471#issuecomment-118436706.
2018-08-16 10:52:51 +01:00
Matt Westcott 939e031760 Fix passwordless user creation tests for Django 2.1 and clarify WAGTAILUSERS_PASSWORD_REQUIRED docs
The behaviour of `has_usable_password` has changed in Django 2.1, such that `None` is no longer considered a 'non-usable' password: https://docs.djangoproject.com/en/2.1/ref/contrib/auth/#django.contrib.auth.models.User.has_usable_password

As a consequence of the fix applied in Django https://code.djangoproject.com/ticket/28718 , Wagtail users created without a password will now be able to complete the password reset process to gain access to Wagtail. Sites that do not want this behaviour (e.g. because those users should be using an LDAP login instead) should disable password changes via WAGTAIL_PASSWORD_MANAGEMENT_ENABLED and WAGTAIL_PASSWORD_RESET_ENABLED.
2018-08-09 00:34:38 +01:00
Matt Westcott 48b5740d03 Merge branch 'docs-divio-cloud' of https://github.com/evildmp/wagtail into evildmp-docs-divio-cloud 2018-06-18 15:45:38 +01:00
ed@sharpertool.com 4539ced8cc Added documentation for new JS/CSS media files association with Draftail feature definitions (#4627)
Add more documentation for #4568
2018-06-17 00:13:38 +03:00
Daniele Procida b1db6c5882 Added Divio Cloud notes to documentation 2018-06-16 15:51:06 -04:00
Matt Westcott c3dc86c0e5 Add full documentation for WAGTAILADMIN_RICH_TEXT_EDITORS. Fixes #4555 2018-06-10 12:45:48 +10:00
Matt Westcott b629563fb3 Remove reference to WAGTAILIMAGES_BACKENDS 2018-06-10 12:45:48 +10:00
LB 740bbb6c39 fix typos 2018-06-10 12:45:48 +10:00
LB c886d1ab4f add missing settings 2018-06-10 12:45:48 +10:00
LB 8d2ee74be0 add reference anchors 2018-06-10 12:45:48 +10:00
Matt Westcott 6f92f9a23a Add default_features step to strikethrough example 2018-06-07 11:48:55 +01:00
Matt Westcott 607f2ec067 Allow specifying js/css imports against Draftail features 2018-05-31 17:13:33 +01:00
Alex Gleason 1c7e90c3ee Change wagtailimages.Image on_delete CASCADE to SET_NULL in docs 2018-05-18 14:51:50 +01:00
Victor Miti c38b172793 updated Django Docs Links to point to *docs.djangoproject.com/en/stable/* 2018-05-18 14:43:42 +01:00
Matt Westcott 2c8d7371b4 Remove frontend search view 2018-05-18 11:43:28 +01:00
Matt Westcott 3fc9ed5119 Remove old versionadded/versionchanged notes 2018-05-18 11:43:28 +01:00
Matt Westcott fc46f12939 AWS_S3_FILE_OVERWRITE must be False, not True 2018-05-15 19:42:03 +01:00
Matt Westcott 5ce14841d8 Remove ancient versionchanged notes 2018-05-15 14:54:41 +01:00
Kees Hink 0b3c20556d Docs: How to create test fixtures for custom Page models 2018-05-15 14:50:24 +01:00
Matt Westcott 937254f321 Add documentation for deploying with cloud storage 2018-05-09 10:41:09 +01:00
Karl Hobley 0dec4c8f89 Update supported databases in docs 2018-05-08 11:58:31 +01:00
Matt Westcott fa27773d16 Release note for #4462 2018-04-23 16:26:32 +01:00
Matt Westcott bcbfe226ee Allow disabling gravatar with WAGTAIL_GRAVATAR_PROVIDER_URL=None. Fixes #1286 2018-04-23 15:53:13 +01:00
Pierre Geier 96118cdb9a Makes it possible to set a custom Gravatar source like robohash or your own. 2018-04-23 15:53:13 +01:00
David e43ea79747 Add a per-user timezone setting 2018-04-20 12:06:52 +01:00
Thibaud Colas c309753378
Expose reusable client-side code to build Draftail extensions (#4467)
* Expose Draftail package as global variable for reuse
* Expose Wagtail React components for reuse
* Expose Draftail-related React components for reuse
2018-04-18 00:27:07 +03:00
Karl Hobley 17f7f70170 Added "find" API view and ability to find pages by HTML path
This implements a new "find" view for all endpoints which can be used
for finding an individual object based on the URL parameters passed to
it.

If an object is found, the view will return a ``302`` redirect to detail
page of that object. If not, the view will return a ``404`` response.

For the pages endpoint, I've added a ``html_path`` parameter to this
view, this allows finding a page by its path on the site.

For example a GET request to ``/api/v2/pages/find/?html_path=/`` will
always generate a 302 response to the detail view of the homepage. This
uses Wagtail's internal routing mechanism so routable pages are
supported as well.

Fixes #4154
2018-04-13 12:08:19 +01:00
Karl Hobley f608c67eb1 Fix capitalisation of names 2018-04-05 12:13:05 +01:00
Karl Hobley a9b4b09152 Fix spelling mistakes in documentation 2018-04-05 12:13:05 +01:00
DanAtShenTech 76975525f7 Typo and clarification (#4319) 2018-02-27 22:08:57 +02:00
Matt Westcott c205c8fac6 Add rich_text form data helper 2018-02-15 11:54:34 +00:00
Matt Westcott 067c26f54d Add form data helpers 2018-02-15 11:54:32 +00:00
Matt Westcott 1799853b55 Fix 'email notifications' link 2018-02-14 14:06:21 +00:00
Thibaud Colas 6c714b1537 Document plain JS & CSS extension points for Draftail 2018-02-12 21:54:07 +00:00
Dário 55580d96e8 Embed Docs: fix broken link (#4270) 2018-02-12 10:15:22 -05:00
Thibaud Colas d86f48842d Add note about block Draftail entities in docs 2018-02-09 15:24:24 +00:00
Thibaud Colas cedfd2b1bc Update to latest Draftail and Draft.js 2018-02-09 15:24:24 +00:00
Thibaud Colas e59863f903 Refactor Draftail JS plugin API to be more similar to the rich text features registry API 2018-02-09 15:24:24 +00:00
Thibaud Colas ae4e48ed3f Use built-in feature for defaults example instead of custom 2018-02-09 15:24:24 +00:00
Thibaud Colas f50c096706 Finish Draftail entities extension documentation 2018-02-09 15:24:24 +00:00
Thibaud Colas 5c00b843c5 Move Hallo & Draftail extension docs to their own pages 2018-02-09 15:24:24 +00:00
Thibaud Colas 4285b9f1cc Add start of example for entity docs 2018-02-09 15:24:24 +00:00
Thibaud Colas 19a83364dc Add missing release notes and dependencies as globals docs from Draftail work 2018-02-09 15:24:24 +00:00
Thibaud Colas fac8582ac4 Add entities disclaimer 2018-02-09 15:24:24 +00:00
Thibaud Colas 49c9999cb8 Add Draftail docs for custom inline styles and blocks 2018-02-09 15:24:24 +00:00
Thibaud Colas 9760e8f520 Document Hallo extension points in docs, CHANGELOG, upgrade considerations 2018-02-09 15:24:24 +00:00
Thibaud Colas f21b4146ac Move "default features" section out of Hallo-only docs 2018-02-09 15:24:24 +00:00
Thibaud Colas 452ea4d1fe Reformat deprecation notice 2018-02-09 15:24:24 +00:00
Thibaud Colas 1e31120103 Use wontfix label for known Hallo issues 2018-02-09 15:24:24 +00:00
Thibaud Colas 9b6102b5b5 Split WYSIWYG extension docs between Hallo and Draftail 2018-02-09 15:24:24 +00:00
Thibaud Colas 9284615d94 Update rich text features docs for Draftail + Hallo support 2018-02-09 15:24:24 +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
Matt Westcott e1325ed4d6 Release notes and documentation for Draftail (#4136) 2018-01-25 16:38:38 +00:00
Bruno Alla be164048b8 Add setting to disable notification to superusers -- Fixes #3969
WAGTAILADMIN_NOTIFICATION_INCLUDE_SUPERUSERS, default to True
If set to False, superusers do not receive moderation notification,
only moderators do.
2018-01-10 17:26:02 +00:00
Matt Westcott b9a548f424 Update documentation for rich text element whitelisting 2018-01-05 16:15:59 +00:00
Mike Dingjan ef27853a05 Allow overriding login form via ``WAGTAILADMIN_USER_LOGIN_FORM`` setting 2018-01-03 15:57:40 +00:00
misraX c48a2ef501 Fixing search url for django 1.10 and above.
For django 1.10 and above the search url will fail with a TypeError since there is no support for views as string insider urlpatterns, It will raise TypeError('view must be a callable or a list/tuple in the case of include().')
TypeError: view must be a callable or a list/tuple in the case of include().
2018-01-02 23:37:10 +00:00
LB 70eb2b6ae3 add on_delete argument to ParentalKey & ForeignKey 2017-12-15 10:33:09 +00:00
Mads Jensen ffd93a0d28 Don't inherit from object 2017-11-27 10:06:03 +00:00
Karl Hobley 4deb1dbff0 Renamed wagtail.wagtailredirects to wagtail.contrib.redirects
Conflicts:
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	wagtail/contrib/redirects/forms.py
	wagtail/contrib/redirects/permissions.py
	wagtail/contrib/redirects/tests.py
	wagtail/contrib/redirects/views.py
	wagtail/contrib/redirects/wagtail_hooks.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/tests/settings.py
2017-11-26 22:43:47 +00:00
Karl Hobley f29ce6c1f9 Renamed wagtail.wagtailforms to wagtail.contrib.forms
Conflicts:
	docs/reference/contrib/forms/customisation.rst
	docs/reference/contrib/forms/index.rst
	wagtail/contrib/forms/tests/test_forms.py
	wagtail/contrib/forms/tests/test_models.py
	wagtail/contrib/forms/tests/test_views.py
	wagtail/contrib/forms/views.py
	wagtail/contrib/forms/wagtail_hooks.py
	wagtail/tests/settings.py
	wagtail/tests/testapp/models.py
2017-11-26 22:43:47 +00:00
Karl Hobley 80ff06f988 Rename wagtail.wagtailusers to wagtail.users
Conflicts:
	wagtail/admin/tests/test_pages_views.py
	wagtail/admin/utils.py
	wagtail/admin/views/account.py
	wagtail/users/views/groups.py
	wagtail/users/views/users.py
	wagtail/users/wagtail_hooks.py
2017-11-26 22:43:47 +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 b08d4dd83a Renamed wagtail.wagtailsites to wagtail.sites
Conflicts:
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	wagtail/project_template/project_name/settings/base.py
	wagtail/sites/views.py
	wagtail/tests/settings.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 54d8357f96 Rename wagtail.wagtailembeds to wagtail.embeds
Conflicts:
	gulpfile.js/config.js
	wagtail/embeds/blocks.py
	wagtail/embeds/tests.py
	wagtail/embeds/views/chooser.py
	wagtail/embeds/wagtail_hooks.py
2017-11-26 22:43:47 +00:00
Karl Hobley 78b1372cd4 Rename wagtail.wagtaildocs to wagtail.documents
Conflicts:
	docs/advanced_topics/i18n/index.rst
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	gulpfile.js/config.js
	wagtail/admin/tests/test_collections_views.py
	wagtail/api/v2/signal_handlers.py
	wagtail/contrib/wagtailstyleguide/views.py
	wagtail/core/tests/test_collection_permission_policies.py
	wagtail/documents/permissions.py
	wagtail/documents/tests/test_admin_views.py
	wagtail/documents/tests/test_collection_privacy.py
	wagtail/documents/tests/test_models.py
	wagtail/documents/views/chooser.py
	wagtail/documents/views/documents.py
	wagtail/documents/views/serve.py
	wagtail/documents/wagtail_hooks.py
	wagtail/documents/widgets.py
	wagtail/project_template/project_name/urls.py
	wagtail/tests/demosite/models.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/testapp/models.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
LB (Ben Johnston) fbd317e6b9 Fix issues with 'Customising generated forms'
The 'Customising generated forms' example contains a few issues that might confuse those who are copy/pasting the code.

1. No reference to the `geocode` library and where it comes from, added imports and revised API usage
2. `location = models.CharField()` requires the `max_length` attribute set
3. `FieldPanel('title')` added to content panels, otherwise testing this out causes error because no title or slug exists

These issues were flagged in #3737
2017-11-23 17:30:14 +00:00
Martin Sandström 345b527ca2 Fix syntax error in ImageRenditionField example 2017-11-12 18:07:38 +00:00
Matt Westcott aebb69a2ba Remove dead links to API v1 docs 2017-11-03 17:03:57 +00:00
Karl Hobley bf7936ade2 Replace `django.core.urlresolvers` with `django.urls` 2017-11-01 16:22:46 +00:00
Kees Hink 454af89c17 Move Usage info (Documents, Images) to sidebar 2017-10-26 14:34:58 +01:00
Karl Hobley fa302c0853 Remove wagtail.contrib.wagtailapi 2017-10-25 16:49:17 +01:00
Matt Westcott 56a68c3ee8 Remove more Django 1.8 references from docs 2017-10-25 16:15:02 +01:00
Karl Hobley 6514650aa4 Merge pull request #3940 from BertrandBordage/postgres_search_improvements
Postgres_search simplification.
2017-10-19 16:27:48 +01:00
Kees Hink c03f43a70b Also show link to image usage page on confirm_delete page 2017-10-19 10:23:36 +01:00
Bertrand Bordage 9db5b45ec7 Replace every remaining mention of postgresql_psycopg2.
PostgreSQL search backend were not running because of this since 67b1ddb665 (diff-c2cc727a5e1fca9050dea34af68aa13c)
2017-10-18 21:10:49 +01:00
Matt Westcott c80bbfcc5f Eliminate references to wagtaildemo from the docs
bakerydemo is now our preferred demo site and the one which will be updated for Wagtail 2.x / Django 2.x.
2017-10-11 16:58:30 +01:00
Matt Westcott d48c3709cd Remove support for registerHalloPlugin 2017-10-10 11:51:45 +01:00
Matt Westcott fe360d9e10 Remove Wagtail-1.4-era fallback for rest_framework not being installed 2017-10-10 11:51:45 +01:00
Samir Shah 62b8caedd5 Remove SessionAuthenticationMiddleware from project template and docs.
The project template assumes Django 1.11, where SessionAuthenticationMiddleware is redundant (see https://docs.djangoproject.com/en/1.11/releases/1.10/#features-removed-in-1-10).

Also update the documentation to consistently refer to MIDDLEWARE instead of MIDDLEWARE_CLASSES.
2017-10-04 16:14:34 +01:00
Timo Rieber 63af2b28ea Added PythonAnywhere deployment infos including the wagtail-pythonanywhere-quickstart project 2017-10-03 15:54:33 +01:00
Timo Rieber 6414e6c10b Removed openshift deployment infos (v2 has been sunset) 2017-10-03 15:54:33 +01:00
Matt Westcott 3d21cae940 Allow overriding branding_logo on the 404 page 2017-09-21 13:25:12 +01:00
Matt Westcott 665d06c8ce Remove docs for setting up post_delete signals on custom document models
This is no longer required as of #3541
2017-09-13 21:36:55 +01:00
Matt Westcott 92b4f68c67 Don't call `static()` when constructing HalloPlugins
This isn't necessary, since Django form media fills in static paths itself - and doing it at module level will break on startup with certain staticfiles configurations if collectstatic hasn't run yet. Fixes #3829
2017-09-07 16:21:24 +01:00
Emily Horsman 423c31ddf6 Adds docs for custom document models and get_document_model
This documentation will need to be updated if/when #3539 is fixed,
similar to the custom image model documentation that exists already.
2017-08-24 10:22:52 -07:00
Timothy Allen 8d08f83c5a Minor documentation example fix; bold and italic should be spelled out explicitly. (#3779) 2017-08-22 20:29:15 +03:00
Matt Westcott b0aedf02dc Remove old versionadded annotations from the docs 2017-08-22 14:08:44 +01:00
Joe Cronyn d56f1069ef Updating to allow no limit max 2017-08-22 12:09:05 +01:00
Matt Westcott ca8503846e Fix link to RFC 8 2017-08-16 10:19:16 +01:00
Matt Westcott 9942822fca Make paragraph elements an always-on plugin rather than configurable with plugins 2017-08-10 14:19:34 +01:00
Matt Westcott 7c99cad62b Documentation for rich text features 2017-08-10 14:19:34 +01:00
Matt Westcott 0f5db96364 Add WAGTAILUSERS_PASSWORD_ENABLED and WAGTAILUSERS_PASSWORD_REQUIRED settings
Fixes #3706. These options restore the ability to create users with no password set on the Django side, for setups where authentication is managed externally (e.g. LDAP) - this was inadvertently dropped in Wagtail 1.10 when the form validation was tightened up (#3007). Additionally, the password fields can now be removed entirely, to enforce the use of an external auth setup.
2017-08-10 10:11:47 +01:00
Karl Hobley 01e2d5f4a0 Class based embed finders and new embed finder configuration (#2127)
* Allow additional oembed providers to be used (currently all are hardcoded)
 * Make per-provider configuration possible
    * Choose which finders get used for which provider (eg, force use of oembed for instagram but use embedly for everything else)
    * Allow specifying additional parameters for certian providers such as scheme=https to YouTube
2017-07-03 18:28:13 +01:00
Matt Westcott b2fbd91864 Document the DOCUMENT_PASSWORD_REQUIRED_TEMPLATE setting 2017-06-16 14:50:48 +01:00
Matt Westcott a3b048d403 Fix incorrect field panels in custom form example
Fixes #3571. Thanks to @patta42 for the report!
2017-04-28 15:28:25 +01:00
Bertrand Bordage 2b135a519c Doc typos. 2017-04-19 18:38:17 +02:00
Bertrand Bordage 769413dd2d Promotes new admin preview in release notes. 2017-04-19 18:37:54 +02:00
Bertrand Bordage b866e5b934 Adds some missing versionadded in settings docs. 2017-04-19 15:13:02 +02:00
Bertrand Bordage 1a82c19191 Adds documentation for WAGTAILADMIN_PERMITTED_LANGUAGES. 2017-04-19 15:09:58 +02:00
Matt Westcott 88136dab73 Further typos for #3310. 2017-04-19 14:54:36 +02:00
Daniel Chimeno 72a935a8f0 Adds user-prefered admin language (#3310).
added prefered language field and migration

added form and view to select prefered language

Added some tests

modified tests

fix styleguide errors

activate middleware only for authenticated users

fixed typos

fixed test undoing language preferences

fixed lint issues

fixed tests

fixed message

change behaviour and more test added

added utf8 coding

[skip ci] initial documentation for preferred language

added contributor

refactor get_available_admin_languages

refactor get_available_admin_languages

make language name language aware

translate notifications to recipient language

make language name language aware

fixed lint
2017-04-19 14:48:06 +02:00
Bertrand Bordage 511c158b18 New admin preview (#3383)
* Rewrites the page preview to make it reliable.

* Updates preview tests.

* Fixes View import on Django 1.8 & 1.9.

* Starts sending preview auto-update data only after clicking on preview.

* Changes the preview session key prefix.
2017-04-12 16:35:38 +01:00
Bertrand Bordage 8cf37bc877 Merge pull request #3460 from rosco77/patch-1
[Docs] Removes common prefix from i18n_patterns.
2017-04-08 01:53:18 +02:00
Bertrand Bordage d36fe2b253 Merge pull request #3462 from kaedroho/feature/images-in-api-simple
Allow custom field classes to be used in api_fields
2017-04-06 19:41:29 +02:00
Karl Hobley fd9db9335a Docs edits 2017-04-06 15:27:34 +01:00
Karl Hobley 7e160edad6 Docs 2017-04-06 15:17:57 +01:00
Bojan Mihelac 0f53afc5a6 Adds support for custom date and datetime formats (#2595)
It is possible to set default format for date/datetime inputs. This works together
with standard django localization.

    # django settings
    USE_I18N = True
    LANGUAGE_CODE = 'sl'

    # wagtail settings
    WAGTAIL_DATE_FORMAT = '%d.%m.%Y.'
    WAGTAIL_DATETIME_FORMAT = '%d.%m.%Y. %H:%M'

DateBlock, DateTimeBlock accepts additional keyword argument `format`.
2017-03-31 16:30:27 +01:00
Alex Gleason bbdbf3fd81 Allow spaces in tag fields 2017-03-23 17:19:47 +01:00
Matt Westcott eb9cc639d2 Link to the full Elasticsearch setup docs from the Performance page 2017-03-23 15:51:11 +01:00
Maarten Kling e41edb6e29 Setting for your most recent edits (#3483)
Closes #996
2017-03-22 20:47:57 +01:00
Ross Curzon-Butler d4165f0d40 Django urlpattens no longer support common prefixes 2017-03-17 09:00:46 +01:00
Matt Westcott 21f1292cf7 Reinstate underscore in fields param, as per 40842fe8bf (commitcomment-21183519) 2017-03-07 11:03:30 +00:00
Matt Westcott 60f28f8dc3 Mark API v1 documentation as deprecated (#3429) 2017-03-07 10:49:19 +00:00
jacoor 40842fe8bf typo fix 2017-03-07 10:48:30 +00:00
Thibaud Colas d4e63c74e5 Mention Awesome Wagtail on "third-party tutorials" page (#3419)
It feels relevant to mention Awesome Wagtail here since it serves the same purpose as this page.
2017-03-02 12:00:38 +00:00
Scot Hacker 6364104282 Document get_rendition() 2017-02-21 22:48:20 +00:00
Matt Westcott 15cd1b43cb Fix unexpected full stop in the middle. Of a sentence. 2017-02-16 17:11:37 +00:00
Matt Westcott 25c2be10c3 Remove image feature detection signal handler from docs 2017-02-16 17:10:38 +00:00
Mike Dingjan 8c970e4848 Update documentation 2017-02-16 16:54:36 +00:00
Gagaro 4fadecebd6 Added a `submit_buttons` block to login template 2017-02-11 22:58:53 +00:00
Alasdair Nicol d8926913bd Updated docs to use a list for urlpatterns
This style is recommended for Django 1.8+, and required for 1.10+
2017-02-05 19:59:39 +00:00
Matt Westcott 3cdafc3b32 Add Wagtail-Multilingual to third-party tutorials (#3317) 2017-02-03 09:52:00 +00:00
Martey Dodoo 3923ee668c Remove references to Gondor.io in documentation.
Gondor.io has been retired by Eldarion (see
http://eldarion.cloud/blog/2016/04/21/goodbye-gondor-hello-kel-and-eldarion-cloud/),
so the tutorial wouldn't be helpful even if it was accessible.
2017-01-30 12:36:26 +00:00
Jeffrey Chau 47f7d79aec Add convenience method for finding root page to navigation.py. Add context variables to home renderer. 2017-01-24 14:16:31 +00:00
Matt Westcott 1d4743d27c Update project template + docs to clarify that wagtail_urls should appear at the end of urlpatterns 2017-01-13 17:06:52 +00:00
Matt Westcott 6f834c9a9b Update links to github.com/torchbox to point to github.com/wagtail 2016-12-15 11:49:49 +00:00
Matt Westcott 978cd2e95b Switch to Rendition.filter_spec as the active field for looking up filters 2016-12-06 15:03:15 +00:00
Matt Westcott 02360e6651 re-indent template performance code snippet 2016-11-28 13:45:42 +00:00
Tim Heap 16213db0f8 Remove old versionadded notes
A step has been added to the release process notes to do this for future
releases as well.

https://github.com/torchbox/wagtail/wiki/Creating-a-new-Wagtail-release
2016-11-28 13:41:35 +00:00
Tim Heap 6ba34636cb Fix whitespace errors in docs
Trimmed trailing whitespace, convert tabs to 4 spaces, add preference
for spaces to `.editorconfig`.
2016-11-28 13:41:35 +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
Tim Heap f742d4a476 Use .. code-block:: for all python, html blocks 2016-11-28 13:41:34 +00:00
Tim Heap 2f8a43cd66 Document new blocks in login template
The old `branding.rst` docs were combined with the new docs on
customising the login page in a new `admin_templates.rst` document.
2016-11-28 12:41:06 +00:00
Manuel E. Gutierrez 5a26e22c0f Improve TranslatedField example
Avoid allocating two variables when only need one.
2016-11-15 10:39:55 +00:00
Matt Westcott 59440c92f1 Update PageViewRestriction model to support group/login restriction type
Update page privacy form with login/group options

Add unit tests for setting group-based permissions

Add a basic login page to wagtailcore

Implement front-end logic for group and login-based permissions

Allow overriding the frontend login template name with WAGTAIL_FRONTEND_LOGIN_TEMPLATE

Add documentation for customising the login page

Add message on login page for authenticated users who don't have access
2016-10-27 16:42:08 +03:00
Jaap Roes 10bcb50fff Recommend Django's cached template loader
As noted in PR #3077:

    "With the cached template loader enabled, there's a significant performance improvement"
2016-10-26 13:24:36 +02:00
pure-zero 800bfa7c16 should use rest_framework not restframework (#3087) 2016-10-15 10:58:00 +01:00
Matt Westcott 0cf3b13a1d Release note for #3075 2016-10-13 14:54:34 +01:00
Tim Heap b6fe08a634 Docs for get_image_model/get_image_model_string 2016-10-13 11:55:21 +02:00
Matt Westcott a3ba533afb start work on 1.8 / remove deprecated features (#3058)
* Version bump to start work on Wagtail 1.8

* Remove features deprecated in Wagtail 1.8
2016-10-07 16:02:04 +01:00
Matt Westcott 7ec734e925 Document how to chain image operations in the image serve view (ref #908) 2016-10-05 15:54:05 +01:00
riceyrice 5869bc37bb Allow configuration or override of QueryDailyHits garbage collection 2016-09-22 14:21:38 +01:00
Karl Hobley ebe597610e API v2 docs (#2940) 2016-09-22 11:15:18 +01:00
Matt Westcott 1181a4ea8e Add content_panels declarations to i18n duplicate tree example code - fixes #2981 2016-09-06 10:44:33 +01:00
Tobias ceec8c2d9f Update settings.rst
Fix typo.
2016-09-05 14:24:33 +02:00
Janneke Janssen 722ea1d3d8 Update the docs for the custom image model to mention post_delete instead of pre_delete 2016-09-01 15:07:05 +01:00
Karl Hobley daa82936d7 Elasticsearch 2 support (#2573)
* Created Elasticsearch 2 backend

* Added tests for Elasticsearch 2 backend

* Split models up into different indices

pages, images and documents are now in separate indices

* Prefix fields of child models to prevent mapping clashes

* Replaced index_analyzer with analyzer/search_analyzer

index_analyzer has been removed in Elasticsearch 2.0

https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_mapping_changes.html#_analyzer_mappings

There's no indication in Elasticsearch's docs that this wouldn't work on Elasticsearch 1.x. However, we found that the new configuration isn't reliable on Elasticsearch 1.6 and below (causes the test_query_analyzer test to fail randomly).

* Implemented new way of representing content types in search index

Instead of using a long string of model names that is queried using a
"prefix" query, we instead use a multi-value string field and query it
using a simple "match" query.

The only reason why this isn't implemented in the Elasticsearch 1.x
backend yet is backwards compatibility

* Added another child model of SearchTest with clashing field mapping

This checks that the namespacing of fields on child models is working properly (if it doesn't the update_index tests will fail)

* Added tests for get_model_root function

* fixup! Added tests for get_model_root function

* Docs updates for Elasticsearch 2 support

Also tweak examples to use elasticsearch2 backend by default

* Test against Elasticsearch 2 on travis
2016-08-31 13:46:57 +03:00
Matt Westcott fc308c9ced Add setting to disable Unicode slug support #2937
* Ship our own copies of urlify.js and xregexp.min.js

This avoids issues with missing files when using Django 1.8 or omitting django.contrib.admin from INSTALLED_APPS (#2927), and guards against any breaking changes to these files in future Django releases.

* Add a WAGTAIL_ALLOW_UNICODE_SLUGS setting
2016-08-25 19:03:37 +03:00
Matt Westcott 20df607918 Remove deprecated wagtail.wagtailimages.utils module 2016-08-09 20:11:31 +01:00
anatoly techtonik b3ab3c4e02 Add another tutorial (#2894) 2016-08-05 11:20:55 +03:00
Matt Westcott 6886e89e41 Tweak wording for include_block tag documentation 2016-07-27 17:04:19 +01:00
Mikalai Radchuk d696d6bf9f Adds docs for a Jinja2 version of include_block 2016-07-27 16:52:14 +01:00
Janneke Janssen 06bfa43782 Documented the settings variable for WAGTAIL_USAGE_COUNT_ENABLED (#2706) 2016-06-13 20:47:27 +01:00
Janneke Janssen 978cef5218 Documented the WAGTAILIMAGES_MAX_UPLOAD_SIZE (#2683) 2016-06-05 18:16:13 +01:00
Tomas Olander 5ebc7d5044 Update branding docs to remove django-overextends
Fixes #2609
2016-05-31 10:34:26 +01:00
Karl Hobley c63dcdfc15 Added a missing link to release notes 2016-05-17 16:55:59 +01:00
Karl Hobley f8d7276800 Release note for #2459 2016-05-17 16:39:11 +01:00
Yannick Chabbert 58dfea096e add a sendfile class based view implementation 2016-05-17 16:34:32 +01:00
Matt Westcott 6ff98a543b Move custom user forms example to a new page under advanced_topics/customisation 2016-05-12 15:34:14 +01:00
nfletton c4feb6462f Add ability to override user creation and edit forms to allow custom user model
fields to be edited via Wagtail admin.
2016-05-12 15:34:14 +01:00
Karl Hobley 948bdf8d3c Tweaks to image serve view docs (#2588)
- key => signature
- Added "Advanced configuration" section (the last bit of the docs doesn't really fit into the general usage section above)
-
2016-05-10 14:56:12 +01:00
Tim Heap b727ec4064 Add documentation on the base_form_class attribute 2016-05-03 14:00:21 +01:00
Karl Hobley 5eef0f0a24 Mention that ImageMagick must be installed in "Animated GIF support"
Fixes #2505. Thanks to Frank Wiles and @ghostwords for spotting
2016-04-29 16:23:27 +01:00
Robert Rollins 7523d7f57f Removed all uses of STATIC_URL from code samples, replaced with static().
Concatinating with settings.STATIC_URL is no longer reccomended for creating
URLs to static resources, because it doesn't take the configured storage engine
into account. For example, a site using S3 to store its static files will need
static URLs that link out to S3, rather than relative URLs within the same
domain.

I replaced it with django.contrib.staticfiles.templatetags.staticfiles.static()
in python example code, and the {% static %} tag in template examples.
2016-04-28 10:57:22 +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
Andrew T. Baker 228088d33d Add WAGTAIL_APPEND_SLASH setting 2016-04-25 23:12:57 +01:00
Timo Rieber 31119b5954 Added openshift deployment infos using wagtail-openshift-quickstart 2016-04-06 11:44:25 +01:00
Karl Hobley 81795200c4 Docs for dynamic image serve view 2016-04-04 10:20:52 +01:00
Chris Townsend 8ac23d0554 Updated to include TEMPLATE requirement for Django 1.9+
In Django 1.9+ if you do not add: 'builtins': ['overextends.templatetags.overextends_tags'], to your TEMPLATES section you will receive a TemplateSyntaxError when the overextends template files are rendered: "Invalid block tag on line".  Including 'builtins': ['overextends.templatetags.overextends_tags'], per the overextends docs (and experience) resolves this error.

https://github.com/stephenmcd/django-overextends
2016-03-24 21:38:58 +00:00
Robert Rollins 6446c42132 Various typo fixes and grammar/clarity improvements. 2016-03-10 15:11:41 +00:00
Loïc Teixeira 10791a9c0b Remove dead link
The raw html which can be found on the repository states:
	Update 08/09/2015: This tutorial has been written during the first days of Wagtail, when documentation and tutorials about it were sparce; right now it should be considered by all accounts obsolete and not be followed! Instead, you should read the official (and very well written) tutorial in the official Wagtail documentation!
2016-03-06 21:05:05 +00:00
Mikalai Radchuk 72d9ae81b5 Release notes for #2253 2016-03-04 00:02:09 +03:00
Mike Dingjan 1f65a4aae6 updated documentation regarding html notifications 2016-03-03 23:05:34 +03:00
Matt Westcott 6851bbf1a6 Fix custom image docs to indicate that fields must be non-required 2016-03-01 12:07:35 +00:00
Tim Heap 224f3f5c37 Remove final references to django-compressor
* Remove references from docs
* Fix comment in SCSS files, and fix related variable names
* Remove COMPRESS_ENABLED setting from tests
2016-02-09 18:41:56 +00:00
Matt Westcott 20b42ad7d9 Remove django-compressor references from the 'Configuring Django' docs 2016-02-04 15:31:03 +00:00
Karl Hobley be82fa975d Removed django-compressor 2016-02-03 16:16:11 +00:00
Mikalai Radchuk 3f2f5665b0 Allow specifying custom edit handlers for snippets 2016-01-28 13:03:27 +00:00
Karl Hobley 95ff74feeb Moved advanced image topics into advanced topics 2016-01-27 11:27:16 +00:00
Matt Westcott 88078ac389 Reorder INSTALLED_APPS to put most specific apps first 2016-01-21 10:18:48 +00:00
Matt Westcott 7c211e7ec0 Update settings in 'configuring Django' docs for Django 1.9 2016-01-20 20:11:40 +00:00
Tim Heap 2c76441186 Add docs for WagtailPageTests 2015-12-15 15:49:40 +00:00
Karl Hobley 960d7aa575 feat(django 1.9): Move jinja2 tags out of templatetags folders
Django 1.9 now automatically imports all models in templatetags. This causes ImportErrors to be raised for users who do not have jinja2 installed.
2015-12-09 11:40:35 +00:00
Tom Dyson ef58ea3429 Document setting for case-insensitive tags 2015-11-30 18:07:08 +00:00
Matt Westcott d24081e432 Set WAGTAIL_PASSWORD_RESET_ENABLED to default to the value of WAGTAIL_PASSWORD_MANAGEMENT_ENABLED 2015-11-18 12:07:49 +00:00
John Draper 673ea92ee2 Document password management settings 2015-11-18 12:03:52 +00:00
Karl Hobley 4a6f2b5b43 Reworded sentence about using "self" in templates 2015-10-13 09:55:23 +01:00
Karl Hobley 6eae465e64 Renamed "self" template variable to "page" in docs 2015-10-13 09:52:16 +01:00
Karl Hobley eb27195e8f Fixed typo in Jinja2 docs 2015-10-08 16:59:58 +01:00
Anurag Sharma 5915ec1f0e Changed EMBEDLY_KEY to WAGTAILEMBEDS_EMBEDY_KEY 2015-10-07 20:44:15 +05:30
Karl Hobley 4dc09dfb22 Merge pull request #1755 from takeflight/feature/jinja2-template-functions
Add rudimentary Jinja2 template tag support
2015-10-06 22:00:47 +01:00
Matt Westcott deee02e4d7 Release note for #1391 2015-10-05 18:41:48 +01:00
Matt Westcott a86b08a622 Add favicon as an overrideable branding block - fixes #1391 2015-10-05 18:20:08 +01:00
Tim Heap bc6b5a8a6c Normalise all code blocks in the docs
All `.. code::` instances have been changed to use `.. code-block::`,
and have been properly formatted. The syntax names have been normalised,
so all django templates use the `html+django` syntax, shell commands use
`sh`, and plain text uses `text`.
2015-10-05 16:55:58 +01:00
Tim Heap 21d290af12 Add references to Django documentation on configuring Jinja 2015-10-02 08:06:28 +10:00
Tim Heap e225481f2f Add documentation for using Jinja2 2015-10-01 16:00:40 +10:00
Alex Gleason 6fc2dd4904 Removed broken link to non-existent vagrant install script 2015-09-23 14:51:43 -05:00
Dave Cranwell 12fc3e6601 Fixes #1600. Adds documentation and caveats about image formats system within rich text 2015-09-21 14:01:18 +01:00
Matt Westcott 2ed16e3ee2 Update documentation to indicate that SnippetChooserPanel no longer requires a snippet_type argument 2015-08-28 10:57:31 +01:00
Karl Hobley 48b0f92961 Tweaks based on feedback from @tomdyson 2015-08-24 12:09:47 +01:00
Benedikt Breinbauer d8c58f10f1 Fix some typos in i18n docs 2015-08-21 16:05:44 +01:00
Karl Hobley b8d0541f39 Some edits 2015-08-21 16:00:26 +01:00
Benedikt Breinbauer 0d040564d6 Fix LocaleMiddleware path in i18n docs 2015-08-21 15:25:48 +02:00
Karl Hobley ee61839fd5 Improvements to internationalisation docs 2015-08-21 11:08:11 +01:00
Karl Hobley a57b432078 Created internationalisation section of the docs 2015-08-20 12:29:25 +01:00
Matt Westcott f99141afc2 'extremely basic information' -> 'the hostname of your Wagtail site' 2015-07-15 17:12:19 +01:00
Matt Westcott 66e6c58b5b Merge branch 'search-config-tweak' of https://github.com/kaedroho/wagtail into kaedroho-search-config-tweak
Conflicts:
	docs/search/backends.rst
	wagtail/wagtailsearch/tests/test_backends.py
2015-06-26 16:33:21 +01:00
Karl Hobley 201164ccb5 Moved page privacy to advanced topics 2015-06-02 09:14:55 +01:00
Karl Hobley f9f6d52670 Moved page editor customisation to customisation section 2015-05-30 23:17:39 +01:00
Karl Hobley 5d52ae949d Added customisation section 2015-05-30 23:10:48 +01:00
Karl Hobley 1ba7e645fd Renamed howto to advanced topics 2015-05-28 12:58:50 +01:00