diff --git a/README.txt b/README.txt index 070dc72..aab586c 100644 --- a/README.txt +++ b/README.txt @@ -241,6 +241,25 @@ $ sudo systemctl restart mysql.service $ sudo systemctl stop mysql.service $ sudo systemctl start mysql.service +While logged in at a terminal session as expo on expo.survex.,com + +$ mysql -h localhost -u expo -p +will get you the MariasDb command prompt: https://www.hostwinds.com/guide/how-to-use-mysql-mariadb-from-command-line/ + +then: +>drop database troggle; +>create database troggle; +>quit +Somewhere I have notes for the GRANT PRIVS type runes... + +Ah yes: +CREATE DATABASE troggle; +GRANT ALL PRIVILEGES ON troggle.* TO 'expo'@'localhost' IDENTIFIED BY 'somepassword'; FLUSH PRIVILEGES; (at mysql root prompt) + +(explained on https://chartio.com/resources/tutorials/how-to-grant-all-privileges-on-a-database-in-mysql/) +(but you need to create the database too) + + Running a Troggle server ------------------------ For high volume use, Troggle should be run using a web server like apache. diff --git a/templates/expedition.html b/templates/expedition.html index 5a6f559..6c3e186 100644 --- a/templates/expedition.html +++ b/templates/expedition.html @@ -19,7 +19,7 @@ {% endifequal %} {% endfor %}

- +

See also the documentation index for this Expo

Reparse and reload this year's logbook by clicking here: RELOAD

At a single glance: The table shows all expo cavers and their recorded trips. diff --git a/urls.py b/urls.py index ff67d0e..31711a2 100644 --- a/urls.py +++ b/urls.py @@ -75,7 +75,6 @@ trogglepatterns = [ # url(r'^person/(?P\d*)/?$', logbooks.person), url(r'^person/(?P[A-Z]*[a-z\-\'&;]*)[^a-zA-Z]*(?P[a-z\-\']*[^a-zA-Z]*[A-Z]*[a-z\-&;]*)/?', logbooks.person, name="person"), # url(r'^person/(\w+_\w+)$', logbooks.person, name="person"), -# url(r'^personform/(.*)$', personForm), url(r'^expedition/(\d+)$', logbooks.expedition, name="expedition"), url(r'^api/expeditions_tsv$', logbooks.Expeditions_tsvListView.as_view()),