Re: Best digital ocean plan for a production server

2022-07-10 Thread Ryan Nowakowski
Ram, It depends. How many http transactions per second are you expecting? What database are you using? Based on your estimated http TPS, how many database queries per second are you expecting? What percentange of those database queries are read vs write? - Ryan N On Sat, Jul 09, 2022 at 09:2

Re: INSTALACION PYTHON / DJANGO EN DEBIAN

2022-07-10 Thread Miguel Ángel Cumpa Ascuña
Hi sudo apt install python3-pip sudo pip3 install --upgrade pip sudo pip install django El sáb, 9 jul 2022 a las 12:44, GLIBERT CERTAD () escribió: > Estimados, buenas tardes. Hasta ahora he trabajado con Python y Django en > Sistema Operativo de Windows. Pero por razones labrales, he iniciado un

Re: Static Code analysis and Security Scanning tools for Django Web Applications

2022-07-10 Thread Ram
Hello Christian, Thank you for your suggestion. I see Bandit in the supported tools in Prospector: https://prospector.landscape.io/en/master/supported_tools.html , but not finding bugbear. We will try to add Bandit and see. Best regards, ~Ram On Fri, Jul 8, 2022 at 9:27 AM Christian Ledermann <

AttributeError at /invoice/add_invoice/ 'int' object has no attribute '_meta' while using in_bulk

2022-07-10 Thread Kiran Chavan
I want to convert the model instances into a JSON object and then pass it to the HTML file. However, I get an AttributeError at this line: `data = serializers.serialize("json", Inventory.objects.in_bulk())` The full `views.py`: def add_invoice(request): form = InvoiceForm(request.POST

Uncaught TypeError: data.find is not a function

2022-07-10 Thread Kiran Chavan
I am trying to convert the model instances into a JSON object and then according to the value selected in the dropdown menu, I want to assign its amount to the `line_one_unit_price` text field in the form. Javascript code: {{ data|json_script:"hello-data" }} const data = JSON.