Comments (3)
Assigned to @spapas, discussing today with @spapas and @gasman.
from wagtail.
After an inspection of the code of wagtail and wagtail demo, I found out that Redis is used in two places:
a. As a django cache backend, in the wagtaildemo/settings/base.py. To remove the Redis dependency on development the Redis cache backed will be moved to production.py. Since no cache backend would be defined in base.py and dev.py the default django.core.cache.backends.locmem.LocMemCache
backend will be used.
b. As a broker for celery, defined in wagtaildemo/settings/base.py. To remove the Redis dependency from here we can follow two paths:
i. Change base.py like this:
import djcelery
djcelery.setup_loader()
CELERY_ALWAYS_EAGER = True
this way the tasks will be run synchronously so a broker won't be needed
and move the redis broker configuration to production.py
ii. A different path woul be to remove completely celery as a dependency from the development. Celery is only use in the wagtail / wagtail / wagtailadmin / tasks.py, and more specifically to decorate as a task
the send_notification
function. So, to remove both celery and redis dependencies completely we can conditionally (if DEBUG==False) decorate the send_notification
method and also remove djcelery
and kombu.transport.django
from the base.py
INSTALLED_APPS
and only inclue them to the production.py
.
I prefer method ii which removes both Redis and Celery. Any thoughts ?
from wagtail.
I like a. and b ii.
from wagtail.
Related Issues (20)
- Uncaught TypeError in page-editor.js - MultipleChooserPanel HOT 2
- Result of `expand_db_html` for a mixture of internal / external links is malformed HOT 3
- Internalization - "User language auto-detection" paragraph misleading
- Document how to get urls to pages in the admin
- Alt text validation rule in the accessibility checker HOT 1
- "Add page" on PageListingViewSet should skip choosing parent page if only one choice exists HOT 3
- Improve feedback message after "adding" an image
- Invalid Email Format Accepted in User Registration Form HOT 2
- Documentation builds with errors HOT 3
- Add "Show Child Pages" link or button in PageListingViewset
- Configure pre-commit hooks to automatically fix formatting and linting issues on commit HOT 1
- New Wagtail installation has error in wagtail.search.models HOT 3
- Page privacy model renders 2 headers and icons HOT 1
- Wagtail 6.1.x update breaks `RadioSelect` initialiastion after replacing jQuery with vanilla JS HOT 1
- Admin listings language label redesign
- Rich Text Editor External Link to Internal Link Conversion not working HOT 1
- StreamField block type descriptions and image previews in block chooser
- New design for the built-in "password required" form for private pages
- New design for quality check results
- RichTextField duplicates in Document Chooser upload tab HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wagtail.