diff --git a/_posts/2016-04-20-setup-django-in-apache2-raspberry-pi.markdown b/_posts/2016-04-20-setup-django-in-apache2-raspberry-pi.markdown new file mode 100644 index 0000000000000000000000000000000000000000..afe6c7b9b024fe0b9f8b5735155c46a7bf115274 --- /dev/null +++ b/_posts/2016-04-20-setup-django-in-apache2-raspberry-pi.markdown @@ -0,0 +1,37 @@ +--- +layout: post +title: "Setup Django in apache2 Raspberry Pi" +date: 2016-04-20 22:32:34 +0700 +categories: [django, raspberry] +--- + +Setup Django in apache2 Raspberry Pi. Example in this configuration for monitoring the server raspberry pi using [https://github.com/k3oni/pydash/](https://github.com/k3oni/pydash/). + +As following this configurations [https://github.com/k3oni/pydash/wiki/Install-pyDash#3-setup-apache](https://github.com/k3oni/pydash/wiki/Install-pyDash#3-setup-apache), how to setup it. + +* **Edit in your:** + +```shell +/etc/apache2/sites-available/pydash.conf +``` + +* **and then, add this configuration:** + +{% highlight ruby %} +Listen 192.168.1.27:8001 + +<VirtualHost *:8001> + ServerName 192.168.1.27:80/pydash + ServerAlias 192.168.1.27:8001 + DocumentRoot /var/www/pydash/ + WSGIDaemonProcess pydash display-name=%{GROUP} python-path=/var/www/pydash + WSGIProcessGroup pydash + WSGIScriptAlias / /var/www/pydash/pydash/wsgi.py + Alias /static /var/www/pydash/static/ + Alias /media /var/www/pydash/media/ +</VirtualHost> +{% endhighlight %} + +And then, you can access from another client with IP: `192.168.1.27:8001` + +> Thanks for: _Nabil Abdat_ \ No newline at end of file diff --git a/category/raspberry.md b/category/raspberry.md new file mode 100644 index 0000000000000000000000000000000000000000..bb8d55e3670bd9c35f82abe68324065e1a662976 --- /dev/null +++ b/category/raspberry.md @@ -0,0 +1,6 @@ +--- +layout: posts_by_category +categories: raspberry +title: Raspberry Pi +permalink: /category/raspberry +--- \ No newline at end of file