Coder Social home page Coder Social logo

vecna / syrianarchive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crito/syrianarchive

0.0 2.0 0.0 22.95 MB

Django site for the syrianarchive database

Home Page: https://syrianarchive.org

License: GNU General Public License v2.0

HTML 12.67% Python 4.82% CSS 20.52% JavaScript 61.79% PHP 0.12% Shell 0.08%

syrianarchive's Introduction

Syrian Archive

The Syrian Archive is a Syrian initiative that strives to promote sustainable peace and respect for human rights within Syrian society through facilitating justice and accountability. This includes evidence gathering and documentation of incidents; the acknowledgment that war crimes and human rights violations have been committed by all sides; the identification of perpetrators to end the cycle of impunity and the development of a process of justice and reconciliation.

more at https://syrianarchive.org/p/page/about

This is the repository holding the django application to manage the database of incidents

Dependencies

#basics
django 1.8
python 2.7
python-virtualenv

#mapping
geos
gdal

#database
some kind of sql
  #mysql
  python-mysql

  debian
libmysqlclient-dev
python-dev
binutils libproj-dev gdal-bin

Features

"Schema"

completely translated database and interface into
  english
  arabic
using
  django-modeltranslation

mapping of incidents
  django-geojson
  django-leaflet

filtering and searching of incidents

Deploy

# set up the virtual environment
mkdir syarchenv
cd syarchenv

virtualenv -p /usr/bin/python2.7 .

# enter the virtualenv
source bin/activate

# clone the syrianarchive django bit
git clone DJANGO INSTALL

cd syrianarchive

#install python dependencies
pip install -r requirements.txt

#set up the databases

create databases
  make sure the default character set is utf8!!!
  see: https://dev.mysql.com/doc/refman/5.0/en/charset-applications.html

change sample_settings.py to settings.py
put in DB credentials

#create the tables in the database
python manage.py migrate

#add admin user
python manage.py syncdb

#install the location data (it is xml formatted to allow unicode arabic editing)
python manage.py loaddata database/data/locations.xml

#install the database metadata - International Instruments, ViolationTypes, Devices, ETC
python manage.py loaddata database/data/database_meta_data.json

#install the pages database... hopefully the json is kept updated
python manage.py loaddata database/data/pages.json
python manage.py loaddata database/data/pages_links.json
python manage.py loaddata database/data/homepage.json

Contact

General: [email protected]

Tech: [email protected]

Contribute

edit translation files: (on dev branch please!) https://github.com/nikonikoniko/syrianarchive/blob/dev/locale/ar/LC_MESSAGES/django.po

help with design or coding: email [email protected]

help with the database: email [email protected]

Design

color scheme

#main colors
black: #2C2C30
middle grey: #ACB4AC
light grey: #E7E5E4
white: #F5F5F4

#primary colors:
orange (main element): #FA7000
teal (filters): teal
blue (link): #0487A4
light blue highlight: #32BDAB
red(warning): #CC2200

Hacks... :(

things that have been hacked:

  • python lib static directories have been copied to /static/
  • issue for upgrade of library

syrianarchive's People

Contributors

hadi-khatib avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.