mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 13:10:05 +00:00
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
settings.JSLIB_URL == /JAVASCRIPT/
|
|
http://localhost:8000/pathsreport to check
|
|
JSLIB_ROOT /mnt/c/EXPO/troggle/media/jslib
|
|
JSLIB_URL /javascript/
|
|
|
|
links to JS files are in the ../templates/*.html files
|
|
|
|
but _also_, and peculiarly, in the troggle/admin.py files (which are dead links)
|
|
i.e.
|
|
class TroggleModelAdmin(admin.ModelAdmin):
|
|
|
|
class Media:
|
|
js = ('jquery/jquery.min.js','js/QM_helper.js')
|
|
|
|
NB any *Admin class is used in the Django control panel only.
|
|
|
|
The jquery links have been REMOVED from the templates as they were not used anywhere.
|
|
Martin include jQuery in his HTML editor though, using the default copy provided by Django in the
|
|
/media/admin/js/vendor/jquery/ folder
|
|
which is
|
|
"jQuery JavaScript Library v3.5.1"
|
|
Date: 2020-05-04T22:49Z
|
|
as distributed with Django 4.2 I think.
|
|
|
|
CaveView is big, so we do not include it with the troggle software repo.
|
|
It is Debian packed software and installed on the server as a Debian package.
|
|
|
|
templates/editentrance.html:
|
|
|
|
{% extends "cavebase.html" %}
|
|
|
|
{% block title %}Edit Entrance{% endblock %}
|
|
{% block extraheaders %}
|
|
|
|
<link rel="stylesheet" href="{{ settings.JSLIB_URL }}jquery-ui/css/lightness/jquery-ui.css" type="text/css" media="all" />
|
|
<script src="{{ settings.JSLIB_URL }}jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
|
|
<!--<script src="{{ settings.TINY_MCE_MEDIA_URL }}tiny_mce.js" type="text/javascript"></script>-->
|
|
{% endblock %}
|
|
{% block content %}
|
|
etc
|
|
|
|
{% endblock %} |