Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Why Your Dockerized Application Isn’t Receiving Signals
Proper cleanup when terminating your application isn’t less important when it’s running inside of a Docker container. Although it only comes down to making sure signals reach your application and handling them, there’s a bunch of things that can go wrong. -
Introduction to Django Framework
Django is an open source Python based web framework for building web applications quickly and effortlessely .It's a pragmatic framework designed for developers working on projects with dead lines .It's perfect for quickly creating prototypes and then continue building them after clients approval . Django uses Python language , a general purpose ,powerful , feature rich programming language ,and follows a Model View Controller (MVC) design pattern .But what is MVC ? What is MVC ? MVC is a software architectural design pattern which encourages separation of concerns and seamless cooperation between designers and developers when working on the same project .It basically divides or separates your app into three parts : The Model , the View and the Controller . The Model is responsible for data storage and management . The View is responsible of representing and rendering the user interface or view . The Controller is responsible for handling logic to control the user interface and work with data model. Thanks to MVC you as a developers can work with controller to handle model data without being concerned about the user interface which is left to designers so if anything changes on the side of designers on the … -
Installing Development Environment On Windows ,Linux and MAC
Python is a portable programming language that can be used anywhere its runtime environment is installed . Django is a Python framework which can be installed on any system which supports Python language . In this tutorial part we are going to see how to install Python and Django on major available operating systems i.e Windows , Linux and MAC . Installing Python Depending on your operating system you may need or may not need to install Python .In Linux and MAC OS Python is included by default ,you may only need to update it if the installed version is outdated . Installing Python On Windows Python is not installed by default on Windows so you'll need to grab the official installer from the official Python website at http://www.python.org/download/ . Launch the installer and follow the wizard to install Python just like any other Windows program . Also make sure to add Python root folder to system path environment variable so you can execute the Python executable from any directory using the command prompt . Next open a command prompt and type python .You should be presented with a Python Interactive Shell printing the current version of Python and prompting … -
Learn Django From Scratch By Building A Real Estate Web Application
Throughout this beginner's tutorial we are going to learn how to build web applications with Python and Django framework .This tutorial assumes no prior experience with Django so we will be covering the the basic concepts and elements of Django by emphasizing essential theory with practice .Basically we are going to learn Django fundamental concepts while building a real world real estate web application starting from the idea to database design to full project implementation and deployment . This tutorial doesn't only cover fundamental basics of Django but also advanced concepts such as how to use and integrate Django with modern front end frameworks like Angular 2+ and React . -
Introduction to Django Framework
Django is an open source Python based web framework for building web applications quickly and effortlessely .It's a pragmatic framework designed for developers working on projects with dead lines .It's perfect for quickly creating prototypes and then continue building them after clients approval . Django uses Python language , a general purpose ,powerful , feature rich programming language ,and follows a Model View Controller (MVC) design pattern .But what is MVC ? What is MVC ? MVC is a software architectural design pattern which encourages separation of concerns and seamless cooperation between designers and developers when working on the same project .It basically divides or separates your app into three parts : The Model , the View and the Controller . The Model is responsible for data storage and management . The View is responsible of representing and rendering the user interface or view . The Controller is responsible for handling logic to control the user interface and work with data model. Thanks to MVC you as a developers can work with controller to handle model data without being concerned about the user interface which is left to designers so if anything changes on the side of designers on the … -
Installing Development Environment On Windows ,Linux and MAC
Python is a portable programming language that can be used anywhere its runtime environment is installed . Django is a Python framework which can be installed on any system which supports Python language . In this tutorial part we are going to see how to install Python and Django on major available operating systems i.e Windows , Linux and MAC . Installing Python Depending on your operating system you may need or may not need to install Python .In Linux and MAC OS Python is included by default ,you may only need to update it if the installed version is outdated . Installing Python On Windows Python is not installed by default on Windows so you'll need to grab the official installer from the official Python website at http://www.python.org/download/ . Launch the installer and follow the wizard to install Python just like any other Windows program . Also make sure to add Python root folder to system path environment variable so you can execute the Python executable from any directory using the command prompt . Next open a command prompt and type python .You should be presented with a Python Interactive Shell printing the current version of Python and prompting … -
Introduction to Django Framework
Django is an open source Python based web framework for building web applications quickly and effortlessely .It's a pragmatic framework designed for developers working on projects with dead lines .It's perfect for quickly creating prototypes and then continue building them after clients approval . Django uses Python language , a general purpose ,powerful , feature rich programming language ,and follows a Model View Controller (MVC) design pattern .But what is MVC ? What is MVC ? MVC is a software architectural design pattern which encourages separation of concerns and seamless cooperation between designers and developers when working on the same project .It basically divides or separates your app into three parts : The Model , the View and the Controller . The Model is responsible for data storage and management . The View is responsible of representing and rendering the user interface or view . The Controller is responsible for handling logic to control the user interface and work with data model. Thanks to MVC you as a developers can work with controller to handle model data without being concerned about the user interface which is left to designers so if anything changes on the side of designers on the … -
Installing Development Environment On Windows ,Linux and MAC
Python is a portable programming language that can be used anywhere its runtime environment is installed . Django is a Python framework which can be installed on any system which supports Python language . In this tutorial part we are going to see how to install Python and Django on major available operating systems i.e Windows , Linux and MAC . Installing Python Depending on your operating system you may need or may not need to install Python .In Linux and MAC OS Python is included by default ,you may only need to update it if the installed version is outdated . Installing Python On Windows Python is not installed by default on Windows so you'll need to grab the official installer from the official Python website at http://www.python.org/download/ . Launch the installer and follow the wizard to install Python just like any other Windows program . Also make sure to add Python root folder to system path environment variable so you can execute the Python executable from any directory using the command prompt . Next open a command prompt and type python .You should be presented with a Python Interactive Shell printing the current version of Python and prompting … -
Learn Django From Scratch By Building A Real Estate Web Application
Throughout this beginner's tutorial we are going to learn how to build web applications with Python and Django framework .This tutorial assumes no prior experience with Django so we will be covering the the basic concepts and elements of Django by emphasizing essential theory with practice .Basically we are going to learn Django fundamental concepts while building a real world real estate web application starting from the idea to database design to full project implementation and deployment . This tutorial doesn't only cover fundamental basics of Django but also advanced concepts such as how to use and integrate Django with modern front end frameworks like Angular 2+ and React . -
Angular Error: "No Provider for Module..."
The error "No Provider for Mod... -
Angular 2+ with Django Rest Framework tutorial (Part 3): Create database models
This is part 3 of our tutorial series to learn how to use Django Rest Framework with Angular 2+ by building a simple product inventory manager . Django REST framework (DRF) with Angular 2+ tutorial (Part 1) Django REST framework (DRF) with Angular 2+ tutorial (Part 2) Django REST framework (DRF) with Angular 2+ tutorial (Part 3) On the first part we have installed Django and created the server side project . On the second part we have installed Angular 2+ and created the client side project . In this part we are going to create a Django app and database models . Creating the Django app Lets start by creating a Django app so head over to your terminal and enter : cd ProductInventoryManager python manage.py startapp core Then open your project settings.py and add this app to the list of installed apps INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'core' ] Now we are ready to add database models . Open core/models.py and get ready to add models . Creating database models Users can create products ,families ,locations and add transactions .A product belongs to a family of products and has a location .To move … -
Angular 2+ with Django Rest Framework tutorial (Part 3): Create database models
This is part 3 of our tutorial series to learn how to use Django Rest Framework with Angular 2+ by building a simple product inventory manager . Django REST framework (DRF) with Angular 2+ tutorial (Part 1) Django REST framework (DRF) with Angular 2+ tutorial (Part 2) Django REST framework (DRF) with Angular 2+ tutorial (Part 3) On the first part we have installed Django and created the server side project . On the second part we have installed Angular 2+ and created the client side project . In this part we are going to create a Django app and database models . Creating the Django app Lets start by creating a Django app so head over to your terminal and enter : cd ProductInventoryManager python manage.py startapp core Then open your project settings.py and add this app to the list of installed apps INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'core' ] Now we are ready to add database models . Open core/models.py and get ready to add models . Creating database models Users can create products ,families ,locations and add transactions .A product belongs to a family of products and has a location .To move … -
Django REST framework (DRF) and Angular 2+ tutorial (Part 2)
This is part 2 of these tutorial series to learn how to use Python Django framework with Angular 2+ (When writing this second tutorial part It's already Angular 4 ) to create Restful or Rest based web apps . Django REST framework (DRF) with Angular 2+ tutorial (Part 1) Django REST framework (DRF) with Angular 2+ tutorial (Part 2) Django REST framework (DRF) with Angular 2+ tutorial (Part 3) There are many frameworks or packages to build Rest APIs with Django .In this tutorial we are going to use Django Rest Framework or DRF which makes the process of building restful APIs dead easy . In the first tutorial part we have seen an introduction to both Django and DRF ,installed Django and DRF then created a new project . In the second part we are going to first see an introduction to Angular 2+ framework ,next we are going to install the Angular CLI utility and then use it to generate our Angular 2+ project,or precisely Angular 4 project when writing this tutorial. What is Angular 2 ? Angular 2+ or officially just Angular is a client side framework built by Google to create Desktop and mobile web apps … -
Django REST framework (DRF) and Angular 2+ tutorial (Part 2)
This is part 2 of these tutorial series to learn how to use Python Django framework with Angular 2+ (When writing this second tutorial part It's already Angular 4 ) to create Restful or Rest based web apps. Django REST framework (DRF) with Angular 2+ tutorial (Part 1) Django REST framework (DRF) with Angular 2+ tutorial (Part 2) Django REST framework (DRF) with Angular 2+ tutorial (Part 3) There are many frameworks or packages to build Rest APIs with Django .In this tutorial we are going to use Django Rest Framework or DRF which makes the process of building restful APIs dead easy . In the first tutorial part we have seen an introduction to both Django and DRF ,installed Django and DRF then created a new project . In the second part we are going to first see an introduction to Angular 2+ framework ,next we are going to install the Angular CLI utility and then use it to generate our Angular 2+ project,or precisely Angular 4 project when writing this tutorial. What is Angular 2 ? Angular 2+ or officially just Angular is a client side framework built by Google to create Desktop and mobile web apps with … -
Uçmak Hayal Değil Gerçek !
Her bütçeye hitap eden Sunexpress uçak bileti fiyatlarını duyunca siz de artık yolculuklarınızda hava yolunu tercih edeceksiniz. Bunun için www.alobilethatti.com sitesine giriş yapmanız ve detaylar hakkında araştırma yapmanız yeterli olacaktır. Uçak ile seyahat etmek artık hayal değil. Çok uygun fiyata bilet fiyatları ile artık herkes hava yolu taşımacılığından yararlanabilmektedir. Yıllar önce uçak biletleri pahalı olduğu... Uçmak Hayal Değil Gerçek ! yazısı ilk önce Python Türkiye üzerinde ortaya çıktı. -
Linux Yaz Kampı 2017
2017 Linux Yaz Kampı Linux Yaz Kampı 2017, 21 Temmuz-5 Ağustos tarihlerinde Bolu’da düzenleniyor. Kampa başvurular 15-30 Haziran tarihleri arasında yapılıyor.   Linux Kullanıcıları Derneği, İnternet Teknolojileri Derneği ve Bolu Abant İzzet Baysal Üniversitesi‘nin organizasyonunu üstlendiği etkinlikte, farklı alanlarda, farklı bilgi düzeylerine hitap eden paralel sınıflarda gerçekleştirilen eğitimlere katılım ücretsizdir. Katılımcılardan yalnızca kendi yol/konaklama/yemek masraflarını... Linux Yaz Kampı 2017 yazısı ilk önce Python Türkiye üzerinde ortaya çıktı. -
Python’da Fonksiyonel Programlamaya Giriş: [1] Nedir, Yenir mi?
{Merhabalar, gençler. Uzun zamandır yazmıyorum. Bunda biraz okulun, biraz da yeni şeyler öğrenmenin katkısı da var. Yazmamamın sebebi de kafamda bir şeyleri oturtmam gerektiği. Bu zaman kendime stack aramakla geçti biraz. Backend stack’ı olgun bir şekilde oturttum, ama frontend stack’ta hala sıkıntılar çekiyorum. Bir backend geliştirici olarak, frontend’in harbi harbi tanrı vergisi olduğunu düşünmeye başladım.... Python’da Fonksiyonel Programlamaya Giriş: [1] Nedir, Yenir mi? yazısı ilk önce Python Türkiye üzerinde ortaya çıktı. -
Python’da Fonksiyonel Programlamaya Giriş: [2] Lambda, Map, Filter, Reduce
Önemli Not: Python 3 kullanıyorum. Bu not, serinin devamı için de geçerlidir. Python’un ikinci sürümünden sonra bu fonksiyonlarda özellikle performans vaadeden radikal değişimler oldu. Bunlara değinmeyeceğim ve üçüncü sürümü kullandığınızı varsayacağım. Özellikle hangi sürüm diye soracak olursanız, 3.5.1 iyidir. Şimdi, geçen yazımızı “Döngülerden kaçınmalıyız, performansta düşüşlere sebep olabiliyor.” demiştik. Öyle, ama konunun biraz daha ayrıntısına inelim. Performans O... Python’da Fonksiyonel Programlamaya Giriş: [2] Lambda, Map, Filter, Reduce yazısı ilk önce Python Türkiye üzerinde ortaya çıktı. -
Django Hızlı ve Basit Site Yayınlama – Djeasy
Django framework ile geliştirilmiş bir web siteyi yayınlamaya kalktığımızda, bir çok teknoloji ile karşılaşiyoruz örneğin; Nginx Gunicorn Uwsgi Supervisor Apache … Bu şekilde devam ediyor ve uygun teknoloji seçip gerekli kurulumları yaparken, baya bir cebelleşiyoruz , el pratiği olan biri için bile django site yayınlama süresi en az 30dk diyebilirim. Bu soruna çözüm bulmak adına Djeasy adlı paketi geliştirmeye başladım ve gerçekten iyi konuma geldi. Kısaca; Nginx ve Gunicorn kullanarak, django sitenizi 2-3dk içerisinde ayağa kaldırmaktadır. Nginx için gerekli css,js vb. sıkıştırma ayarlarından gerekli optimize ayarlarınızda standart olarak eklemektedir. Gunicorn içinde gerekli işçi ayarlamalarını standart olarak ayarlamaktadır. Paket Uyumlulukları Django 1.8+ Python 3.x + Debian Türevleri : Ubuntu vb. Kurulum sudo apt-get install python-pip sudo apt-get install python3-pip sudo apt-get install virtualenvpip3 install djeasy Ayarlar Djeasy paketin doğru çalışması için, belli başlı şartlar bulunmaktadır. Bunları listeleyelim; Proje klasörü içerisinde requirements.txt adlı belge kesinlikle olmadır. Hangi modülleri hangi paketleri kullandıysanız, kesinlikle yazın djeasy otomatik olarak kurmaktadır. Örnek : requirements.txt Django settings.py içerisindeki “ALLOWED_HOSTS = []” içerisinde ip veya domain adresini yazmayı unutmayın. Yukarıda yazdığım, iki adet şart düzgün şekilde uyar iseniz çok hızlı şekilde sonuç alabilirsiniz. Kullanımı Terminal üzerinden, kullanım örneklerine bakalım.djeasyKomutu girdikten sonra, paket hakkında bilgi mesajları gelmektedir.--create Create a … -
Django Framework Nedir?
Web Programçılığı Web sayfalarının giderek yaygınlaşması ve kullanıcı ile etkileşmeye ihtiyacının olması nedeniyle CGI(Common Gateway Interface) ile başladığını söyleyebiliriz. CGI yönetemi ile etkileşimli web sayfaları üretmek oldukça pahalı bir iştir. Çünkü sunucuya CGI programının yapacağı her istek geldiğinde, program çalıştırılır. Dış program derlemeli bir dil ile yazılmış veya yorumlanabilir bir dil ile yazılmış olabilir. Yazılımın öncelik olarak yorumlamalı olduğunu varsayalım : Önce Python çalışır, daha sonra yazılan CGI betiği okunur. Okunan CGI betiği veritabanı bağlantısı kurar ve işi bittiğinde süreç sonlanır. Bu hem yavaş, hem de sunucu üzerinde büyük yük oluşturur. CGI’den daha hızlı çalışan çeşitli yöntemler keşfedilmiştir. En performanslı olanı ise web sunucusu ile bütünleşmiş bir yorumlayıcının dış program kodlarını yorumlamasıdır. Bu durumda sadece betik kodları okur ve işini yapar. Django ve php böyle çalışır ama Django python mod_python veya mod_wsgi modüllerini kullandığı için performansı daha yüksektir. Django Nedir? Web programçılığın kökeni CGI‘ye (Common Gateway Interface) dayanır. CGI’de genel mantık, kullanıcıdan gelen veriyi ya değişkenden ya da standart girdiden alır ve kullanıcıya gidecek tüm veriyi standart çıktıya yazar. CGI bazı durumlarda halen tercih edilse bile, artık web programçılığı tamamen farklı bir boyut kazanmıştır. Php dili gibi kendisini sadece web programcılığına adamış programlama dilleri bile, programcıların web isteklerini karşılamaya yetmemektedir. … -
Python at Instagram (PyCon 2017 Must-See Talk 2/6)
Part two of six in the 2017 edition of our annual PyCon Must-See Series, highlighting the talks our staff especially loved at PyCon. While there were many great talks, this is our team's shortlist. One of the talks that I considered a must-see was a keynote presentation by Instagram employees Lisa Guo and Hui Ding about upgrading Python and Django. This is something that many businesses know they "should" do, but think is too impractical "right now". Instagram performed an upgrade without any downtime and without slowing down the pipeline of new features. Caktus carries out Django upgrades as part of our managed hosting and upgrade protection services, so this talk was especially relevant to what we do as a company. -
CSV file to Django Models
Handling CSV (comma separated ... -
Sendgrid Email settings for Django
*[Sendgrid](https://sendgrid.c... -
Use Gmail for Email in Django
This is a simple way to setup ... -
Configure Email in Django
Email configuration is simple....