tag: es6 modules

  • How to create a fullstack application using Django and Python Part 24

    How to create a fullstack application using Django and Python Part 24

    Maria D. Campbell

    In this section, I add markdown functionality to the Post model, the reply_topic.html and topic_posts.html templates, and I implement ES6 modules to our JavaScript code. This means refactoring the copy (link) button and associated html markup and CSS. I refactor and modularize the scroll top and bottom button JavaScript code and associated CSS, modularize the pagination behavior JavaScript code, import the ES6 modules into a new file called app.js, and add the type="module" attribute to the app.js script tag in templates/base.html.

    #fullstack development, #macOS, #django, #code refactoring, #es6 modules, #javascript, #markdown, #series