django-sockpuppet
react-async-component
Our great sponsors
django-sockpuppet | react-async-component | |
---|---|---|
4 | 1 | |
441 | 1,447 | |
- | - | |
0.0 | 0.0 | |
about 1 year ago | over 1 year ago | |
Python | JavaScript | |
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-sockpuppet
- Почему я программирую на Ruby
-
Is Django enough?
The vast majority of applications are like that. You need some javascript, not a ton. If you need more than just a little bit of interactivity, you can use something like htmx or django-sockpuppet or any other number of things to get SPA-like interactivity without a dedicated frontend.
-
Show HN: Django and React SaaS boilerplate tutorial
> 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.
What we want from something like react after all is reactivity, and it's possible to get that if you were to use something like https://github.com/jonathan-s/django-sockpuppet
So if you've got an open mind and want to test it's there for the taking.
react-async-component
-
Show HN: Django and React SaaS boilerplate tutorial
I've spent many years working on django including production setups for 3 different companies. My strong advice is to only use Django for API calls (DRF) and the built in admin UI. Do not use Django for ANY client facing static site rendering.
1. Deploy the React static pages and JS/CSS resources completely separately from Django. Cloudfront/S3 is my personal choice. You will need to tweak the CORS_ORIGIN_WHITELIST and CORS_ALLOW_HEADERS in the django settings but that's relatively easy.
2. Use Gatsy or something similar to help you with static site generation using react. Remember: React is in charge of HTML/JS/CSS of any type and Django should not get involved.
3. Use https://github.com/ctrlplusb/react-async-component or something similar to help break up your SPA so the browser doesn't have to load all of it at once and only loads smaller components on an as needed basis.
Don't mess with webpack and eject unless you have a very specialized need that cannot be addressed with everything out there.
What are some alternatives?
htmx - </> htmx - high power tools for HTML
reactivated
django-webpack-loader - Transparently use webpack with django
loadable-components - The recommended Code Splitting library for React ✂️✨
django-react-boilerplate - DIY Django + React Boilerplate for starting your SaaS
Next.js - The React Framework
cash - An absurdly small jQuery alternative for modern browsers.
cookiecutter-react-django - From hello world to Heroku deployment, using separated Front and Back Ends
twitter-api - Django Rest framework Real Time Twitter API . Fully functional twitter app with websocket api to notify and send chat in real time using django channels.
RxPY - ReactiveX for Python