IdentiPy Server - a Django-based web interface for IdentiPy
- Python 2.7
- identipy and its dependencies
- (if installed with pip, lxml will need development packages of libxml2 and libxslt to compile)
- MP score and its dependencies
- cycler, pyparsing, python-dateutil, functools32
MP score: https://bitbucket.org/markmipt/mp-score
The other dependencies can be installed using
pip or the package manager of your operating system.
How to run IdentiPy Server
IdentiPy Server currently works on Unix-like operating systems only. IdentiPy and MP score are imported from directories adjacent to IdentiPy Server.
Switch to a directory that will hold the installation, then download the three components of IdentiPy Server, like this:
$ hg clone https://bitbucket.org/levitsky/identipy_server $ hg clone https://bitbucket.org/levitsky/identipy $ hg clone https://bitbucket.org/markmipt/mp-score
Run these commands to initialize the database:
$ cd identipy_server $ python2 manage.py makemigrations $ python2 manage.py migrate
Then create a superuser account to manage the database...
$ python2 manage.py createsuperuser
And finally, create a regular user account:
$ python2 manage.py createuser <username>
You can then run Django development server to test your setup:
$ python2 manage.py runserver
This will start a development server on 127.0.0.1:8000, so it will only be available locally. If you need to access the server from a local network, specify the IP address and port you need, e.g.:
$ python2 manage.py runserver 192.168.1.2:9000
While the development server is running, you can log into IdentiPy Server and use it in your browser.
For more reliable use (especially for multiple-user installations), we recommend running IndetiPy Server with a WSGI-compatible web server application like Apache or Nginx+uWSGI, instead of the Django development server:
Example configuration files are included:
identipy.example.ini- for uWSGI;
identipy.example.conf- for nginx;
example-httpd-vhosts.conf- for Apache with mod_wsgi and virtual hosts.
You may need to edit the following settings in
EMAIL_*(these are specific to the project)
For explanation of Django settings see the official documentation: https://docs.djangoproject.com/en/1.11/ref/settings/