GithubHelp home page GithubHelp logo

tuxella / pydici Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digitalfox/pydici

1.0 2.0 0.0 8.84 MB

CRM, billing and staffing management web tool for consulting company

Shell 0.05% JavaScript 1.99% Python 64.74% CSS 4.45% HTML 28.77%

pydici's Introduction

Build Status

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

  • commercial leads workflow (from business detection to sales)
  • workload schedule to forecast people activity

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

Pydici can be installed as any Django project. Just drop the code somewhere and setup Apache.

To install all python prerequisites, just do that: pip install -r requirements.txt. It is strongly advised to use a virtual env.

Detailed installation

Drop source code in a directory readable by your apache 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 pydici-venv . pydici-venv/bin/activate

Install prerequisites : pip install -r /requirements.txt

Setup your favorite database (mysql/mariaDB or postgresql) 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:

Updating an existing installation

After pulling the latest changes you need to update the database.

There are three possible situations, depending on whether your installation uses Django Migration. Or still use South or use no miration system at all Your installation uses South if there is a south_migrationhistory

  1. Your installation already uses Django Migration. Run these commands:

     ./manage.py migrate
     ./manage.py createsuperuser
    
  2. Your installation uses South:

    Firstly you need to checkout the last pydici version using South "pydici/master", then run these commands:

     ./manage.py syncdb
     ./manage.py migrate
    

    After that you can update to to a newer version of pydici then :

     ./manage.py migrate auth
     ./manage.py migrate contenttypes
     ./manage.py migrate --fake  # for internal pydici apps
    

    Once this is done, future updates will be handled as situation #1.

  3. Your installation does not use Django Migration or South yet.

    Firstly you need to checkout the last pydici version using South "pydici/master", then run these commands:

     ./manage.py syncdb
     ./manage.py migrate --all 0001 --fake
     ./manage.py migrate
    

    After that you can update to to a newer version of pydici by running:

     ./manage.py migrate --fake
    

    Once this is done, future updates will be handled as situation #1.

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
  • 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).

Notes about javascript tests

If you want to run javascript tests, you need to install node, phantomjs and casperjs. Node may be included in your distribution. For the two others, here's how to install localy, without any root access:

    npm install phantomjs
    npm install casperjs

Migrate data from environment

On source:

./manage.py dumpdata -o dump.json -e contenttypes -e auth.Permission --natural-foreign

On target:

create empty database and play migrations
./manage.py loaddata dump.json

Hosting, support, professional services, custom developpement

See http://www.enioka.com/pydici-web/

pydici's People

Contributors

digitalfox avatar agateau avatar tuxella avatar bport avatar g76r avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.