<commit_before>======
Themes
======

How To Create a Theme
---------------------

A Django Admin 2 theme is merely a packaged Django app. Here are the necessary steps to create a theme called '*dandy*':


1. Make sure you have Django 1.5 or higher installed. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: python

    $ python -c 'import django; print(django.get_version())'

2. Create the package:
~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash

    $ mkdir djadmin2-theme-fancy

4. Create a :file:`setup.py` module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash

    $ cd djadmin2-theme-fancy
    $ touch setup.py
    
Then enter the following information (you will probably want to change the highlighted lines below to match your package name):

.. code-block:: python
    :emphasize-lines: 25, 27, 28, 40, 41, 42, 44
    <commit_msg>Changing fancy to dandy<commit_after>======
Themes
======

How To Create a Theme
---------------------

A Django Admin 2 theme is merely a packaged Django app. Here are the necessary steps to create a theme called '*dandy*':


1. Make sure you have Django 1.5 or higher installed. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: python

    $ python -c 'import django; print(django.get_version())'

2. Create the package:
~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash

    $ mkdir djadmin2-theme-dandy

4. Create a :file:`setup.py` module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash

    $ cd djadmin2-theme-dandy
    $ touch setup.py
    
Then enter the following information (you will probably want to change the highlighted lines below to match your package name):

.. code-block:: python
    :emphasize-lines: 25, 27, 28, 40, 41, 42, 44
    
{'fraction_non_alphanumeric': 0.24287343215507412, 'fraction_numerical': 0.02508551881413911, 'mean_word_length': 3.3656716417910446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1251357', 'n_tokens_mistral': 556, 'n_tokens_neox': 483, 'n_words': 193}