Thanks a lot for this great Django course 🤩. Please make a video about async ORM and async views in Django, and how we should integrate Django ORM with our views and when we should use it. This is content that I don't see any good sources for.
1:31 Could we do some vids on strategies for updating data of a production site? How best do we change a large portion of our data (80%) without affecting performance?
Another amazing video! When checking if a variable has been set in settings, do you usually use if settings.MAINTENANCE_MODE or if hasattr(settings, 'MAINTENANCE_MODE ') and settings.MAINTENANCE_MODE is not None? Which is best practice to use?
Thanks Peter! Your example there is a better suggestion, for sure. Use hasattr(settings, 'MAINTENANCE_MODE') and settings.MAINTENANCE_MODE is not None - to ensure that the value is defined in the settings before accessing it.
Would it be possible to do this without restarting the server? For example reading the value from cache in the middleware or at this point it's just easier to do it with nginx or something. Very cool video gave me tons of ideas to test out myself. :) much love
Thanks for the comment! You could indeed set this value in the database or the cache, and the Middleware could read the value from that source instead of just the settings. The MAINTENANCE_MODE value could then be updated via the Django Admin or some other mechanism. With that setup, no need to stop/restart the server, I don't think!
@TheNerdyPlayer running Django within a slim python/alpine docker container allows changes to settings files to propagate without an explicit restart while you test things out. Just an option
Check this video to learn how to re-write these tests with Pytest!
ua-cam.com/video/pdatgYDXmSE/v-deo.html
Tests are a great bonus!
Thanks!
Thanks a lot for this great Django course 🤩. Please make a video about async ORM and async views in Django, and how we should integrate Django ORM with our views and when we should use it. This is content that I don't see any good sources for.
Thanks! Great suggestion, will do so in the future.
This is really informative. Thanks for sharing.
Thanks very much, glad it was helpful!
1:31 Could we do some vids on strategies for updating data of a production site? How best do we change a large portion of our data (80%) without affecting performance?
I think that'd be interesting, for sure - I'll have a look into it. Thanks!
Excellent tute as usual. If you could look into manually rendering inlineformsets with , that would be a hit.
Thanks! I'll have a think about that one.
Good job. You could add also pytest example..
Thanks! I'll add a quick follow up video for the pytest example.
Great vid, thanks! I would also love a video about both using and creating webhooks... Pleeeeezzz....😁
Haha great suggestion. I'll have a look at webhooks in the near future.
Another amazing video!
When checking if a variable has been set in settings, do you usually use if settings.MAINTENANCE_MODE or if hasattr(settings, 'MAINTENANCE_MODE ') and settings.MAINTENANCE_MODE is not None? Which is best practice to use?
Thanks Peter!
Your example there is a better suggestion, for sure.
Use hasattr(settings, 'MAINTENANCE_MODE') and settings.MAINTENANCE_MODE is not None - to ensure that the value is defined in the settings before accessing it.
good thank
Thanks for watching!
thank you!
Thanks!
Make video about integrating django with ML
Thanks 👍
Thanks for watching!
Would it be possible to do this without restarting the server? For example reading the value from cache in the middleware or at this point it's just easier to do it with nginx or something. Very cool video gave me tons of ideas to test out myself. :) much love
Just run django inside a docker container
@@georgejoseph2601 how would running a docker container prevent the need to restart the webserver? im not talking about the whole linux server my dude
Thanks for the comment!
You could indeed set this value in the database or the cache, and the Middleware could read the value from that source instead of just the settings.
The MAINTENANCE_MODE value could then be updated via the Django Admin or some other mechanism. With that setup, no need to stop/restart the server, I don't think!
@TheNerdyPlayer running Django within a slim python/alpine docker container allows changes to settings files to propagate without an explicit restart while you test things out. Just an option
When you doing a video on `django-components`?
Preparing it now! Just ironing out a few details but it should be out this month.