Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

misc cleanups

  • Loading branch information...
commit f56c4ecb87f8a7ec8d845813ccd1ce43ae2979da 1 parent 2214726
Willem Jan Faber authored
View
32 README
@@ -4,4 +4,36 @@ Keywords: Flask, Git, Python, Jquery
For a live demo see http://dev.fe2.nl/
+--
+
+* Installing:
+
+Clone the repository into your DocumentRoot of Apache,
+and make sure the following options are in your Apache config.
+
+---
+<VirtualHost dev.fe2.nl>
+DocumentRoot /var/www/website/
+
+<Directory /var/www/website/>
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride All
+ Order allow,deny
+ allow from 127.0.0.1/255.0.0.0
+</Directory>
+</VirtualHost>
+---
+
+If you are using a Debian alike system, make sure you install:
+
+--
+sudo apt-get install libapache2-mod-proxy-html python-git
+--
+
+And check if the symlink to the module exists in your Apache setup.
+
+--
+cd /etc/apache2/mods-enabled
+ln -s ../mods-available/rewrite.load ./
+--
View
1  fe2_nl/index.py
@@ -7,5 +7,6 @@
def index():
return (render_template('index.html',
domain_prefix="dev.",
+ domain_suffix="fe2.nl",
description="Personal webpage Willem Jan Faber.",
keywords="Flask, Python, Jinja" ))
View
18 fe2_nl/templates/index.html
@@ -27,12 +27,30 @@
</head>
<body>
<a href="/changelog">changelog</a><br>
+
<a href="dotfiles/">dotfiles</a><br>
+
<a href="https://github.com/WillemJan/website">github</a><br>
+
+<a href="http://data.fe2.nl/">data.fe2.nl</a><br/>
+
{% block body %}
{% endblock %}
+<!-- Piwik -->
+<script type="text/javascript">
+var pkBaseURL = (("https:" == document.location.protocol) ? "https://fe2.nl/piwik/" : "http://fe2.nl/piwik/");
+document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+</script><script type="text/javascript">
+try {
+var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+piwikTracker.trackPageView();
+piwikTracker.enableLinkTracking();
+} catch( err ) {}
+</script><noscript><p><img src="http://fe2.nl/piwik/piwik.php?idsite=3" style="border:0" alt="" /></p></noscript>
+<!-- End Piwik Tracking Code -->
+
</body>
</html>
View
13 fe2_nl/templates/main.html
@@ -31,6 +31,19 @@
{% endblock %}
+<!-- Piwik -->
+<script type="text/javascript">
+var pkBaseURL = (("https:" == document.location.protocol) ? "https://fe2.nl/piwik/" : "http://fe2.nl/piwik/");
+document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+</script><script type="text/javascript">
+try {
+var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
+piwikTracker.trackPageView();
+piwikTracker.enableLinkTracking();
+} catch( err ) {}
+</script><noscript><p><img src="http://fe2.nl/piwik/piwik.php?idsite=3" style="border:0" alt="" /></p></noscript>
+<!-- End Piwik Tracking Code -->
+
</body>
</html>
View
2  fe2_run.py
@@ -6,7 +6,7 @@
sys.path.append(os.path.dirname(__file__))
from fe2_nl import app as application
-application.debug=True
+application.debug=False
from fe2_nl import changelog
from fe2_nl import index
from fe2_nl import dotfiles
Please sign in to comment.
Something went wrong with that request. Please try again.