add comments and pep8, add div element to html files

This commit is contained in:
2019-06-19 12:50:25 +02:00
parent 9c9c5dd437
commit 31ffc9e154
19 changed files with 52 additions and 12 deletions

View File

@@ -4,6 +4,8 @@ import cherrypy
class create(object):
@cherrypy.expose
def index(self):
''' Method for open specific html file
and change it'''
with open('templates/create.html') as fh:
index_f = fh.read()
result = index_f.format(_title='create_strana', _heading='create')