Re: Model icons

2023-02-22 Thread Brice Parent
Hello! Really useful idea, I think! 2 points about it: 1. Syntax I would also remove the html from the models, but probably in this way: class Hammer(models.Model):     ...     Meta:         icon = ModelIcon("") There would be something like ModelIcon.as_html(self, model_name:str) ->

Re: dynamically added INSTALLED_APPS

2023-02-22 Thread Jörg Breitbart
Am 21.02.23 um 22:05 schrieb Christian González: My original question was HOW would I implement this in a "good-practice" way, by not violating Django's conventions, and showing a way it could be done clean. I think thats not really feasible without big restrictions on the apps and what

Re: suggestion for open source contribution

2023-02-22 Thread Durval Carvalho
Hi Sanat, Welcome to the open-source community! It's great to see you interested in contributing to Django. Here are some suggestions on how to get started: 1. Check out the Django Contributing Guide: https://docs.djangoproject.com/en/stable/internals/contributing/. This

suggestion for open source contribution

2023-02-22 Thread Sanat Pawar
Hi Everyone, I hope you all are doing great. I am sanat pawar from MITWPU, pune I am new to open-source contribution. So can anyone help me in my first contribution by suggesting how to approach the good first issue and is it compulsory to set to project in the local environment and other basic

Re: decouple import config

2023-02-22 Thread Anurag Chauhan
Try *pip install python-decouple*, and then run your program again. On Wednesday, February 22, 2023 at 7:38:43 AM UTC+5:30 Taufiq Subijantoro wrote: > from decouple import config > ImportError: cannot import name 'config' from 'decouple' >