add templates and modules + connect to load pages using url (/section/)..TODO: comments and PEP8
This commit is contained in:
10
main/modules/create.py
Normal file
10
main/modules/create.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import cherrypy
|
||||
|
||||
|
||||
class create(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
with open('templates/create.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='create_strana', _heading='create')
|
||||
return result
|
||||
Reference in New Issue
Block a user