From 9ec9fb09648ba8a37ef00a2543bb02a1be9c88a4 Mon Sep 17 00:00:00 2001 From: Xavier Bustamante Talavera Date: Wed, 23 Jan 2019 18:46:08 +0100 Subject: [PATCH] Facilitate installation for dispatcher --- examples/apache.conf | 2 +- examples/wsgi.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 examples/wsgi.py diff --git a/examples/apache.conf b/examples/apache.conf index 01e2e403..e016422c 100644 --- a/examples/apache.conf +++ b/examples/apache.conf @@ -6,7 +6,7 @@ Define servername api.devicetag.io # The domain used to access the server Define appdir /home/devicetag/sites/${servername}/source/ # The path where the app directory is. Apache must have access to this folder. -Define wsgipath ${appdir}/wsgi.wsgi +Define wsgipath ${appdir}/wsgi.py # The location of the .wsgi file Define pyvenv ${appdir}../venv/ # The path where the virtual environment is (the folder containing bin/activate) diff --git a/examples/wsgi.py b/examples/wsgi.py new file mode 100644 index 00000000..d32cf92e --- /dev/null +++ b/examples/wsgi.py @@ -0,0 +1,6 @@ +""" +An exemplifying Apache python WSGI to a Devicehub app with a dispatcher. +""" +from ereuse_devicehub.dispatchers import PathDispatcher + +application = PathDispatcher()