Open in app

Sign In

Write

Sign In

Adi Ramadhan
Adi Ramadhan

42 Followers

Home

About

Feb 16

Running Django App Image in Docker

Simple Django Apps Image in Docker. Official docs of django and docker. Prerequisite: python and docker installed. Step 1: Preparation, Create Django Project, Inital Migration create virtualenv: virtualenv venv start virtualenv: venv/Scripts/activate install Django in virtualenv: pip install django==3.2 Create Django: django-admin startproject myproject Go to myproject folder: cd myproject Initial Migration: python manage.py migrate…

Django

2 min read

Running Django App Image in Docker
Running Django App Image in Docker
Django

2 min read


Published in DevOps.dev

·Jan 29

Django Run Asynchronous Tasks with Celery and RabbitMQ

It is strongly recommended for long running tasks (processes), it will reduce user waiting time and tasks will be executed as background processes. Official Docs: Django, RabbitMQ, Celery Prerequisite: RabbitMQ Server (localhost, heroku or other rabbitmq server) running as message broker. Step 1: Preparation, Create Django Project create virtualenv: virtualenv venv start…

Django

3 min read

Django Run Asynchronous Tasks with Celery and RabbitMQ
Django Run Asynchronous Tasks with Celery and RabbitMQ
Django

3 min read


Jan 28

Python Celery Asynchronous Tasks with RabbitMQ Broker

Running asynchronous task with Celery Worker and RabbitMQ. It strongly recommended for long running tasks. Prerequisite: RabbitMQ Server (localhost, heroku or other rabbitmq server) Step 1: Preparation create virtualenv: virtualenv venv start virtualenv: venv/Scripts/activate install celery in virtualenv: pip install celery sqlalchemy eventlet Create App Folder: mkdir app Go to myproject folder: cd app…

Python

2 min read

Python Celery Asynchronous Tasks with RabbitMQ Broker
Python Celery Asynchronous Tasks with RabbitMQ Broker
Python

2 min read


Jan 26

Fake Backend API using JSON Server

Simple Fake Backend using JSON Server. Official docs Preparation Install via npm: npm install -g json-server Create db.json file { "users": [ { "id": 1, "username": "user1", "password": "password" }, { "id": 2, "username": "user2", "password": "password" } ] } Run via terminal/CMD json-server --watch db.json

Json Server

2 min read

Fake Backend API using JSON Server
Fake Backend API using JSON Server
Json Server

2 min read


Oct 28, 2022

Django Admin Pagination

Django Admin Model List with Pagination. Using list_per_page in admin.py Project file structure

Django

2 min read

Django Admin Pagination
Django Admin Pagination
Django

2 min read


Jun 24, 2022

Django Taggit: Model Tag, Admin and Filtering

Django Taggit, model tag, registered in admin, and filtering, with bootstrap. Official docs django-taggit. Project structure. templates folder, base.html, articles.html, myapp/urls.py files are manually created, other files are auto-generated.

Django

3 min read

Django Taggit: Model Tag, Admin and Filtering
Django Taggit: Model Tag, Admin and Filtering
Django

3 min read


Jun 20, 2022

Django Filter

A library like django form to filter queryset. Official docs django-filter. Project file structure. templates folder, base.html, books.html, myapp/filters, myapp/urls.py files are manually created (new files), other files are auto-generated.

Django

2 min read

Django Filter
Django Filter
Django

2 min read


Published in Towards Dev

·Jun 15, 2022

Django Form Validation with Bootstrap

Django Form Validation with Bootstrap style. Django form official docs here. Bootstrap validation reference here. Project structure. templates folder, base.html, home.html, success.html, myapp/urls.py files are manually created (new files), other files are auto-generated.

Django

2 min read

Django Form Validation with Bootstrap
Django Form Validation with Bootstrap
Django

2 min read


Published in Towards Dev

·Jun 13, 2022

Django Pagination

Django pagination with class based view and function based view. Official docs here. Style with bootstrap. Project file structure. templates folder, base.html, books.html, myapp/urls.py files are manually created (new files), other files are auto-generated.

Django

2 min read

Django Pagination
Django Pagination
Django

2 min read


Jun 2, 2022

Django Simple Captcha

Django form field with simple captcha. Using django-simple-captcha library. django-simple-captcha official docs here. Step 1: Preparation, Create Django Project create virtualenv: virtualenv venv start virtualenv: venv/Scripts/activate install Django and Django simple captcha in virtualenv: pip install django==3.2 django-simple-captcha Create Django: django-admin startproject myproject Go to myproject folder: cd myproject

Django

2 min read

Django Simple Captcha
Django Simple Captcha
Django

2 min read

Adi Ramadhan

Adi Ramadhan

42 Followers

Software Engineer, Indonesia

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech