Andrejus Baranovski

Subscribe to Andrejus Baranovski feed
Blog about Oracle, Full Stack, Machine Learning and Cloud
Updated: 7 hours 50 min ago

Django Python with Oracle JET UI Table

Mon, 2022-10-03 14:10
Oracle JET provides a large set of UI components for enterprise apps. I explain how you can display data from Django with Oracle JET table. Data is injected into Django HTML template on the server side and later consumed by JET UI component.


HTMX: Events and Triggers - Django CRUD, part 5

Mon, 2022-09-26 08:16
Refreshing dependent fragments with data is a very common use case in enterprise applications. In this example, data is changed in editable form. If data is saved to DB successfully through Django backend, we raise HTMX event and with HTMX trigger refresh dependent readonly table to display the latest data.


HTMX: Saving Form Changes - Django CRUD, part 4

Wed, 2022-09-21 03:29
I explain how to run POST request through HTMX attribute on HTML form tag to save form changes to the backend. You will see how to report validation errors through HTMX response.


HTMX: Fetch Edit Form Data - Django CRUD, part 3

Sun, 2022-09-11 13:41
HTMX makes it possible to call the backend from HTML without JavaScript. You can add HTMX attribute to HTML tag, for example, button, and call backend endpoint. HTMX can process HTML fragment response and inject it into the Web page. This allows achieving partial page refresh, without full page reload.

Python Django Model Form - Django CRUD, part 2

Sun, 2022-09-04 10:25
I explain how to generate UI in Django on top of Model Form. You can define Model Form with Django Model and inherit model attributes and constraints. Model Form makes it simple not only to render the form, but also control validation and data processing phases.


Python Django CRUD part 1 - Data Model and Constraints

Sun, 2022-08-28 22:56
In this episode of Django CRUD, I will explain how to define a data model in Django and set up constraints to ensure data validity. These constraints will be applied automatically when data will be updated from the UI.


Dynamic UI in Django with Alpine.js

Mon, 2022-08-15 08:11
Django generates static HTML UI, this requires a full request submit to the server. But you can build dynamic UI's, by including and using Alpine.js library. With Alpine.js you can open dialogs, hide content or disable UI controls. This helps to improve Django app UI usability.


The old old coolness - HTMX | Execute HTTP request directly from HTML tag

Sat, 2022-08-06 13:47
Developing a modern Web app with Django and Tailwind? Thinking of using React, Vue, or another fancy JS library for UI implementation? I would recommend spending some time and trying HTMX. With HTMX you can execute partial requests and return HTML content to replace web page regions. HTMX properties are defined directly on HTML tags, this makes it easy to use and flexible.


GitHub Copilot with Django Python: Create Django Model

Sat, 2022-07-30 13:45
GitHub Copilot helps to save developer time, it can suggest common utility functions code quite well. There is no need to spend time searching on Google or StackOverflow. I love it and it works very well with Python.


Oracle JavaScript (JET) UI rendered in single HTML file

Sun, 2022-07-24 14:26
Oracle JavaScript Extension Toolkit (JET) comes with a strong set of UI components for enterprise. You can reuse these components in other UI toolkits/frameworks. In this video I show how you can run JET table components in a single HTML file, without any additional configuration in separate files.


Tailwind UI in Django with Flowbite Accordion, Table, Form

Sun, 2022-07-17 14:32
I explain my experience working with Flowbite to build prototype UI for data mapping screen with accordion, table and form components.


MLUI: Webpack, Django, JavaScript

Mon, 2022-07-04 08:24
This quick video explains how to run Webpack inside Django project to package JavaScript files into a single bundle.


MLUI: Django HTML Template Tags

Sun, 2022-06-26 14:33
Django HTML template tags help to implement dynamic logic, processed on the server-side and rendered through HTML response on the client. This helps to integrate HTML structure with Django backend. In this video I explain how to use Django built-in tags in HTML.


MLUI: Django, Tailwind and Flowbite (Katana ML Sparrow)

Sun, 2022-06-19 15:01
This video is about Tailwind and Flowbite integration with Django Python project. With Tailwind and Flowbite you can build modern UIs with Django HTML templates, without using React or Vue.


MLUI: Django HTML Templates

Sun, 2022-06-12 08:54
I explain how to create a Web page in Django using HTML templates and add URL routing to Django view.


MLUI: Django App Setup

Sun, 2022-06-05 14:20
UI plays an essential part for ML apps, it helps build access to ML model API. With friendly and usable UI there are more chances for ML project to be successful. I'm building UI for our ML product Sparrow (data extraction from the documents). I will be explaining in the series of videos, how to build UI (including security, data model, etc.) for ML project. Stay tuned, it will be fun and lots to learn.


MLOps: Simple Kubernetes with Skipper

Tue, 2022-05-31 14:40
Kubernetes can be very complex, this is why we created Skipper. Simple and flexible MLOps workflow engine, it helps to run ML (and not only) workloads on Kubernetes. Skipper comes with all the scripts to setup and run microservices infrastructure on Kubernetes. Try it and enjoy!


File Upload with PyScript

Sun, 2022-05-22 14:32
I explain how to implement file upload functionality with PyScript in the browser. File content is converted to Pandas and displayed in the table. All UI components are native Python. I show how to interact with HTML DOM structure from PyScript.


Data Annotation with SVG and JavaScript

Mon, 2022-05-16 01:35
I explain how to build a simple data annotation tool with SVG and JavaScript in HTML page. The sample code renders two boxes in SVG on top of the receipt image. You will learn how to select and switch between annotation boxes. Enjoy!


PyScript - Deep Dive for Developer

Mon, 2022-05-09 01:52
PyScript was announced last week at PyCon US 2022. Good news for all Python developers, now we can run Python logic serverless in the browser. This video is deep dive, with a step-by-step explanation of the sample application code. It includes an input component, chart, and table. I explain how to update UI when the input component changes. Hope this will be useful for your practical knowledge.