Re: Use previously requested data in another request

2021-12-04 Thread Lalit Suthar
tried to look into the docs but couldn't find a reason. you can go through this page to find out any possible reason https://docs.djangoproject.com/en/dev/topics/http/sessions/ On Fri, 3 Dec 2021 at 23:19, kayhan wrote: > Thanks but I did not change the settings. > And to test, SESSION_COOKIE_AG

Re: Use previously requested data in another request

2021-12-04 Thread kayhan
Thankyou 🙏 On Sat, Dec 4, 2021 at 11:33 AM Lalit Suthar wrote: > tried to look into the docs but couldn't find a reason. > you can go through this page to find out any possible reason > https://docs.djangoproject.com/en/dev/topics/http/sessions/ > > On Fri, 3 Dec 2021 at 23:19, kayhan wrote: >

Get data from table rows and save in database

2021-12-04 Thread Eugene TUYIZERE
Dear Colleagues, I have data in the table. I want to get the rows value and save them in the database. How can I do this with jquery? The table I have is like this [image: image.png] This is what I have in HTML. The total is automatically calculated as I type the amount Description Amount Sc

Re: Get data from table rows and save in database

2021-12-04 Thread Jet Ezra
STEPS 1. You will add a name attribute to all your input fields. 2. Add the crsf_token django template in-built filter to support 'POST' 3. Change your form's method to 'POST' 4. Add an action attribute and set it to your view 5. Then the JQUERY part will be as follows 6. Don't forget to give your

Re: Get data from table rows and save in database

2021-12-04 Thread Fredrick Ekoma
what is your product On Sat, 4 Dec 2021, 11:17 am Eugene TUYIZERE, wrote: > Dear Colleagues, > > I have data in the table. I want to get the rows value and save them in > the database. How can I do this with jquery? > The table I have is like this > [image: image.png] > This is what I have in HT

static files not getting served

2021-12-04 Thread Rahul
hey guys am using default database i.e. SQL Lite3 but when i deploy it on heroku my static files are not getting served . Please suggest what should i do?? should i use postgres ??? Please HELP -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Get data from table rows and save in database

2021-12-04 Thread ram s
use name attribute in site input tag... On Sat, Dec 4, 2021 at 3:47 PM Eugene TUYIZERE wrote: > Dear Colleagues, > > I have data in the table. I want to get the rows value and save them in > the database. How can I do this with jquery? > The table I have is like this > [image: image.png] > This

Re: static files not getting served

2021-12-04 Thread Kasper Laudrup
On 04/12/2021 10.52, Rahul wrote: hey guys  am using default database i.e. SQL Lite3 but when i deploy it on heroku my static files are not getting served . Please suggest what should i do?? You should tell us some relevant details, e.g. how you are deploying your project, any error message

Re: static files not getting served

2021-12-04 Thread 'Mr. Aryan Sharma 4-Year B.Tech. Computer Science and Engineering' via Django users
At static files url at urls.py. And make a seperate directory for media root as well. Of your settings are correct project will get pushed . Then you ensure you have migrated from the console at heroku website On Sat, 4 Dec, 2021, 8:55 pm Rahul, wrote: > hey guys am using default database i.e

DateField and TimeField rendered as textfield in Django

2021-12-04 Thread Vishal Pandey
Hi everyone, Whenever we use DateField and TimeField, django renders its html input field type as text. I know it could be changed by customising the attributes in form class, but why is not by default. I am also aware of the fact that date and time are supported by almost all browsers but not d

Re: How to get a variable from an ajax request and use it in another application in Django?

2021-12-04 Thread David Nugent
There's a little more to handling session data than what you have there (unless code is missing?). IIRC you need to set `session.modified = True` in order to persist the data. Where are you serialising the session data? db, redis .. ? Regards, David On Fri, Dec 3, 2021 at 11:00 PM kayhan wrote