Django serve media files in production using nginx

How to serve media file in Django production environment

Django does not server media files itself, this is the responsibility of whichever web server you are using in production.

The best options are:

    1. Nginx
    2. Apache

In this tutorial we will check how to serve media files in production environm...

Author: sghaier
Highlight source code

How to highlight source code with Tinymce rich text editor

In the post i will try to explain how to highlight source code using Tinymce with Django web framework.

If you didn't install Tinymce text editor, please check my previous post, once you finish you can continue with this tutorial 

So as you migh...

Author: sghaier
Django framework logo

Django adding spaces and quotation marks when pushing string to templat

Explain the problem

Environment :

  • Django: 2.1.1
  • OS: Linux

While working on a blog project, i was trying to set the title of the web pages to a dynamic value, i noticed that Django is adding spaces and quotation to the title of the page.

After ...

Author: sghaier
Postgresql remote access

How to enable remote access to PostgreSql server

In order to connect to a PostgreSQL (installation) instance remotly there are some configurations that needs to be done in order to tell PostgreSQL to listen to external IPs.

Step 1 - Connect to the remote server

Open your terminal and connect to the...

Author: sghaier
Django framework logo

How to install django-tinymce WYSIWYG editor

Hello everyone !

So django tinymce is a small but useful rich text editor, which allow you to write a rich blog post like the one you are reading now.

so let's go step by step, on how to install it and use it.


First you need to install...

Author: sghaier

Setup PostgreSQL database for Django

When deploying a django project to production environment it is better to use PostgreSQL database. 

In the following tutorial we will go through the installation and configuration of both PostgreSQL and Django

step by step and explain how to con...

Author: sghaier

Quick actions

Filter posts based on the following filters.

  • Latest Posts
  • Announcements
  • Calendars
  • etc

Seach posts by tags

Click the tag name to filter the posts