0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
A Django content management system focused on flexibility and user experience https://wagtail.org/
Go to file
Fidel Ramos 0ccfe9568f Fix image resizing failing on slim images
Image operations sometimes calculate a target width or height of zero, which
make Willow raise a ValueError.

If an user uploads one such image it's possible to break the whole Wagtail
image manager/picker/uploader for all users.

The fix is to use a minimum of 1 pixel for either the target height or the
width. The image might lose some aspect ratio, but it's better than an
exception.
2020-03-19 16:39:20 +00:00
.circleci Nightly: Add script for testing nightly builds 2019-07-02 11:32:59 +01:00
.github Update links in documentation. (#5689) 2019-11-08 09:15:01 +00:00
.tx Fetch new translations and update config for Chinese (#3668) 2019-04-08 22:27:18 +01:00
client Remove spreadsheet export setting, and allow a user to select format via a dropdown instead 2020-03-13 17:33:22 +00:00
docs Fix image resizing failing on slim images 2020-03-19 16:39:20 +00:00
etc Update links in documentation. (#5689) 2019-11-08 09:15:01 +00:00
gulpfile.js Fix Javascript alerts reported by LGTM 2020-03-05 09:59:18 +00:00
scripts Update links in documentation. (#5689) 2019-11-08 09:15:01 +00:00
wagtail Fix image resizing failing on slim images 2020-03-19 16:39:20 +00:00
.coveragerc
.editorconfig
.eslintignore
.eslintrc Fix Redux DevTools deprecation warning (#5231). Fix #5214 2019-04-23 15:02:53 +01:00
.gitignore Add panel configuration checks (#5093) 2019-02-21 13:36:31 +01:00
.nvmrc
.readthedocs.yml
.squash.yml Replace welcome page for Squash instances 2020-03-03 15:20:47 +00:00
.stylelintrc.yaml Remove explicit stylelint-scss requirement & upgrade config pkg to v0.1.0 2019-05-20 16:42:35 +01:00
.travis.yml Remove support for Django 2.1 (#5840) 2020-02-18 13:55:53 +00:00
appveyor.yml
CHANGELOG.txt Fix image resizing failing on slim images 2020-03-19 16:39:20 +00:00
CODE_OF_CONDUCT.md Update links in documentation. (#5689) 2019-11-08 09:15:01 +00:00
codecov.yml
conftest.py
CONTRIBUTORS.rst Add cache to speed up compiling media declarations for stream blocks 2020-03-18 16:12:46 +00:00
LICENSE Makes LICENSE recognized by GitHub. 2019-06-05 15:18:50 +02:00
Makefile Configure jinjalint to enforce errors, while filtering-out false positives 2019-05-10 14:37:11 +01:00
MANIFEST.in
package-lock.json Bump eslint from 2.13.1 to 4.18.2 (#5665) 2019-11-06 18:16:10 +00:00
package.json Bump eslint from 2.13.1 to 4.18.2 (#5665) 2019-11-06 18:16:10 +00:00
README.md Remove support for Django 2.1 (#5840) 2020-02-18 13:55:53 +00:00
runtests.py Implements ES7 support (#5611) 2019-10-10 11:00:14 +01:00
SECURITY.md Add SECURITY.md (#5536) 2019-09-03 10:11:05 +01:00
setup.cfg Unbundle the l18n library 2019-10-30 08:03:41 +10:00
setup.py Reduce openpyxl version for Python 3.5 compatibility 2020-03-13 17:33:21 +00:00
SPONSORS.md Update links in documentation. (#5689) 2019-11-08 09:15:01 +00:00
tox.ini Remove support for Django 2.1 (#5840) 2020-02-18 13:55:53 +00:00

Wagtail

Wagtail is an open source content management system built on Django, with a strong community and commercial support. It's focused on user experience, and offers precise control for designers and developers.

Wagtail screenshot

Features

  • A fast, attractive interface for authors
  • Complete control over front-end design and structure
  • Scales to millions of pages and thousands of editors
  • Fast out of the box, cache-friendly when you need it
  • Content API for 'headless' sites with de-coupled front-end
  • Runs on a Raspberry Pi or a multi-datacenter cloud platform
  • StreamField encourages flexible content without compromising structure
  • Powerful, integrated search, using Elasticsearch or PostgreSQL
  • Excellent support for images and embedded content
  • Multi-site and multi-language ready
  • Embraces and extends Django

Find out more at wagtail.io.

Getting started

Wagtail works with Python 3, on any platform.

To get started with Wagtail, run the following in a virtual environment:

pip install wagtail
wagtail start mysite
cd mysite
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

For detailed installation and setup docs, see docs.wagtail.io.

Whos using it?

Wagtail is used by NASA, Google, Oxfam, the NHS, Mozilla, MIT, the Red Cross, Salesforce, NBC, BMW, and the US and UK governments. Add your own Wagtail site to madewithwagtail.org.

Documentation

docs.wagtail.io is the full reference for Wagtail, and includes guides for developers, designers and editors, alongside release notes and our roadmap.

Compatibility

(If you are reading this on GitHub, the details here may not be indicative of the current released version - please see Compatible Django / Python versions in the Wagtail documentation.)

Wagtail supports:

  • Django 2.2.x and 3.0.x
  • Python 3.5, 3.6, 3.7 and 3.8
  • PostgreSQL, MySQL and SQLite as database backends

Previous versions of Wagtail additionally supported Python 2.7 and Django 1.x.


Community Support

There is an active community of Wagtail users and developers responding to questions on Stack Overflow. When posting questions, please read Stack Overflow's advice on how to ask questions and remember to tag your question "wagtail".

For topics and discussions that do not fit Stack Overflow's question and answer format, we have a Slack workspace and a Wagtail Support mailing list. Please respect the time and effort of volunteers by not asking the same question in multiple places.

We maintain a curated list of third party packages, articles and other resources at Awesome Wagtail.

Commercial Support

Wagtail is sponsored by Torchbox. If you need help implementing or hosting Wagtail, please contact us: hello@torchbox.com. See also madewithwagtail.org/developers/ for expert Wagtail developers around the world.

Security

We take the security of Wagtail, and related packages we maintain, seriously. If you have found a security issue with any of our projects please email us at security@wagtail.io so we can work together to find and patch the issue. We appreciate responsible disclosure with any security related issues, so please contact us first before creating a Github issue.

If you want to send an encrypted email (optional), the public key ID for security@wagtail.io is 0x6ba1e1a86e0f8ce8, and this public key is available from most commonly-used keyservers.

Release schedule

Feature releases of Wagtail are released every three months. Selected releases are designated as Long Term Support (LTS) releases, and will receive maintenance updates for an extended period to address any security and data-loss related issues. For dates of past and upcoming releases and support periods, see Release Schedule.

Nightly releases

To try out the latest features before a release, we also create builds from master every night. You can find instructions on how to install the latest nightly release at https://releases.wagtail.io/nightly/index.html

Contributing

If you're a Python or Django developer, fork the repo and get stuck in! We run a separate group for developers of Wagtail itself at https://groups.google.com/forum/#!forum/wagtail-developers (please note that this is not for support requests).

You might like to start by reviewing the contributing guidelines and checking issues with the good first issue label.

We also welcome translations for Wagtail's interface. Translation work should be submitted through Transifex.

License

BSD

Thanks

We thank the following organisations for their services used in Wagtail's development:

Browserstack
BrowserStack provides the project with free access to their live web-based browser testing tool, and automated Selenium cloud testing.

squash.io
Squash provides the project with free test environments for reviewing pull requests.

Build Status License Version Coverage Total alerts Language grade: Python Language grade: JavaScript Slack