2021-05-05 17:56:05 +01:00
|
|
|
settings.JSLIB_URL == /JAVASCRIPT/
|
2021-10-24 17:17:02 +01:00
|
|
|
http://localhost:8000/pathsreport to check
|
|
|
|
JSLIB_ROOT /mnt/c/EXPO/troggle/media/jslib
|
|
|
|
JSLIB_URL /javascript/
|
2021-05-05 17:56:05 +01:00
|
|
|
|
|
|
|
links to JS files are in the ../templates/*.html files
|
|
|
|
|
2021-10-25 23:02:27 +01:00
|
|
|
but _also_, and peculiarly, in the troggle/admin.py files (which are dead links)
|
2021-10-31 15:59:11 +00:00
|
|
|
i.e.
|
2021-05-05 17:56:05 +01:00
|
|
|
class TroggleModelAdmin(admin.ModelAdmin):
|
|
|
|
|
|
|
|
def save_model(self, request, obj, form, change):
|
|
|
|
"""overriding admin save to fill the new_since parsing_field"""
|
|
|
|
obj.new_since_parsing=True
|
|
|
|
obj.save()
|
|
|
|
|
|
|
|
class Media:
|
|
|
|
js = ('jquery/jquery.min.js','js/QM_helper.js')
|
|
|
|
|
|
|
|
NB any *Admin class is used in the Django control panel only.
|
|
|
|
|
2021-10-31 15:59:11 +00:00
|
|
|
The jquery links have been REMOVED from the templates as they were not used anywhere.
|
2023-11-08 00:12:37 +00:00
|
|
|
|
2021-05-05 17:56:05 +01:00
|
|
|
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 %}
|