Skip to main content

Artificial Intelligence for Django

Project description


.. image::

.. image::

.. image::

Artificial Intelligence for Django

``django-ai`` is a collection of apps for integrating statistical models into your
Django project so you can implement machine learning conveniently.

It integrates several libraries and engines providing your Django app with a set of
tools so you can leverage the data generated in your project.

.. image::


The full documentation is at or the `/docs` directory for offline reading.


* `Bayesian Networks < >`_: Integrate Bayesian Networks through your models using the `BayesPy framework <>`_.
* `Spam Filtering <>`_: Integrate Spam Filters to your Django project using the `scikit-learn framework <>`_.

* Bayesian Networks: Integrate Bayesian Networks through your models using the `BayesPy framework <>`_.

See the `Introduction <>`_ section in the documentation for more information.

Communication Channels

* Mailing List:
* Chat:
* GitHub:
* Stack-Overflow:
* AI Stack Exchange:


The easiest way of trying `django-ai` is inside its package:

1. Create a virtual environment and activate it::

python3 -m venv django-ai_env
source django-ai_env/bin/activate

2. Upgrade ``pip`` and install ``django-ai``::

(django-ai_env) pip install --upgrade pip
(django-ai_env) pip install django-ai

3. Change into the `django-ai` directory, i.e.::

(django-ai_env) cd django-ai_env/lib/python3.5/site-packages/django_ai

4. Create the migrations for the dependencies and apply them::

python makemigrations
python migrate

5. Create a superuser::

python createsuperuser

6. Start the development server and visit, look at the examples and start creating your statistical models::

python runserver

You can also clone it from the repository and install the requirements in a virtualenv::

git clone

and following the previous steps, install the requirements - ``pip install -r requirements.txt`` - in a virtual environment instead of the package.

For installing it in your project, please refer `here <>`_.

Running Tests

Does the code actually work?


source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ PYTHONHASHSEED=0 python

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-ai, version
Filename, size & hash File type Python version Upload date
django_ai- (105.0 kB) View hashes Wheel py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page