📜 ⬆️ ⬇️

Open-rynda: crowdsourcing solutions for emergency situations and volunteer network coordination

Once upon a time, in a galaxy far far away ... to hell with the story , OpenRynda is ready!

image

What is OpenRynda?

Opensors version of the Virtual Market , allows you to coordinate the requests of victims and offers of assistance to volunteers. Made on the basis of 4 years of experience (Virtual rynda has been operating since 2010).

Why do you need it?

  1. Suddenly, a fire / flood / tornado / meteorite / Death Star
  2. You raise OpenRynd'u
  3. The victims of the fire / flood / tornado / meteorite / death star / censorship point out problems on the map
  4. Volunteers offer help
  5. Moderators - coordinate the process
  6. Profit! Problems solved!

Where to get?

You can take it here .
Written in Python, using Django and published under open licensing of MIT.
System requirements: Python 2.7+, spatialite, GEOS, PROJ.4, Virtualenv.
')
How to put?

Test version:

   virtualenv: virtualenv rynda source rynda/bin/activate  : git clone https://github.com/sarutobi/Rynda.git    : cd Rynda   : pip install -r requirements\test.txt  mysettings.py.example  mysettings.py       : bash createdb.sh    .    : admin   : python manage.py runserver    ://localhost:8000    : $python manage.py test 

Working version:

It takes a little patience.
For normal installation, under the Apache web server, you need to install the mod-wsgi module.
For example in Debian:
 $ sudo aptitude install libapache2-mod-wsgi 

If you have a mpm-itk module, then it may be the reason that the mod-wsgi module will not work.
Next, set the VirtualHost settings.
Running in daemon mode is the recommended method for running mod_wsgi on non-Windows platforms. To create a process, you need to add the WSGIDaemonProcess and WSGIProcessGroup directives.
Directive format:
 WSGIDaemonProcess _ processes= threads= python-path= : python-path —         : /path/to/mysite.com:/path/to/your/venv/lib/python2.X/site-packages processes —    ,        ,   WSGIProcessGroup.   ( -  )     . threads —  -            ,   WSGIProcessGroup. WSGIProcessGroup _ 

You must also allow access to the wsgi.py file. If you are using Apache version 2.4 or older, replace the Require all granted line with Allow from all, and add the Order deny, allow line above it.
Example:
 <Directory /path/to/mysite.com/mysite/Rynda/scripts> <Files wsgi.py> Require all granted </Files> </Directory> 

Another important directive is WSGIScriptAlias. It indicates the location of your applications (/ denotes the root directory), the second value indicates the location of the “WSGI” file - see below - on your system, usually at the root of the project. (in an example it is mysite). These settings will allow Apache to process any request from the directory specified as the base using the WSGI application stored in it.
 WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py 

In addition, you must specify the location of static files.
We collect static files in the folder that you specified in the settings:
  manage.py ./manage.py collectstatic 

Specify the Apache location of this folder:
  lias /static/ /path/to/mysite.com/static 

It is better to use nginx as a backend to distribute static files, as it does it more efficiently than Apache:
 location /static {alias /path/to/mysite.com/static; } 

Apache virtual host description example
 <Directory /path/to/my/site/www/demo.openrynda.com/Rynda/rynda/Rynda> <Files wsgi.py> Order allow,deny Allow from all </Files> </Directory> <VirtualHost 111.22.23.11:81 > ServerName demo.openrynda.com DocumentRoot /path/to/my/site/www/demo.openrynda.com WSGIDaemonProcess openrynda processes=5 threads=1 python-path= /path/to/my/site/www/demo.openrynda.com/Rynda:/path/to/my/site/www/demo.openrynda.com/rynda/lib/python2.7/site-packages:/path/to/my/site/www/demo.openrynda.com/rynda/lib/python2.7/ WSGIProcessGroup openrynda WSGIScriptAlias / /path/to/my/site/www/demo.openrynda.com/rynda/Rynda/wsgi.py lias /static/ /path/to/my/site/www/demo.openrynda.com/static #   (  ) ServerAlias www.demo.openrynda.com </VirtualHost> 


How to help?

After 1200+ commits , the project still requires some improvements (for example, you need a simple installer “for the average user”), so please send pullreves!

Authorship

The original project was developed by many people at different times, the open-source version was made by Valera Ilyichev (ridonly) with the moral support of the Greenhouse of social technologies.

Source: https://habr.com/ru/post/247467/


All Articles