Posts by Leonardo Nascimento Cintra • 175 points
22 posts
-
1
votes0
answers122
viewsQ: Heroku - Sharing databases across applications
I created a Python/Django app and published it in Heroku. (My database) Now I have a Java/Spring Boot API that is also in Heroku. (Rest API) But it connects in the base created by Django which is…
-
1
votes0
answers242
viewsQ: Django Admin football game registration
Help me please. I’m learning Django. I have a website that registers games from my hometown. It follows example to understand doubt: Championship: Vacation 2017 Has 2 groups (Group 1 and Group 2) I…
-
0
votes1
answer290
viewsQ: Sequelize Migrate - Error: Typeerror: defineCall is not a Function
Hello I’m doing a simple championship API, I used the Sequelize as ORM for my database. I created the Arbitro table that had only the NAME field and did not have the CPF field in the table. I had to…
-
1
votes1
answer140
viewsA: Reportlab in Heroku - Word error with accent
I found the answer The mistake was in the filename that is, is how will "call" the file Voce will download in PDF BEFORE def gerar_laudo(request, laudo_id, paciente_id): filename =…
-
0
votes1
answer140
viewsQ: Reportlab in Heroku - Word error with accent
I’m generating reports with reportlab But when there are words accentuated, I’m taking 500 Internal Server Error in the Heroku. Localhost works just fine. I tried the next one didn’t work out…
-
1
votes1
answer697
viewsA: Render items with Django Forms. Three Models involved, unico Forms
My friend Lucas Magnum (luizalabs.com) helped me. The code of the model.py remained the same. Follow the rest of the code Here’s how the code came out: We had to create a "Form" forms.py class…
-
0
votes1
answer697
viewsQ: Render items with Django Forms. Three Models involved, unico Forms
Hello, I’m having doubts to render my model’s items. The system works as follows: User taking an exam Exame. Within each exam has the types of exam ItemExame User generates a report Laudo that pulls…
-
0
votes1
answer104
viewsQ: Queryset model Category, Product and Productimage
Hello, help me assemble this queryset. Briefly the model model.py class Category(models.Model): name = models.CharField('Nome', max_length=100) slug = models.SlugField(max_length=100, unique=True)…
-
0
votes1
answer197
viewsQ: Reportlab - Python - Doubt with date writing (date)
Guys I’m having doubts in the reportlab. Python 3 Application / Django I have a model Pessoa that contains a field data de nascimento who’s kind DateTimeField. I’m trying to write the date of birth…
-
0
votes1
answer228
viewsA: Error in API Rest POST - Windows Forms
I found the error of the 500. the address was like this: HttpResponseMessage response = await client.PostAsJsonAsync("/emitente", emitente); I thought passing the URL on client.BaseAddress with the…
-
0
votes1
answer228
viewsQ: Error in API Rest POST - Windows Forms
I’m trying to register (POST) this endpoint https://geradornf-prod.herokuapp.com/ (is a Simple API I made with Django Rest) I’m using Windows Forms C# Follow the call: using (var client = new…
-
1
votes3
answers3666
viewsA: Connect Mysql C#
Hello. First you need to download the Connector/Net (since you are using ADO) Import using MySql.Data.MySqlClient; Soon you can do something like this See the Code below: //define o dataset mDataSet…
-
0
votes1
answer93
viewsQ: CSS error - Django Formfield
This is giving the following error in my Django 1.9 form See that on the label gets the :> in the end. I DON’T WANT TO SEE THE LARGER SIGN (>) AT THE END OF THE LABEL Ex: Nome: > Follow my…
-
1
votes1
answer104
viewsQ: Django and Cloudinary error - can’t use the string Pattern on a bytes-like Object
I’m trying to make a simple app: I made the tutorial of Django Girls and now I’m trying to use the same including also an image using the Cloudinary But I’m having the following mistake: Error…
-
1
votes2
answers784
viewsA: Visual Studio 2015 Hangs and not back when accessing cshtml page and inserted "<"
If it is Windows 10, it may be a bug in the OS itself. Fixed the problem when I formatted my computer. If last case does not work, I suggest format the computer. Before, see if you have any updates…
-
2
votes1
answer574
viewsQ: Error with Flask Babel Python3 app (Windows)
I’m following the article tutorial http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iii-web-forms/page/3#comments I got to part three and made that mistake. I’m confused because the…
-
1
votes1
answer167
viewsQ: Deploy Windowsforms with bank . mdf
I made a program in Windows Forms (C#) in layers. Model DAO BLL Interface Create a Database (Generator.mdf) in the Model Project and its Context (edmx). Now I want to publish, and how do I get the…
-
1
votes2
answers5622
viewsQ: Access denied when updating PIP
I am running the following command at the Windows prompt pip install --upgrade pip And I’m getting a mistake: Permissionerror: [Winerror 5] Access denied: 'd: Leonardo python Django-treinaweb env…
-
0
votes1
answer178
viewsA: Error installing Heroku Toolbelt on Windows
I completely removed Mysql from the machine and it worked.
-
1
votes1
answer178
viewsQ: Error installing Heroku Toolbelt on Windows
Somebody can help me? I downloaded Heroku Toolbelt on the Heroku.com website but it’s making this mistake. It speaks "Mysql" ... Is it some configuration in the environment variables?…
-
1
votes2
answers1489
viewsQ: Asp Classic - Keep option select apos post on page
Guys, I need some help. I have the following select HTML Techo <select id="lstTransacao" name="lstTransacao"> <option value="null">Todos</option> <option…
-
2
votes3
answers359
viewsQ: Monetary unit with JSON
I’m getting from the JSON a currency format as follows "Preco" : "2299.0000" It appears in my form (ASP Classic / HTML): R$ 22.990.000,00 How to do this treatment? You have to use JS? The correct…