
Check the downloads for course resources, such as getting started and a student-only resource, as well as code downloads.
Here's a demo of what we'll build. Check the downloads for course resources, such as getting started and a student-only resource, as well as code downloads.
Build a production front end with vite and push the dist output into Django's static files, configuring outDir and base URL for seamless asset serving.
Create a custom Django context processor to auto generate React.js and css asset paths from the assets directory, using pathlib and settings, and render them in templates.
Explore wysiwyg editing in a react app with tinymce, using useState and on editor change to render a live preview via dangerously set inner html.
Submit TinyMCE data to the Django backend via an HTTP post with a JSON payload and CSRF token, using fetch in React to send and confirm the response.
Render initial tinyMCE editor data by fetching content via a Django detail view, passing the object ID, and initializing the editor with init content using a useEffect hook.
Update the components to save TinyMCE data in Django form using an object id, a constructed request body, and a try block to persist edits.
Render the live landing page by creating a live template and a live view that displays TinyMCE-managed content from a landing page instance using content and safe.
Explore two methods to embed YouTube videos in TinyMCE: the open-source media plugin and the premium page embed plugin, then make them responsive with default CSS or custom classes.
learn to render Django context with TinyMCE merge tags to create dynamic user-specific content; configure the plugin, define the Django tags category with username, and render an inline template.
Extend Django pages with TinyMCE merge tags by implementing an advanced template plugin, inserting templates via the editor, and simulating back end lookups with promises or fetch.
Express gratitude to viewers for watching and invite them to share cool projects for feedback, then sign off with see you next time.
Django is a powerful backend built in Python. React.js is a powerful front end built in JavaScript. The two together bring a full-stack dynamic-ness that's hard to match.
TinyMCE has been a stable of Django developers for over a decade. Why? It provides a powerful What You See Is What You Get Editor (aka WYSIWYG) allowing non-technical team members to build out complex HTML pages without writing a single line of code. For the more technical, TinyMCE also offers powerful ways to modify this content inline.
TinyMCE just got a power boost by leveraging AI tools to really up your game on building out WYSIWYG-managed HTML pages in seconds. In other words, taking the best of TinyMCE and OpenAI GPTs (any version really) or Llama 3 or whatever generative AI comes next. We'll show you how to implement this as well.
Here's all the topics that are included in this 100% free course:
Creating a Django project
Using Vite to create and manage a React project
Modern integration with Django + React
Custom Django Middleware
Implementing React-based TinyMCE
Saving and retrieving TinyMCE data via Django and React
Building a pure Django REST API to handle front-end data. (e.g. a precursor to something like the Django Rest Framework)
Implement OpenAI for One-Click Generating WYSIWYG Landing Page Content
Embedding YouTube Videos in TinyMCE
While this might seem like a super advanced Django course, I worked hard to make it as approachable for beginners as possible while allowing more expert devs to jump around as needed.
The code is available as a free download as a zip file or directly from GitHub. We also have student-only resources available as PDF downloads.
Are you ready to begin?