# seum-counter ## Installation Clone the repo, then create a `virtualenv` with Python 3, then install the required packages with : pip install -r requirements.txt Then copy and paste the settings file template located in folder `seum`: ``` cd seum && cp settings.py.default settings.py ``` ## Running the server ### Developement First, comment out the lines below "#Production settings". Then simply use the django command: python manage.py runserver 0.0.0.0:8000 ### Production Install the packages needed to run an Apache server with `wsgi_mod` : sudo apt-get install apache2 libapache2-mod-wsgi-py3 Then add the following content to the file `/etc/apache2/sites-available/000-default.conf`, inside the `` tag : Alias /static /static /static> Require all granted /seum> Require all granted WSGIDaemonProcess seum python-path=://lib/python3.5/site-packages WSGIProcessGroup seum WSGIScriptAlias / /seum/wsgi.py To give Apache the permission to serve the files, execute these three commands : chmod 664 /db.sqlite3 sudo chown :www-data /db.sqlite3 sudo chown :www-data To launch or restart the server, simply run : sudo service apache2 restart