how to run a function from a link withing popup modal bootstrap with django

2019-10-14 Thread leb dev
I have a django project that includes a popup modal where the modal has tabs as links one of these tabs once the user clicked it must perform a function and retrieve data from the database. The problem is that once the user clicked the tab nothing happen as is the function isn't initialize.

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

2019-10-14 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

django print all record in the cmd but display the last one on template

2019-10-11 Thread leb dev
i have a function that retrieve data from sql server database where i am using **fetchall()** then for loop the retrieved data are all printed on the **cmd console** but when i tried to display these result on the template it **only display the last record**. views.py def

Re: HOW TO DISPLAY THE COLLAPSED DATA IN CARD using django and bootstrap

2019-09-28 Thread leb dev
js and bootstrap files are loaded correctly. On Saturday, September 28, 2019 at 10:56:41 AM UTC+3, leb dev wrote: > > I have a django project that includes cards where each card contains a > collapse that will hide or show the data. > > Problem is once i do a **foreach loop** t

HOW TO DISPLAY THE COLLAPSED DATA IN CARD using django and bootstrap

2019-09-28 Thread leb dev
I have a django project that includes cards where each card contains a collapse that will hide or show the data. Problem is once i do a **foreach loop** the cards appear but the collapse is not working and doesn't display any data. I used the below steps: create function in views.py

Re: where is the error in pagination?

2019-09-25 Thread leb dev
t;> >> >> >> On Wednesday, September 25, 2019 at 2:39:16 PM UTC+3, laya Mahmoudi wrote: > > Would you send your html codes relating to pagination > > در تاریخ چهارشنبه ۲۵ سپتامبر ۲۰۱۹،‏ ۱۵:۰۳ leb dev > نوشت: > >> i tried your answer and display a

Re: where is the error in pagination?

2019-09-25 Thread leb dev
i tried your answer and display an error : That page number is not an integer -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: where is the error in pagination?

2019-09-25 Thread leb dev
no i am using function based views -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web

where is the error in pagination?

2019-09-25 Thread leb dev
i have a django project and it includes pagination i do not know where is the error in my code but once i tired to go to the next or previous page it crash and display the below error : > can only concatenate str(not ""NoneType) to str query=request.GET.get("search")

how to use django pagination with sql query and not ORM

2019-09-24 Thread leb dev
I now how to use django pagination with ORM django after filtering the required data and put in into *pagination div* *queryset_list = employee.objects.all()* *query=request.GET.get("q")* *if query:* *queryset_list=queryset_list.filter(* *

How to retrieve data from MS SQL using wildcard with LIKE

2019-09-19 Thread leb dev
I have a django project that is connected to MS SQL using **pyodbc**. I am able to connect and retrieve data. But the problem is when i tried to filter the data on multiple fields using **WHERE & LIKE** the system crash crash and display the below error. > 'tuple' object has no attribute

how to use sql select query with pyodbc and django ?

2019-09-18 Thread leb dev
i have a django code that connect to sql server database and i am trying to select values using *like *but once i try it it crash and the system display the below error: ('The SQL contains 0 parameter markers, but 1 parameters were supplied', 'HY000') views.py from

how to pass user input into raw sql query ?

2019-09-06 Thread leb dev
i have a django project that is connected to sql server database i am trying to write a *select query * #convert the Django ORM into SQL query print("sql query = ",FilterQuery.query) *select * from table name where filed name = user input * *can anyone help me with this?* -- You

display vakues in table in template

2019-09-06 Thread leb dev
i have a django project that is connected to SQL Server i tried to retrieve data from the database. if i try to display all the data it run correct and display all the values. but if i try to display the data in an **html table** it doesn't display anything. views.py === def

how to display retrieved data from database using django

2019-09-05 Thread leb dev
i have a django project that is connected to SQL Server i tried to retrieve data from the database. if i try to display all the data it run correct and display all the values. but if i try to display the data in an **html table** it doesn't display anything. views.py === def

Re: help me to fix this issue with database connection

2019-08-29 Thread leb dev
yes i am on the same LAN and i am able to get remote connection and ping -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: help me to fix this issue with database connection

2019-08-29 Thread leb dev
yes i can get a remote connection with the server and i can do ping so its reachable. and about the port its the default port used to connect ms sql server 1433. isn't this right ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: help me to fix this issue with database connection

2019-08-29 Thread leb dev
i tried your answer also and did not work i do not know what is the problem and how to fix it -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: help me to fix this issue with database connection

2019-08-29 Thread leb dev
'Authenticate', # database name > 'USER': 'postgres', > 'PASSWORD': 'pwd', > 'HOST': 'localhost' > } > } > > I don't think you need anything other than this. For MySql you can use > mysql driver "*django*.*db*.*backends*.*mysql*". I hope

Re: help me to fix this issue with database connection

2019-08-29 Thread leb dev
': os.path.join(BASE_DIR, 'db.sqlite3'), } } On Thursday, August 29, 2019 at 8:34:17 AM UTC+3, leb dev wrote: > > i have a django project that need to be connected to MS SQL Server i am > using *pyodbc package.* > > *once i run the program the system display

help me to fix this issue with database connection

2019-08-28 Thread leb dev
i have a django project that need to be connected to MS SQL Server i am using *pyodbc package.* *once i run the program the system display the below error:* djago.db.utils.operationalError:('08001','[08001] [microsoft][odbc sql server driver]neither dsn nor server keyword supplied (0)

how to connect django with SQL Server ?

2019-08-27 Thread leb dev
i have a django project that need to be connected with MS SQL Server . Iam using pyodbc package in order to make the connection but the problem is that once i try it it crash and display the below error : djago.db.utils.operationalError:('08001','[08001] [microsoft][odbc sql server

Establish a connection between django and SQL Server using pyodbc

2019-08-27 Thread leb dev
I have a django project that make a connection between django and SQL server the problem is that once the system run it display the below error: > djago.db.utils.operationalError:('08001','[08001] [microsoft][odbc sql > server driver]neither dsn nor server keyword supplied (0) >