Option | Default |
---|---|
which database will be used ? | kirbybase |
where do the databases stand in the filesystem ? | in the same directory as the configuration script |
how is the users database called ? | the same as the main database + '_users' |
what are the fields in the users database ? | ['login:str','password:str'] |
If you want to change these options, you add new variables in the configuration file :
dbmodule
: a string to specify the module used for the database. Currently, must be one of gadfly, kirbybase
or sqlite
. Obviously, the matching modules and database engine must be installed on your machine
data_directory
: the directory where the databases will be stored. For security reasons it is a good idea to choose one that can't be accessed directly through Karrigell (the users database is stored in the clear)
users_name
: the name of the users database
users_fields
: the fields in the users database, with the same format as the fields
for the main database. These fields must include 'login:str'
and 'password:str'
Change the configuration file like this (you must change the data_directory
to a valid path in your filesystem) :
Notice that the field for the student's class is written klass
instead of class
, because class
is a Python keyword
If you go back to the web site, you will notice that when you want to add a new user the form will have changed with the new fields you have specified :
That's all for the moment. You can now take a look at the complete documentation to know more about Karrigell