This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @pages_app.get('/:page') | |
| @pages_app.get('/<section:re:(section|another-section)>/:page') | |
| def simple_page(page, section=None): | |
| page_id = request.path.strip('/') | |
| page = Page.get_latest(page_id) | |
| if not page: | |
| return abort(404, "Page not found") | |
| try: | |
| return template('%s.html' % page_id, page=page) | |
| except TemplateError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get update | |
| apt-get install build-essential python-dev libxml2-dev | |
| apt-get install nginx | |
| /etc/init.d/nginx start | |
| SETUP GIT REPOSITORY | |
| ~~~~~~~~~~~~~~~~~~~~ | |
| adduser git |