Giter Site home page Giter Site logo

l4dri4l / pydici Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digitalfox/pydici

0.0 0.0 0.0 11.03 MB

CRM, billing and staffing management web tool for consulting company

Home Page: http://www.enioka.com/pydici-web/

License: GNU Affero General Public License v3.0

Shell 0.05% JavaScript 1.06% Python 68.70% CSS 1.51% HTML 28.53% PLpgSQL 0.12% Dockerfile 0.03%

pydici's Introduction

Pydici is a software for consulting/IT services company to manage:

  • commercial leads workflow (from business detection to sales)
  • Simple CRM
  • workload schedule to forecast people activity
  • operation management: timesheet, margin control,
  • billing
  • optional integration with Nextcloud to manage files

It is written in Python using the Django framework.

LICENSE

Pydici is available under the GNU Affero Public License v3 or newer (AGPL 3+). http://www.gnu.org/licenses/agpl-3.0.html

AUTHOR

Sébastien Renard ([email protected]).

INSTALLATION

Production pre requisites:

  • python >= 3.9
  • mariadb (tested with 10.X)
  • memcached
  • redis
  • ghostscript

Pydici can be installed as any Django project. Just drop the code somewhere and setup your favorite wsgi server (apache/mod_wsgi, gunicorn, uwsgi etc.).

Development environment

To install all python prerequisites, please do the following: pip install -r requirements.txt. It is strongly advised to use a virtual env. You will need a running mysql or mariadb with a database named pydici (see pydici/settings.py for default credential)

For development (and only for development), a docker-compose file can be used with mariadb, redis, memcached setup :

docker-compose up

Detailed Installation

Drop source code in a directory readable by your wsgi server user git clone https://github.com/digitalfox/pydici.git

Create a virtual env in a directory readable by your apache user and activate it

 virtual-env venv
. venv/bin/activate

Install prerequisites :

pip install -r <path to pydici source code>/requirements.txt

Setup your favorite database (mysql/mariaDB or postgresql, mariadb is recommended) and create a schema/base (with UTF-8 character set please) with a valid user that can create/alter/select/delete/update its objects.

Configure your database in pydici/settings.py. Look at django docs to understand the various database options.

Create tables with :

./manage.py migrate

Generate a new secret key with ./manage.py generate_secret_key and put it in pydici/settings.py

Collect static files with :

./manage.py collectstatic

Setup your apache virtual env:

  • activate mod_wsgi.
  • activate ssl
  • active mod_expires
  • add Alias to /media and /static
  • define auth backend.

Periodic tasks are ran by Celery. Scheduling setup is in settins/pydici_celery.py

Creating initial database

To create the initial database:

    ./manage.py migrate

Or with docker, on development environment :

  docker exec pydici_django_1 python manage.py migrate

To create sample data for dev or demo :

  docker exec pydici_django_1 python manage.py create_test_data

Notes about scikit learn

Scikit learn is a machine learning framework for python. It is an optional Pydici deps that can predict leads tags and state. Some comments:

  • You need to install scikit-learn, numpy and scipy (pip install -r requirements-sklearn.txt)
  • You might need to add the following directive in your apache virual host file to avoid some nasty deadlock during init when using scikit learn : WSGIApplicationGroup %{GLOBAL}
  • For proper model caching, you might need to increase memcached object size (1m => 10m) as well as your python client memcache (hardcoded in lib for python-memcached...sic).

Migrate data from environment

On source:

./manage.py dumpdata -o dump.json -e contenttypes -e sessions.Session -e auth.Permission -e admin.LogEntry -e auditlog --natural-foreign

On target:

# create empty database and play migrations (see above)
./manage.py loaddata dump.json
# or with docker : 
docker exec pydici_django_1 python manage.py loaddata dump.json 

Note that, loading may fail due to auditlog tracking process done during data loading. In that case, just disable it temporary by changing the name of the AUDITLOG_INCLUDE_TRACKING_MODELS config key in in pydici/settings/django.py

Hosting, support, professional services, custom development

See https://pydici-web.enioka.com/

pydici's People

Contributors

digitalfox avatar agateau avatar abessette avatar bport avatar tuxella avatar fbeziaud avatar nielsdaw avatar dependabot[bot] avatar g76r avatar mustafacandan avatar unusual-thoughts avatar modernrio avatar lhassan18 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.