added example for static html files
This commit is contained in:
parent
aef007e4d6
commit
c6b1538732
2 changed files with 18 additions and 0 deletions
14
wortschlucker/templates/static_test.html
Normal file
14
wortschlucker/templates/static_test.html
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||||
|
xmlns:py="http://genshi.edgewall.org/">
|
||||||
|
<xi:include href="layout.html" />
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Static example</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Foo</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -314,6 +314,10 @@ def show_one_poll(poll_hash=None):
|
||||||
else:
|
else:
|
||||||
return bobo.redirect(BASE_DICT["base_url"])
|
return bobo.redirect(BASE_DICT["base_url"])
|
||||||
|
|
||||||
|
@bobo.query('/static/:pagename')
|
||||||
|
def show_static(pagename=None):
|
||||||
|
value_dict = get_default_values()
|
||||||
|
return render(pagename, **value_dict)
|
||||||
|
|
||||||
for table in (Poll, ContentSubmission, PollSetting):
|
for table in (Poll, ContentSubmission, PollSetting):
|
||||||
#Poll.dropTable()
|
#Poll.dropTable()
|
||||||
|
|
Loading…
Reference in a new issue