I have found the diffuclty on connection to the database.

I have some problem like if i run the python file directly,because i have read the excel file which contain user creditional and store in the database,so i need to connection to the database,please help me because i have found the diffuclty to do this .
You already invited:

Felix

Upvotes from:

you really should follow a tutorial instead of asking people for help with each new error. What you do when starting with Django is the following:
  1. Declare the connection properties for your database (SQLite, MySQL, PostgreSQL etc)
  2.  Connect to your database
  3. Make requests to your database to pull or write data


Since you are starting with Django, you should learn how to use the ORM for collecting data from your DB instead of writing the connection data explicitly. This is because Django's native ORM handles a lot of the SQL under the hood and using the ORM provides an additional security layer to protect your database

If you wanna answer this question please Login or Register