Nov 162015
 

1. Installation

By default the install will be done using the Apache webserver.

Fedora & Pidora

Run:

sudo yum -y install git python-pip httpd mod_wsgi

Centos

Centos 6

Run:

sudo yum -y install http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

sudo yum -y install git python-pip httpd mod_wsgi

Centos 5

Run:

sudo yum -y install http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

sudo yum -y install git python-pip httpd mod_wsgi

Debian & Ubuntu & Raspbian

Run:

sudo apt-get install git python-pip apache2 libapache2-mod-wsgi

2. Setup

Please make sure you change the SECRET_KEY, please seehttps://docs.djangoproject.com/en/dev/ref/settings/ for more details.

Run:

cd /var/www
sudo git clone https://github.com/k3oni/pydash
cd pydash
edit pydash/settings.py and change the SECRET_KEY value
sudo pip install -r requirements.txt
sudo ./manage.py syncdb
cd ..
sudo chown -R apache.apache pydash   - For Centos & Fedora & Pidora
sudo chown -R www-data.www-data pydash   - For Ubuntu & Debian & Raspbian

Enter the user information, to create your login user:

 You just installed Django's auth system, which means you don't have any superusers defined.
 Would you like to create one now? (yes/no): yes
 Username (leave blank to use 'root'): admin (Enter your desired username)
 Email address: [email protected] (Enter your email address)
 Password: xxxxx (Enter your desired password)
 Password (again): xxxxx (Enter your password again)

3. Setup Apache

Centos & Fedora & Pidora

Add the config pydash.conf file under /etc/httpd/conf.d/:

 WSGISocketPrefix run/wsgi
   <VirtualHost *:80>
     ServerAdmin [email protected]
     ServerName dummy-host.example.com

     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/

     <Directory /var/www/pydash/pydash>
         <Files wsgi.py>
             Order deny,allow
             Allow from all
         </Files>
     </Directory>

     #CustomLog logs/pydash-access_log common
     #ErrorLog logs/pydash-error_log
 </VirtualHost>

Start the webserver:

 sudo service httpd start

Debian & Ubuntu & Raspbian

Add the config pydash.conf file under /etc/apache2/conf.d or /etc/apache2/sites-enabled:

 WSGISocketPrefix /var/run/apache2/wsgi
   <VirtualHost *:80>
     ServerAdmin [email protected]
     ServerName dummy-host.example.com

     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/

     <Directory /var/www/pydash/pydash>
         <Files wsgi.py>
             Order deny,allow
             Allow from all
         </Files>
     </Directory>

     #CustomLog logs/pydash-access_log common
     #ErrorLog logs/pydash-error_log
 </VirtualHost>

Start the webserver

 sudo service apache2 start