Minor change

This commit is contained in:
Dita Aji Pratama 2024-01-13 11:57:50 +07:00
parent a26927848f
commit 39b01c5280
4 changed files with 16 additions and 19 deletions

View File

@ -1,7 +1,7 @@
main_db = { main_db = {
'host' : 'localhost', 'host' : 'localhost',
'user' : 'root', 'user' : 'root',
'password' : '', 'password' : '',
'database' : 'your_db', 'database' : 'your_db',
'autocommit' : True, 'autocommit' : True,
} }

View File

@ -1,10 +1,10 @@
import cherrypy import cherrypy
import json import json
import config.directory as directory import config.directory as directory
import templates.basic_bootstrap.main as basic_bootstrap import templates.bare.main as bare
import modules.public.home as public_home import modules.public.home as public_home
@cherrypy.tools.accept(media="application/json") @cherrypy.tools.accept(media="application/json")
class handler(): class handler():

View File

@ -1,8 +1,5 @@
from mako.template import Template from mako.template import Template
import mysql.connector as mariadb import config.globalvar as globalvar
import config.database as database
import config.globalvar as globalvar
class main: class main:

View File

@ -1,9 +1,9 @@
<div class="container-fluid my-3"> <div class="container-fluid my-3">
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<h1>Welcome</h1> <h1>Welcome</h1>
<h3>This is your first pages</h3> <h3>This is your first pages</h3>
<p>${greeting}</p> <p>${greeting}</p>
</div>
</div> </div>
</div>
</div> </div>