Open in app
Home
Notifications
Lists
Stories

Write
Nima dorostkar
Nima dorostkar

Home
About

May 5

Deploy Django app with Nginx and Gunicorn

Django Deployment with Gunicorn & Nginx We can simply start a Django with python manage.py runserver 8080, so why do we need to deploy Django with Gunicorn & Nginx? As per django runserver documentation, the django runserver has not gone through security audits or performance tests hence DO NOT USE…

Nginx

3 min read

Deploy Django app with Nginx and Gunicorn
Deploy Django app with Nginx and Gunicorn

May 5

Django Signals(Sync/Async)

Any developer who has worked with Django in a professional capacity must have had some interaction with signals and signal handlers to achieve great things. The signal dispatcher provided by Django is a mysterious utility. Designed and developed on the Observer Design Pattern, the signals connect decoupled applications of a…

Django

4 min read

Django Signals(Sync/Async)
Django Signals(Sync/Async)

Mar 10

Django & Postman: 403 CSRF verification failed?

Possible solutions: Unsafe but easy way: Disable CSRF verification by adding @csrf_exempt decorator to the view from django.views.decorators.csrf import csrf_exempt # ...@csrf_exempt def my_view(request): # ... 2. Safe way: Fetch the CSRF token with additional Postman script and use it later Sources: https://avilpage.com/2019/02/django-tips-csrf-token-postman-curl.html 1) Add the following line to Tests…

Django

2 min read

Django & Postman: 403 CSRF verification failed?
Django & Postman: 403 CSRF verification failed?

Feb 23

How to Make a Webhook Receiver in Django

Webhooks (aka HTTP callbacks) are a fantastic way to connect all the various services we as developers depend on now. Unfortunately, I haven’t see a great walk-thru of how to make a HTTP callback receiver/consumer. So while you’re going to see a lot of code below, you’re not going to…

Webhooks

3 min read

How to Make a Webhook Receiver in Django
How to Make a Webhook Receiver in Django

Jan 26

Build a REST API with Django REST Framework

Building a REST API in Django is so super easy. In this tutorial, we’ll walk through the steps to get your first API up and running. (This post is part of a series where I teach how to deploy a React front end on a Django back end. However, nothing…

Django

12 min read

Build a REST API with Django REST Framework
Build a REST API with Django REST Framework

Dec 19, 2021

11 Beautiful Words to Make You Fall in Love With the Persian Language

Persian is one of the oldest Indo-European languages in the world. It’s soft-sounding, romantic and full of passion. For Iranians, poetry plays a significant part in their culture, and they study it as part of the curriculum from a young age at school. …

Iran

4 min read

11 Beautiful Words to Make You Fall in Love With the Persian Language
11 Beautiful Words to Make You Fall in Love With the Persian Language

Nov 4, 2021

django template context processor

Let’s talk about context processors and see how you can use them effectively in your Django projects. “A context processor has a simple interface: it’s a Python function that takes one argument, an HttpRequest object, and returns a dictionary that gets added to the template context. …

2 min read


Sep 5, 2021

Best Open Source Django Packages of 2020

The Django web framework consists of multiple modules or packages that allow developers to quickly write the application without having to engineer an app’s backend from scratch. …

Django

8 min read

The Django web framework consists of multiple modules or packages that allow developers to quickly…
The Django web framework consists of multiple modules or packages that allow developers to quickly…

Apr 18, 2021

Object Detection using YOLOv3

YOLOv3 is the latest variant of a popular object detection algorithm YOLO — You Only Look Once. The published model recognizes 80 different objects in images and videos, but most importantly it is super fast and nearly as accurate as Single Shot MultiBox (SSD). Starting with OpenCV, you can easily…

Object Detection

2 min read


Mar 22, 2021

How to Extend Django User Model

The Django’s built-in authentication system is great. For the most part we can use it out-of-the-box, saving a lot of development and testing effort. It fits most of the use cases and is very safe. But sometimes we need to do some fine adjustment so to fit our Web application. …

Django

9 min read

How to Extend Django User Model
How to Extend Django User Model
Nima dorostkar

Nima dorostkar

BackEnd Dev, Django

Following
  • Saeed Souzangar

    Saeed Souzangar

  • Zaryab Afser

    Zaryab Afser

  • jadi

    jadi

  • Sahand Mahdavi

    Sahand Mahdavi

  • Soheil Alavi

    Soheil Alavi

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable