django-webpack-loader
reactivated
Our great sponsors
django-webpack-loader | reactivated | |
---|---|---|
10 | 12 | |
2,491 | 596 | |
0.1% | - | |
7.9 | 8.4 | |
24 days ago | 10 days ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
django-webpack-loader
- Django with React
-
what are 3 django packages everyone should know about?
Django Webpack Loader
-
Django and webpack
Check out https://github.com/django-webpack/django-webpack-loader
-
How can i get out of the frontend approach choice hell?
About one month ago i started having a lot of doubts on my frontend. At first, instead of decoupling frontend from backend, i decided to use a library called django-webpack-loader that lets me serve webpack from Django templates, so i created a Vue app and served it from Django (i used a simple index.html view). So at this point i basically have a SPA that instead of being decoupled from Django, it's served by Django.
-
SPA With Django
You can do this with Django and nothing else easily or you can use a third party library called Django-Webpack-Loader.
- Prelaunch: Definite Guide to Django and Webpack
-
Vuejs with django
In addition to what's already been said (completely separate frontend & backend; or do a CDN include), I've worked in a codebase that uses django-webpack-loader.
- Any good tutorials on pairing Vue with Django?
- How do you add reactivity to Django templates?
-
Show HN: Django and React SaaS boilerplate tutorial
The biggest challenge to using Django with React IMO is getting the right blend of isomorphic rendering down. I don't want to go full SPA with Django as this defeats the purpose of Django IMO. Most parts of the site I want server-rendered, while in stateful parts I want React. So, let's say I have a site with 20 different React "apps" (i.e. stateful components) that I want to distribute amongst my various Django sections (Django "Apps" within the same project). And I want to do that with one webpackconfig. How do I tell my webpack where to put all those react bundles? The answer I've found is django-webpack-loader[1], however as you can see in the Issues section, one of the biggest limitations here is the inability to chunk React (and other issues).
Does anyone have a solution they like for this kind of isomporphic Django problem?
1. https://github.com/owais/django-webpack-loader
reactivated
-
What is the best auth method for django rest framework?
Though it's not in the main branch, I've POC-ed a lot of it and use it in production on this branch. You can... sort of see the ideas behind it. https://github.com/silviogutierrez/reactivated/pull/207
-
Can i host my django app under 10$?
https://www.reactivated.io/documentation/deploying/ https://github.com/silviogutierrez/reactivated/blob/main/development/scripts/deploy.sh https://github.com/silviogutierrez/reactivated/blob/main/development/Dockerfile
-
Six things I do every time I start a Django project
Theoretically, the Dockerfile should "just work"™ with Render.com as well. Right now I focus on fly.io only because their free tier offers PostgreSQL without time limits. Render, I believe, only does so for a period of time.
See here: https://github.com/silviogutierrez/reactivated/blob/main/dev...
https://github.com/silviogutierrez/reactivated/blob/main/dev...
https://github.com/silviogutierrez/reactivated/blob/main/dev...
- Best free and speedy hosting of small django project?
-
The absurd complexity of server-side rendering
Shameless plug: If you want seamless SSR with Django logic, but React templates, check out my project at https://www.reactivated.io .
It's like HTMX but uses React, and the JS bits are rendered on the server. You can then hydrate on the client.
The Reactivated docs site itself uses the project: https://github.com/silviogutierrez/reactivated/tree/main/web...
-
Reactivated — Zero-configuration Django and React
Here's one https://github.com/silviogutierrez/reactivated/blob/main/website/client/templates/HomePage.tsx
You can use any React library with Reactivated. Here's an example from the site, using react-markdown just like you would anywhere else: https://github.com/silviogutierrez/reactivated/blob/91d87e66c61c849895cabcc1ce07574111084c3a/reactivated.io/client/templates/Documentation.tsx
-
This Week in Python
reactivated – Zero-configuration Django and React.
- can I deploy django project in AWS, Google cloud or azure for free?
-
Show HN: Django and React SaaS boilerplate tutorial
That's exactly what https://github.com/silviogutierrez/reactivated does. It's a work in progress and docs are coming.
But it's the best of both worlds: Django SSR using statically typed JSX.
See for example my blog or business sites (on profile). Both SSRed by Django using React templates.
Then when the client loads, it gracefully "attaches" for dynamic interactive behavior as needed.
By far the biggest pain point is having to run node and python on the server. So I'm working on the best way to do that.
What are some alternatives?
whitenoise - Radically simplified static file serving for Python web apps
drf-excel - An XLSX spreadsheet renderer for Django REST Framework.
django-compressor - Compresses linked and inline javascript or CSS into a single cached file.
cookiecutter-react-django - From hello world to Heroku deployment, using separated Front and Back Ends
django-manifest-loader - Simplifies webpack configuration with Django
django-react-boilerplate - DIY Django + React Boilerplate for starting your SaaS
django-sockpuppet - Build reactive applications with the django tooling you already know and love.
Next.js - The React Framework
django-components - Create simple reusable template components in Django.
create-react-app-django - Easily Run a Create React App in a normal Django Template View