Export table created in Views to a CSV with a button

2023-01-09 Thread Tristan Tucker
Hello, I have built a view that takes in dataframes, runs them through a function and then ultimately pumps out a results dataframe that is transformed into a HTML object and displayed on the webapp homepage. Now, I am trying to add in an "Export as CSV" button that upon being clicked will

Django REST Framework (DRF) Cheat Sheet

2023-01-09 Thread Manuel
Hello, I created the Django REST Framework (DRF) Cheat Sheet and the community feedback will be greatly appreciated. Please feel free to read them and let me know if you have any feedback :) Regards, --

Re: Discount condition in to if statement

2023-01-09 Thread Abdulrahman Abbas
Your image is not clear On Mon, Jan 9, 2023, 18:07 Abdeen Warsi wrote: > Hi, > Myself Abdeen, I am working on Braze CRM for Email marketing as frontend > developer for HTML email. > could you help me to complete if statement. > I need to display those products into my html who have discount

Discount condition in to if statement

2023-01-09 Thread Abdeen Warsi
Hi, Myself Abdeen, I am working on Braze CRM for Email marketing as frontend developer for HTML email. could you help me to complete if statement. I need to display those products into my html who have discount more than 5%. {% if {{response.products[id].offers[0].stores[0].price.discount}} %}

Re: How to solve primary key error in django?

2023-01-09 Thread Derek
Also understand that using '0' for a primary key is NOT recommended by MySQL; look at: https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_auto_value_on_zero This has bitten me before when migrating data from other types of DBMS. On Thursday, 5 January 2023 at 12:09:35 UTC+2