Posts by Matheus Sant'ana • 125 points
9 posts
-
0
votes1
answer191
viewsQ: Request Reverse Post Office API
I am trying to use the Post API to perform the reverse posting method. I am using the following link to access this method: http://webservicescol.correios.com.br/ScolWeb/WebServiceScol?wsdl Whenever…
-
0
votes1
answer355
viewsQ: Functioning Chained List
I’m trying to implement a chained list scheme in Python and was debugging the code to better understand how it works. I’m curious about some things. The code I’m implementing is as follows:: class…
-
0
votes3
answers892
viewsA: Required field modification if checkbox is selected in Django
The views.py file is like this: def config_view(request): if request.method == "POST": form = SellsForm(request.POST, initial={'client': request.user.username}) if form.is_valid(): form.save()…
-
0
votes3
answers892
viewsA: Required field modification if checkbox is selected in Django
Now I have the following Forms.py file: class SellsForm(forms.ModelForm): client = forms.CharField(widget=forms.TextInput( attrs={'type': 'hidden'})) yn_choices = (('Sim', 'Sim'), ('Não, emissão…
-
0
votes1
answer49
viewsA: I can’t access a url, either fully or by Slug
Have you tried using the path instead of the url? It’s much simpler to write, for example: from django.urls import path urlpatterns = [ path('', views.random_view, name="random"), ] You can also…
-
0
votes3
answers892
viewsQ: Required field modification if checkbox is selected in Django
I need to check if a "checkbox" button, called yes_no, was selected in my html page and modify the "name" field to mandatory when this checkbox is triggered. My code is this: In the models.py file:…
-
0
votes2
answers1120
viewsA: How to keep zero left on import in Python?
Try to import directly from excel, use this line of code you will not lose any value: import pandas as pd seu_dataframe = pd.read_excel('nome do seu arquivo .xlsx')
-
0
votes2
answers2160
viewsA: How to install Pip for a particular version of Python?
Maybe your problem is solved on this site: https://github.com/Langoor2/PokemonGo-Map-FAQ/wiki/%27python--Pip%27-is-not-recognized-as-an-Internal-or-External-command,-operable-program-or-batch-file.…
-
1
votes0
answers43
viewsQ: Excel is crashing when using xlwings
I’m using python with excel through the xlwings package. The problem is that excel stops working whenever I try to import a function in the xlwings tab. I already restarted the pc, but the problem…