Wagtail (Django) Installation and Production Setup

Wagtail (Django) Installation and Production Setup

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Frequently Asked Questions

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1414
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1285
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    980
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1240
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    982
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    994

Wagtail (Django) Installation and Production Setup

You chose Django, but content managers want an admin panel like WordPress, and developers want full control over the data model. Wagtail fits this scenario perfectly: Python, Django, StreamField for flexible templates, and a built-in workflow for publishing. However, the real power unfolds only with proper production configuration. We are a team with deep Django/Wagtail expertise—here’s how to avoid typical pitfalls and ship a stable system.

Why Choose Wagtail for a Django Project?

Wagtail transforms Django from a developer framework into a full-fledged CMS for editors. Unlike other Django CMS solutions, Wagtail offers a built-in WYSIWYG editor, image management, A/B testing, and a page editor for design without code. For developers, it provides a clear page inheritance model, hooks, and signals. Paired with Redis and Cloudflare, it handles traffic up to 1 million visitors per month.

Typical Problems When Configuring Wagtail for Production

Even experienced Django developers make mistakes at the intersection of media storage and caching. Here are three common scenarios:

Problem 1: Conflict between WhiteNoise and S3 for media. If static files are served via WhiteNoise and media via S3, you must set WHITENOISE_USE_FINDERS = False, otherwise 404 errors on files occur. The solution is a clear STORAGES configuration with separated backends.

Problem 2: Redis serialization errors with StreamField. Wagtail stores StreamField as JSON in the database, but when caching, it goes into Redis. Without a custom JSON encoder, stacktraces appear in logs. We always add 'SERIALIZER': 'django_redis.serializers.json.JSONSerializer'.

Problem 3: Slow StreamField migrations. When adding a new block to StreamField, migrations can fail with a TypeError. We use null=True, blank=True by default and manually dump data before makemigrations.

How We Configure Wagtail Turnkey

Our typical stack: Python, Django, Wagtail, PostgreSQL, Redis, Docker + Gunicorn + Nginx. For media, we use S3 (DigitalOcean Spaces) with a CDN via Cloudflare. Real-world case: we deployed Wagtail for a media portal with 50,000+ pages. The initial LCP was 4.2 seconds due to lack of caching and unoptimized images. We implemented:

  • Page caching via WAGTAIL_CACHE_BACKEND = 'default' with Redis.
  • ISR (Incremental Static Regeneration) using a combo of Wagtail + Cloudflare Workers.
  • Image optimization via wagtailimages with WebP and srcset.

The result: LCP dropped to 1.1 seconds, and page build time fell from 600 ms to 50 ms.

Comparison: Wagtail vs Django CMS

Criteria Wagtail Django CMS
Page editor WYSIWYG + StreamField Placeholder-based
Performance High (built-in caching) Medium
Developer flexibility StreamField, signals Plugins, hooks
Community support 14k+ stars on GitHub 9k+ stars
Deployment speed 4–8 hours (Docker) 6–12 hours

Work Phases

Phase Duration What we do
Analysis 1–2 hours Gather requirements for content model, load, budget.
Design 2–4 hours Database schema, storage configuration, deployment plan.
Implementation 4–8 hours Installation, configs, caching, media, Docker, CI/CD.
Testing 2–4 hours Load testing, cache verification, failover.
Deployment 1–2 hours Zero-downtime deployment via GitHub Actions + Docker.

How to Boost Wagtail Performance?

After basic installation, optimize caching and media. We set WAGTAIL_CACHE_BACKEND = 'default' with Redis. For images, we enable WebP and srcset via wagtailimages. In production, configure a CDN for static and media—this reduces server load by 3–5 times.

Timelines and Cost

Basic setup with PostgreSQL, Redis, S3, and Docker takes from 4 to 8 hours. If you need content model customization, CRM integration, or data migration, the timeline extends to 2–5 days. Cost is calculated individually after audit—we value transparency and don’t inflate hours.

What You Get After Setup?

  • Fully functional project with ready-to-use Docker Compose and Dockerfile.
  • Admin panel credentials with superuser.
  • Deployment and operation documentation (including core commands).
  • Team training (1 hour – Wagtail admin basics).
  • Warranty on all work – one month of free support after deployment.

We are certified Django specialists with 20+ Wagtail projects. Contact us to discuss your project—we’ll help with hosting choice, scaling, and optimization. Order a turnkey Wagtail installation today.

For more details, see the official Wagtail documentation. Management commands:

python manage.py migrate python manage.py collectstatic python manage.py rebuild_references_index # reference index python manage.py wagtail_update_image_renditions # recreate renditions python manage.py search_garbage_collect # clean search 

Wagtail installation with PostgreSQL and S3 for production – 4–8 hours.