Blog

Kostja Palović

How to deploy Express with PostgreSQL on AWS EC2 and Digital Ocean Droplet

Learn how to create Express.js application with an endpoint that stores records in PostgreSQL database and deploy it on AWS EC2 Instance and Digital Ocean Droplet

Read more →
Kostja Palović

Start and Deploy Pelican static blog on your own server

Build a blog with the Pelican static site generator in Python, write the posts in Markdown, then deploy it to a server you own with a custom domain.

Read more →
Kostja Palović

How to build and deploy MkDocs documentation site

Create a MkDocs documentation site from Markdown files, configure the theme and the built-in search, then deploy the built site to a server you own.

Read more →
Kostja Palović

Start and deploy Docusaurus Documentation Static Site on your own server

Start a Docusaurus documentation site, set up the config and the content, then deploy the static build to your own server with a custom domain.

Read more →
Kostja Palović

Django Channels WebSockets Quickstart Tutorial

Learn how to create a chat application with Django channels and deploy it in production without learning about DevOps!

Read more →
Kostja Palović

How to setup Django Sqlite Settings

Run Django on SQLite in production: create a volume for the database file, make settings respect DATABASE_URL, and set the environment variable.

Read more →
Kostja Palović

Django Admin Inlines

Edit related models on the parent page with Django admin inlines: TabularInline, StackedInline, a change link per row, and how to limit the queryset.

Read more →
Kostja Palović

How to use decorator in class-based view methods

You cannot put a decorator straight on a class-based view method. Use method_decorator, on the method or on the class, with login_required examples.

Read more →
Kostja Palović

CSV and Excel Import and Export in Django Admin Site

Add CSV and Excel import and export to the Django admin with django-import-export, including bulk update of rows that already exist from a spreadsheet.

Read more →
Kostja Palović

Django Admin Panel Tutorial

Series of bite-sized topic-based tutorials about unleashing the power of Django Admin

Read more →
Kostja Palović

Readonly fields in Django Admin

Use readonly_fields in the Django admin to lock fields on the change form, show method output as a field, and make a field readonly only in some cases.

Read more →
Kostja Palović

Customizing Django Admin Change List

Every ModelAdmin attribute that shapes the Django admin change list: list_display, list_filter, search_fields, ordering, and more, with what each does.

Read more →
Kostja Palović

Ordering in Django Admin

Control the default order of the Django admin change list with ModelAdmin.ordering and Meta.ordering, and see which of the two wins when both are set.

Read more →
Kostja Palović

Adding links to related objects and columns in Django Admin

Turn Django admin columns into links to related objects, so a customer name or an order date opens the change view instead of only the ID column.

Read more →
Kostja Palović

Pre-populate SlugField in the Django Admin Site

Fill a Django SlugField automatically from the title with prepopulated_fields, so nobody types a slug by hand in the admin. A one line customization.

Read more →
Kostja Palović

How to Add Custom Actions to Django admin

Add custom actions to the Django admin dropdown: define them inside a ModelAdmin or outside it, act on the selected rows, and report the result back.

Read more →
Kostja Palović

Deploy Django to Digital Ocean Droplet

Learn how to easily deploy a Django Project to Digital Ocean Droplet, setup environment variables, Add databases and have SSL certificate issued.

Read more →
Kostja Palović

Deploy Django to Google Cloud Platform(GCP)

How to create a Google Cloud (GCP) VM and deploy a Django project, create a database and access the site via HTTPS.

Read more →