Re: how to retrieve data from database using raw SQL not django ORM

2019-10-14 Thread Kanyamahanga Hubert
Your error message is pretty clear. Change a little bit your urls.py to take pk keywords like this: path("events//",getEvents,name = "getEvents"), On Mon, 14 Oct 2019 at 07:53, Kasper Laudrup wrote: > Hi Leb Dev, > > On 14/10/2019 08.28, leb dev wrote: > > > > once i tried to perform the task

Re: how to retrieve data from database using raw SQL not django ORM

2019-10-14 Thread Kasper Laudrup
Hi Leb Dev, On 14/10/2019 08.28, leb dev wrote: once i tried to perform the task the system crash and display: getEvents() got unexpected keyword argument "id > That error message is pretty clear. Look at your getEvents() function. It doesn't take a keyword argument, while in your urls.

how to retrieve data from database using raw SQL not django ORM

2019-10-13 Thread leb dev
0 I have a django project that is connected to SQL server database and when i tried to click button to retrieve data from the database the system crash . i am trying to convert the below syntax in ORM into raw sql: dbEntry = Person_.objects.get(pk =pk) Note : *I am not using ORM* once i trie

Re: Retrieve data from database by taking user input data.

2019-02-02 Thread Derek
Using the `render` method or, failing that `redirect`, after the data from the results of your query have been collated. Without actual code , its hard to help you further. On Friday, 1 February 2019 21:05:28 UTC+2, Surajeet Das wrote: > > I have been trying to write a query to retriev

Retrieve data from database by taking user input data.

2019-02-01 Thread Surajeet Das
I have been trying to write a query to retrieve data from database by taking input from user . But the problem I am facing is after the input is given , the page does not get refreshed to another page, rather it refreshes to the same page again. Help me on this. -- You received this message

Re: Retrieve Data from Database

2012-07-24 Thread Daniel Roseman
On Tuesday, 24 July 2012 08:00:02 UTC+1, Madhu wrote: > > Hi! > I am new in django, i want to get the table from one table also want the > some content from another table. > Can anybody tell me how it should be done? > > My module class structure is as below > > class A(models.Model): > name

Retrieve Data from Database

2012-07-24 Thread Madhu
Hi! I am new in django, i want to get the table from one table also want the some content from another table. Can anybody tell me how it should be done? My module class structure is as below class A(models.Model): name =models.CharField(max_length=100) content = models.CharField(max_len