slowly changing to python CMS

This commit is contained in:
JesseBot 2016-01-03 21:04:38 +00:00
parent aaf7b57866
commit ad6d5c4cdf
5 changed files with 28 additions and 13 deletions

View file

@ -5,6 +5,6 @@ Basic bottle driven website with a bootstrap frontend.
Configuration stored in confg/config.yaml.sample
The website is located at http://jessebot.com
The website this is based off of is located at http://jessebot.com
The socket file (CentOS/RHEL) is in /var/run.
The socket file (CentOS/RHEL) is in /var/run

View file

@ -8,6 +8,6 @@ sys.path.append(os.path.dirname(__file__))
# ... build or import your bottle application here ...
# Do NOT use bottle.run() with mod_wsgi
import jessebot
import web_routes
application = bottle.default_app()

View file

@ -22,7 +22,7 @@ Globals:
# Boolean, if set to True, will generate new panel with below info
optional_panel: True
# this could be social media, other conent, whatever suits you!
optional_panel_title: "Linux Newbie Class"
optional_panel_image: "penguin_copy.png"
optional_panel_link_title: "How To Unix/Linux"
optional_panel_URL: "http://howtonix.info/"
opt_panel_title: "Linux Newbie Class"
opt_panel_image: "penguin_copy.png"
opt_panel_button_text: "How To Unix/Linux"
opt_panel_URL: "http://howtonix.info/"

13
example.com.conf Normal file
View file

@ -0,0 +1,13 @@
<VirtualHost *:80>
ServerName example.com
ServerAdmin example_user@gmail.com
WSGIDaemonProcess example_process_name user=example_user group=example_group processes=1 threads=5
WSGIScriptAlias / /path/to/web/root/adapter.wsgi
<Directory /path/to/web/root>
WSGIProcessGroup example_group
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

View file

@ -39,15 +39,17 @@ def index():
resume_pdf_download_URL = get_global_variable('resume_pdf_download')
resume_docx_download_URL = get_global_variable('resume_docx_download')
optional_panel = get_global_variable('optional_panel')
optional_panel_title = get_global_variable('optional_panel_title')
optional_panel_pic = get_global_variable('optional_panel_image')
optional_panel_button_text = get_global_variable('optional_panel_link_title')
optional_panel_button_URL = get_global_variable('optional_panel_URL')
return template('index', favicon=favicon, tab_title=tab_title,
main_pic=main_pic, name=name, header_quotation=header_quotation,
optional_panel_title = get_global_variable('opt_panel_title')
optional_panel_pic = get_global_variable('opt_panel_image')
optional_panel_button_text = get_global_variable('opt_panel_button_text')
optional_panel_button_URL = get_global_variable('opt_panel_URL')
return template('index', favicon=favicon,
browser_tab_title=browser_tab_title, main_pic=main_pic,
name=name, header_quotation=header_quotation,
GitHub_URL=GitHub_URL, gdoc_URL=gdoc_URL,
resume_pdf_download_URL=resume_pdf_download_URL,
resume_docx_download_URL=resume_docx_download_URL,
optional_panel=optional_panel,
optional_panel_title=optional_panel_title,
optional_panel_pic=optional_panel_pic,
optional_panel_button_text=optional_panel_button_text,