Closed dewangmodi closed 5 years ago
Why did you change the location of the js folder?
hey, the config variables will be better off in a separate python file config.py (That's the convention). And change the post route from '/' to something else. Change it in the front end too
I made the changes,post now occurs at /signup
I am not familiar with sql. What does export.sql do?
in sql database, i made a table called people which stores the information after signup. I also wrote a procedure in sql createUser. So I had to export the mysql database, which should be imported in your installation of mysql.
But can't all of these done with python itself?
I have redone the signup part from scratch. This requires mysql-connector https://www.w3schools.com/python/python_mysql_getstarted.asp Also, for local mysql, use correct username password
What is the use of the txt file?
it stores the definition of the table, kept it in txt file so it is easier to change if required There may be parts like limiting the number of characters, so it should be better this way If database doesn't exist, a database and table is created using txt file
@dewangmodi what happened to moving the js folder under static?
Hey, mind explaining what the PR does and how it does it? This is a good practice when you send a PR