I have a DJ ango app that works with .csv files in the form of a database, in these files I have a system Users are (i can not change this), I need to implement security (a login) in the site. Any ideas?
Your question is very vague and you have not asked for special, so here's a normal one to do Will be required, its observation.
If you want to use the built-in of the dango, you have to prepare the database; Even if it's SQLite, after setting up a database, run manage.py syncdb to create the required authentication table (by default,
settings.py which creates DJGengo, There is already a setup for the authentication system, so you do not have to make any other changes).
Once you have this work done, you have to write a consistency to load users from the
csv file in the authentication table, you can read it in the document under it. .
Now you're ready to set up passwords and permissions. Your next task will be to ensure that the CSV file is in synchronization with authentication tables if there is a change in any CSV file.
No comments:
Post a Comment