Default database.py and globalvar.py configuration

This commit is contained in:
Dita Aji Pratama 2024-06-17 12:25:47 +07:00
parent bd31213bdf
commit 24a5c602a3
2 changed files with 36 additions and 0 deletions

8
app/config/database.py Normal file
View File

@ -0,0 +1,8 @@
db_main = {
'host' : 'localhost',
'user' : 'root',
'password' : '',
'database' : 'your_db',
'port' : 3306,
'autocommit' : True,
}

28
app/config/globalvar.py Normal file
View File

@ -0,0 +1,28 @@
title = "CostaPy"
menu = {
"public": {
"navbar": [
{
"name":"Home",
"target":"_self",
"href":"/",
"roles":["guest"]
},
{
"name":"About",
"target":"_self",
"href":"/about",
"roles":["guest"]
},
{
"name":"Docs",
"target":"_blank",
"href":"https://costapy.ditaajipratama.net",
"roles":["guest"]
}
]
}
}
copyright = "Copyright (C) 2022 Dita Aji Pratama"