Hi Mike, Spitballing here, have you run the "collectstatic" command?
-ken On Tue, Aug 22, 2017 at 4:20 AM, Mike Dewhirst <[email protected]> wrote: > I'm revisiting a longstanding problem where the TinyMCE editor doesn't > appear and I have edit html by hand. > > Not knowing where to start I chose a page in the admin and viewed source > and checked on the existence of all scripts which showed. On clicking the > links, I got some 404 errors but on others the js appearead. I suspected > missing scripts but no - they all appear to be in place. See "yes" below > indicating I have looked in those dirs. I have stripped out the distracting > tags here ... > > href="/static/mezzanine/tinymce/tinymce.css" 404 - yes > src="/static/admin/js/core.js" OK - yes > src="/static/admin/js/vendor/jquery/jquery.js" 404 - yes > src="/static/admin/js/jquery.init.js" OK - yes > src="/static/admin/js/admin/RelatedObjectLookups.js" OK - yes > src="/static/admin/js/actions.js" OK - yes > src="/static/admin/js/urlify.js" OK - yes > src="/static/admin/js/prepopulate.js" OK - yes > src="/static/admin/js/vendor/xregexp/xregexp.js" 404 - yes > src="/static/admin/js/calendar.js" OK - yes > src="/static/admin/js/admin/DateTimeShortcuts.js" OK - yes > src="/static/mezzanine/tinymce/tinymce.min.js" 404 - yes > src="/static/mezzanine/tinymce/jquery.tinymce.min.js" 404 - yes > src="/static/mezzanine/js/tinymce_setup.js" OK - yes > src="/static/mezzanine/js/admin/keywords_field.js" OK - yes > src="/static/admin/js/collapse.js" OK - yes > > > The locations are apparently constructed in settings.py as follows: > > # URL prefix for static files. > # Example: "http://media.lawrence.com/static/" > STATIC_URL = "/static/" > > # Absolute path to the directory static files should be collected to. > # Don't put anything in this directory yourself; store your static files > # in apps' "static/" subdirectories and in STATICFILES_DIRS. > # Example: "/home/media/media.lawrence.com/static/" > STATIC_ROOT = os.path.join(PROJECT_ROOT, STATIC_URL.strip("/")) > > # URL that handles the media served from MEDIA_ROOT. Make sure to use a > # trailing slash. > # Examples: "http://media.lawrence.com/media/", "http://example.com/media/ > " > MEDIA_URL = STATIC_URL + "media/" > > # Absolute filesystem path to the directory that will hold user-uploaded > files. > # Example: "/home/media/media.lawrence.com/media/" > MEDIA_ROOT = os.path.join(PROJECT_ROOT, *MEDIA_URL.strip("/").split("/")) > > I'm not sure about that asterisk. > > Any ideas? > > Thanks > > Mike > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
