<commit_before>
Building Tsugi Applications in Django
-------------------------------------

Make an account on 

www.pythonanywhere.com

Start a shell on PythonAnywhere and run these commands:

cd
mkvirtualenv django2 --python=/usr/bin/python3.6
workon django2
pip install django==2.1.7 

We install an earlier version of Django to make sure
that the vesion of SQLite works with your Django.
Verify things worked by checing the Django version:

python3 -m django --version

git clone https://github.com/tsugiproject/djtest

cd djtest
pip install -r requirements.txt

Then create the needed database file:

python3 manage.py migrate

In the PYAW web interface navigate to the Web tab to create a new 
web application. If you have not already done so, add a new web 
application. Select manual configuration and Python 3.6. Once the 
webapp is created, you need to make a few changes to the settings <commit_msg>Uptime<commit_after>
Building Tsugi Applications in Django
-------------------------------------

Make an account on 

www.pythonanywhere.com

Start a shell on PythonAnywhere and run these commands:

cd
mkvirtualenv django2 --python=/usr/bin/python3.6
workon django2
pip install django==2.1.7 

We install an earlier version of Django to make sure
that the vesion of SQLite works with your Django.
Verify things worked by checing the Django version:

python3 -m django --version

git clone https://github.com/tsugiproject/djtest

cd djtest
pip install -r requirements.txt

Then create the needed database file:

python3 manage.py migrate

Edit the file djtest/settings.py and make sure that the the 
keyset url is pointing to the right server:

TSUGI_KEYSET = "https://dev1.tsugicloud.org/tsugi/lti/keyset-ext";

In the PYAW web interface navigate to the Web tab to create a new 
web application. If you have not already done so, add a new web 
application. Select manual configuration and Python 3.6. Once the 
webapp is created, you need to make a few changes to the settings 
{'fraction_non_alphanumeric': 0.08345902463549522, 'fraction_numerical': 0.011563599798893917, 'mean_word_length': 3.4320712694877504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, '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': '1584101', 'n_tokens_mistral': 584, 'n_tokens_neox': 555, 'n_words': 274}