Posts by malves1982 • 46 points
4 posts
-
0
votes1
answer62
viewsA: How to make a date Slug?
You can use the function strptime library datetime. Your code would look something like: from datetime import datetime def home4(request, data): data= '2018-06-11' data = datetime.strptime(data,…
-
2
votes1
answer246
viewsA: Dropdown with dynamic options in Django form
Taking into account that the Model of AccountPlan is set within an application your call units within the same database, you would need to do the following in your forms.py: from django import forms…
-
0
votes1
answer111
viewsA: Save report to Django Excel with filter
You’re taking all the model records Alocar why are you using .all() in his Queryset in: rows =…
-
0
votes1
answer96
viewsA: Python update on Debian
You can manually install through an official channel. Follow the link to update python3.7 to python3.8 in debian 10. https://linuxize.com/post/how-to-install-python-3-8-on-debian-10/ Personally I do…