From 429c21a8e956dfcb2928088aabe0ed85215cca90 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 22 Feb 2020 00:04:41 +0000 Subject: [PATCH] installing on WSL ubuntu on Windows 10 --- README.txt | 13 ++++++++++++- core/views_caves.py | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 81c2b14..ba68681 100644 --- a/README.txt +++ b/README.txt @@ -8,9 +8,19 @@ Troggle setup Python, Django, and Database setup ----------------------------------- Troggle requires Django 1.4 or greater, and any version of Python that works with it. +It is currently (Feb.2020) on django 1.7.11 (1.7.11-1+deb8u5). Install Django with the following command: -apt-get install python-django (on debian/ubuntu) +sudo apt install python-django (on debian/ubuntu) -- does not work now as we need specific version + +Install like this: +sudo apt install pip +pip install django==1.7 +pip install django-tinymce=2.0.1 +sudo apt install libfreetype6-dev +pip install --no-cache-dir pillow==2.7.0 +pip install django-registration==2.0 +pip install unidecode If you want to use MySQL or Postgresql, download and install them. However, you can also use Django with Sqlite3, which is included in Python and thus requires no extra installation. @@ -34,6 +44,7 @@ Setting up tables and importing legacy data ------------------------------------------ Run "python databaseReset.py reset" from the troggle directory. + Once troggle is running, you can also log in and then go to "Import / export" data under "admin" on the menu. Adding a new year/expedition requires adding a column to the diff --git a/core/views_caves.py b/core/views_caves.py index af76b1e..a377cf1 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -371,6 +371,7 @@ areacolours = { for FONT in [ "/usr/share/fonts/truetype/freefont/FreeSans.ttf", "/usr/X11R6/lib/X11/fonts/truetype/arial.ttf", + "/mnt/c/windows/fonts/arial.ttf", "C:\WINNT\Fonts\ARIAL.TTF" ]: if os.path.isfile(FONT): break