<commit_before>djangoproject.com source code
=============================

.. image:: https://github.com/django/djangoproject.com/workflows/Tests/badge.svg?branch=main
    :target: https://github.com/django/djangoproject.com/actions

.. image:: https://coveralls.io/repos/django/djangoproject.com/badge.svg?branch=main
    :target: https://coveralls.io/r/django/djangoproject.com?branch=main

To run locally, do the usual:

#. Create a Python 3.8+ virtualenv and activate it

#. Install dependencies::

    python3 -m pip install -r requirements/dev.txt
    npm install

   *Note: for Python 3.10+ you have to append* ``--ignore-requires-python`` *to* ``pip``

   Alternatively, use the make task::

    make install

#. Make a directory to store the project's data (``MEDIA_ROOT``, ``DOC_BUILDS_ROOT``,
   etc.). We'll use ``~/.djangoproject`` for example purposes. Create a sub-directory<commit_msg>Add a link to setting up a virtual python env (#1256)<commit_after>djangoproject.com source code
=============================

.. image:: https://github.com/django/djangoproject.com/workflows/Tests/badge.svg?branch=main
    :target: https://github.com/django/djangoproject.com/actions

.. image:: https://coveralls.io/repos/django/djangoproject.com/badge.svg?branch=main
    :target: https://coveralls.io/r/django/djangoproject.com?branch=main

To run locally, do the usual:

#. Create a `Python 3.8+ virtualenv and activate it`<https://docs.python.org/3/library/venv.html>_

#. Install dependencies::

    python3 -m pip install -r requirements/dev.txt
    npm install

   *Note: for Python 3.10+ you have to append* ``--ignore-requires-python`` *to* ``pip``

   Alternatively, use the make task::

    make install

#. Make a directory to store the project's data (``MEDIA_ROOT``, ``DOC_BUILDS_ROOT``,
   etc.). We'll use ``~/.djangoproject`` for example purposes. Create a sub-directory
{'fraction_non_alphanumeric': 0.16807610993657504, 'fraction_numerical': 0.008985200845665961, 'mean_word_length': 4.1580381471389645, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '553985', 'n_tokens_mistral': 657, 'n_tokens_neox': 589, 'n_words': 155}