* Okay but that means that you're going to have to update your code for
every package in the world ... Or at least you could let maintainers paste
the install code into their own AppConfig and have indject read setup code
from there
Correct. It would be *ideal *if the package's author used AppCon
Sent with [ProtonMail](https://protonmail.com) Secure Email.
‐‐‐ Original Message ‐‐‐
Le vendredi, juillet 24, 2020 7:01 PM, David Rashty
a écrit :
> Nice! And thanks for sharing! I like this idea too. Why did you include "if
> settings.DEBUG" by the way?
For the sake of the example
Nice! And thanks for sharing! I like this idea too. Why did you include
"if settings.DEBUG" by the way?
I still think injecting code explicitly has certain advantages:
* I believe AppConfig approach could be implemented in apps.py by the
package author. If they chose not to write their package
About your package, I wouldn't have gone "injecting code" in settings, but
rather leverage the entry points packaging feature or at least the AppConfig
feature.
class DJDTConfig(AppConfig):
def setup(self, settings):
if settings.DEBUG:
settings.MIDDLEWARE.append('debug_toolbar.middleware ...')
There is https://gitlab.com/nerdocs/gdaps
There has been discussion about this in the past about app auto-configuration
(a feature CakePHP has):
https://groups.google.com/g/django-developers/c/Lr4br0OzMQE/m/41hP7kaTAQAJ
--
You received this message because you are subscribed to the Google Grou
Thanks Kacper!
The Github README.md should be complete and up to date now. I hope this
project gets some traction. I put a lot of time into it and could use help
writing installation files for the most common 3rd party Django packages
e.g., django-allauth, django-filter, etc.
If anyone here
Hey!
Back in the day, like 2017 or something, I was using Ansible tool for such
things. As far as I know (unfortunately I don't work on Django projects on
daily basis today) now it's pretty standard to set up a project once, and
later just use Docker for a unified dev environment.
I've starred yo