mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-21 23:01:52 +00:00
installing on WSL ubuntu on Windows 10
This commit is contained in:
parent
8c10908353
commit
429c21a8e9
13
README.txt
13
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user