Posts by José Augusto • 61 points
8 posts
-
1
votes3
answers354
viewsA: How to hide sensitive information in Django?
You can use python-decouple, with it it is possible to insert the data in Settings.py.. pulling data from an external file . env or . ini in which you declare constant strings as in the example…
-
0
votes2
answers146
viewsA: How do I apply a python/Django filter
Now I understood then just follow this example class FilterPessoa(FilterSet): pessoa = django_filters.CharFilter(lookup_expr='icontains') class Meta: model = Carro fields ={ 'pessoa': [exact,…
-
0
votes1
answer72
viewsA: Change boolean Django
I believe that the easiest way to make this change would be via javascript, but you need to see how your form is sent.
-
0
votes2
answers146
viewsA: How do I apply a python/Django filter
In the logic you’re using. This class is used as follows. class FilterPessoa(FilterSet): pessoa__nome = django_filters.CharFilter(lookup_expr='icontains') class Meta: model = Carro fields =…
-
0
votes1
answer72
viewsA: Django HTML does not update in browser
Maybe, you need to make a correct note in your Settings in the TAG TEMPLATES follows mine as an example: > TEMPLATE_DIR = os.path.join(BASE_DIR, "templates") > TEMPLATES = [ > { >…
-
0
votes3
answers208
viewsA: How to configure Settings.py to use Django-tenant-schema?
Loginbd must have auto_create_schema = True? This option should serve for after saving the registration it create all database structure, by default is True. On the website of Django-tenant-schema I…
-
2
votes3
answers208
viewsA: How to configure Settings.py to use Django-tenant-schema?
Hello I don’t know if it’s exactly the answer you expect. You will need to adapt your entire project. I initially use Django-tenant-schemas(not Django-tenant) and Django-tenant-users, create a Model…
-
0
votes2
answers323
viewsA: problem with uppercase in Django
If you wanted to, you can also use the clean function in models.py so you don’t have to overwrite the save function. class Requerente(models.Model): nacionalidade =…