Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
How to Integrate a C Library into an iOS App Written in Swift
Nowadays, everyone values privacy and security. That’s why it wasn't surprising when, recently, we needed to use an encryption library on one of our Distillery projects. For the project in question, the decision was made to use libsignal. Originally developed for Signal Private Messenger, libsignal has a good reputation among security specialists. The post How to Integrate a C Library into an iOS App Written in Swift appeared first on Distillery. -
Podcast.__init__ Interview - The Business of Technical Authoring
An interview with Tobias Macey on learning and teaching Django. -
Alexa, What Can You Teach Me Today? Distillery Developer Attends Alexa Dev Day
We shouldn’t take Alexa for granted. While Amazon’s intelligent assistant may seem capable of answering our every whim and inquiry, it takes a lot of behind-the-scenes development to make it happen. Just ask Distillery Android Developer Dmitry Sitnikov. The post Alexa, What Can You Teach Me Today? Distillery Developer Attends Alexa Dev Day appeared first on Distillery. -
Alexa, What Can You Teach Me Today? Distillery Developer Attends Alexa Dev Day
We shouldn’t take Alexa for granted. While Amazon’s intelligent assistant may seem capable of answering our every whim and inquiry, it takes a lot of behind-the-scenes development to make it happen. Just ask Distillery Android Developer Dmitry Sitnikov. The post Alexa, What Can You Teach Me Today? Distillery Developer Attends Alexa Dev Day appeared first on Distillery. -
Alexa, What Can You Teach Me Today? Distillery Developer Attends Alexa Dev Day
We shouldn’t take Alexa for granted. While Amazon’s intelligent assistant may seem capable of answering our every whim and inquiry, it takes a lot of behind-the-scenes development to make it happen. Just ask Distillery Android Developer Dmitry Sitnikov. The post Alexa, What Can You Teach Me Today? Distillery Developer Attends Alexa Dev Day appeared first on Distillery. -
Distillery Developer Attends Scala Days Conference in New York
At the 2018 Scala Days North America conference, Distillery Scala Developer Artem Mitrakov learned many things. Chiefly, however, he learned how incredibly much there is to learn about Scala. The Scala community is steaming ahead, actively developing Scala-based technologies and frameworks (e.g., Apache Spark, Akka Streams, Akka HTTP, Apache Kafka) that, according to Artem, “can help make apps more efficient, stable, and robust.” The post Distillery Developer Attends Scala Days Conference in New York appeared first on Distillery. -
Distillery Developer Attends Scala Days Conference in New York
At the 2018 Scala Days North America conference, Distillery Scala Developer Artem Mitrakov learned many things. Chiefly, however, he learned how incredibly much there is to learn about Scala. The Scala community is steaming ahead, actively developing Scala-based technologies and frameworks (e.g., Apache Spark, Akka Streams, Akka HTTP, Apache Kafka) that, according to Artem, “can help make apps more efficient, stable, and robust.” The post Distillery Developer Attends Scala Days Conference in New York appeared first on Distillery. -
Distillery Developer Attends Scala Days Conference in New York
At the 2018 Scala Days North America conference, Distillery Scala Developer Artem Mitrakov learned many things. Chiefly, however, he learned how incredibly much there is to learn about Scala. The Scala community is steaming ahead, actively developing Scala-based technologies and frameworks (e.g., Apache Spark, Akka Streams, Akka HTTP, Apache Kafka) that, according to Artem, “can help make apps more efficient, stable, and robust.” The post Distillery Developer Attends Scala Days Conference in New York appeared first on Distillery. -
Django Filters Problem: How To Display All Results When The Filter Is Not Set
If a view extends django-filter's FilterView it may look similar to this: from django_filters.views import FilterView from .filters import JobFilter class JobList(FilterView): model = Job paginate_by = 20 filterset_class = JobFilter JobFilter has a single filter field city that filters jobs by city and generate URL like /jobs/?city=London ... Read now -
Angular API Calls with Django, Part 2: Building the Micro-Blog App
Angular API Calls with Django, Part 2: Building the Micro-Blog App Keith Dechant Sun, 09/09/2018 - 07:24 This is the second part of a two-part series exploring the use of the Angular 6 HttpClient to make API calls against a Django back-end using Django Rest Framework. In the first part, we learned how to authenticate against Django using the Django Rest Framework JWT package. This post demonstrates how to set up the Django models and views for the micro-blogging app, as well as the Angular Service and templates. -
Step 1: Disinterring and Reviving To Life
I shelved/buried my blog when I upgraded to a new Slicehost Linode six years ago. I didn't have it on Github or Gitlab, or on my personal dev machine, and it seemed to be completely purged from my little server. My last hope was the tarball labelled fullbackup.tar.gz in the home dir of the server. Oh, but by the way, my server was out of disk space and I was doing all this while on vacation in rural Nova Scotia, where high speed Internet is still a far-away dream. Step 0: Bytes. Their Burdensome Storage. Their Inscrutable Movement. One of the first things I learned was how to get Linux to expand its volume to use up new capacity generously granted to me by Linode. After trying lots of things and fretting about how I hadn't set up lfs and so on, here's what I found out: You go to the Linode manager site You click the volume you want to increase You set the new size (I pushed it up to the new maximum of my plan) That's it. Well, I think I had to power off my VM while I did that. I can't remember. Anyway, I'm still … -
This Is An Old Blog
This blog started in the winter of 2008. I'd been in the industry for a few years and Django had reached 1.0. I figured it was time to make myself a blog, knowing, even then, that it was completely unnecessary. I just wanted the practice. My last post (something not-that-great about Christmas) was, until now, from December 2012. Anyway, a lot has changed in the software world. I've also caught up with a few things I wish I'd known 10 years ago. So, lacking anything else to write about. I'm going to try and refurbish this blog and write about that. Here's just a few of the things to address: deployment - this thing deployed via git, I wouldn't mind making it into a tidy little docker image Django version - running on Django 1.0, which is only 13 major releases out of date CI/CD - didn't have any, now I want some tests - LOL new server - this thing is snuggled into a janky 14.04 server. I want to move to my new 18.04 server new postgres - the older server's running Postgresql 9.3 new design - It'd be nice if this thing looked a little better disable … -
Django Tips #1: makemigrations command
Why it's a best practice to explicitly call makemigrations -
Django Tips #2: Imports
Python and Django best practices for imports. -
django-registration 3.0
Today I’m pleased to announce the release of django-registration 3.0. This is a pretty big update, and one that’s been coming for a while, so I want to take a moment to go briefly through the changes (if you want the full version, you can check out the upgrade guide in the documentation). This also marks the retirement of the 2.x release series of django-registration; 2.5.2 is on PyPI, and I intend ... Read full entry -
Why Use A DevOps Pipeline Diagram Generator To Visualize Optimization
DevOps, short for development and operations, is a hot topic in the technology sector. That is because optimizing DevOps pipelines is a crucial component of business strategies for many operations today. Recently, new tools have been made available online that make DevOps pipeline optimization much simpler for those professionals responsible for the job. These tools make it possible to create a DevOps process flow diagram that allows you to visualize your entire DevOps process. Find out the advantages of using a DevOps pipeline diagram generator in the post below. The post Why Use A DevOps Pipeline Diagram Generator To Visualize Optimization appeared first on Distillery. -
Why Use A DevOps Pipeline Diagram Generator To Visualize Optimization
DevOps, short for development and operations, is a hot topic in the technology sector. That is because optimizing DevOps pipelines is a crucial component of business strategies for many operations today. Recently, new tools have been made available online that make DevOps pipeline optimization much simpler for those professionals responsible for the job. These tools make it possible to create a DevOps process flow diagram that allows you to visualize your entire DevOps process. Find out the advantages of using a DevOps pipeline diagram generator in the post below. The post Why Use A DevOps Pipeline Diagram Generator To Visualize Optimization appeared first on Distillery. -
Why Use A DevOps Pipeline Diagram Generator To Visualize Optimization
DevOps, short for development and operations, is a hot topic in the technology sector. That is because optimizing DevOps pipelines is a crucial component of business strategies for many operations today. Recently, new tools have been made available online that make DevOps pipeline optimization much simpler for those professionals responsible for the job. These tools make it possible to create a DevOps process flow diagram that allows you to visualize your entire DevOps process. Find out the advantages of using a DevOps pipeline diagram generator in the post below. The post Why Use A DevOps Pipeline Diagram Generator To Visualize Optimization appeared first on Distillery. -
python django
Django Template LanguageThe template language as we explained earlier here we are going to learn more about template language Django template system is not simply python embedded into html this is by design the template system is meant to express presentation not programe logic the django template system provides tags which function similarly to some programming constructs an if tag for boolean tests a for tag for looping etc but these are not simply executed as the corresponding python code and the template system will not execute arbitrary python expressionsTemplatesA template is simply a text file it can generate any text base format (HTML,XML, CSV,etc)which contains variables which get replaced with values when the template is evaluated and tags which control the logic of the templateHere is an example{%extends "base_generic.html"%}{%block title %}{{section .title}}{%endblock%}{%block content%}<h1>{{section.title}}</h1>{%for story in story_list%}<h2><a href="{{story.get_absolute_url}}">{{story.headline|upper}}</a></h2><p>{{story.tease|truncatewords:"100"}}</p>{%endfor%}{%endblock%}VariablesVariables look like this {{variable}} when the template engine encounters a variable it evaluates that variable and replaces it with the result variable names consist of any combination of alphanumeric characters and the underscore ("_") but may not start with an underscore The dot (".") also appears in variable sections although that has a special meaning as indiacated below importantly but we cannot … -
React Basics Tutorial for Django Developers [2018]
In this tutorial, We'll introduce React basics to Django developers. You can use React to build UIs using re-usable components which allows maximum reusability and a virtual DOM that provides better performance. In this tutorial, we'll learn how to include React in a Django template and learn about the basics of React such as components, state and props. But what's virtual DOM? This is the definition from the official React website The virtual DOM (VDOM) is a programming concept where an ideal, or “virtual”, representation of a UI is kept in memory and synced with the “real” DOM by a library such as ReactDOM. This process is called reconciliation. React is nowadays-2018-the most popular front-end library for building User Interfaces. Throughout this tutorial we'll go through a basic understanding of React.js by creating a React application from scratch and step by step. We will focus on the core features of React. After getting the core concepts, you can dive into more learning more comfortably. By following this tutorial, you'll learn: How to get started with React using a <script> tag; How to include React in a Django template; What's a React component; How to create React components; How to use … -
Merging Django ORM with SQLAlchemy for Easier Data Analysis
Development of products with Django framework is usually easy and straightforward; great documentation, many tools out of the box, plenty of open source libraries and big community. Django ORM takes full control about SQL layer protecting you from mistakes, and underlying details of queries so you can spend more time on designing and building your application structure in Python code. However, sometimes such behavior may hurt - for example, when you’re building a project related to data analysis. Building advanced queries with Django is not very easy; it’s hard to read (in Python) and hard to understand what’s going on in SQL-level without logging or printing generated SQL queries somewhere. Moreover, such queries could not be efficient enough, so this will hit you back when you load more data into DB to play with. In one moment, you can find yourself doing too much raw SQL through Django cursor, and this is the moment when you should do a break and take a look on another interesting tool, which is placed right between ORM layer and the layer of raw SQL queries. As you can see from the title of the article, we successfully mixed Django ORM and SQLAlchemy Core … -
Distillery CEO Shares Voice Technology Insight on Forbes
If your business hasn’t started thinking about how it can integrate voice technology, it’s high time to begin. So asserts Distillery CEO and Founder Andrey Kudievskiy in his latest blog on Forbes, “Three Reasons Every Business Should Consider Voice Technology.” The post Distillery CEO Shares Voice Technology Insight on Forbes appeared first on Distillery. -
Distillery CEO Shares Voice Technology Insight on Forbes
If your business hasn’t started thinking about how it can integrate voice technology, it’s high time to begin. So asserts Distillery CEO and Founder Andrey Kudievskiy in his latest blog on Forbes, “Three Reasons Every Business Should Consider Voice Technology.” The post Distillery CEO Shares Voice Technology Insight on Forbes appeared first on Distillery. -
Using Electron with Flask and python-shell
In the previous tutorial, we've seen how to use Electron and python-shell to create Python apps with Electron GUIs. This opens the door for using the modern frontend web technologies, the Node.js and npm modules (the biggest open source repository in the world) and the Python libraries combined to create powerful applications. In this tutorial, we'll use Flask, a popular web framework for building web applications with Python, and Electron to build a desktop application with an Electron GUI. There are many benefits of combining Flask with Electron to build applications, such as: If you are running a Python/Flask web developer, you can use your existing skills to build cross platform desktop applications; If you already have an existing Flask application, you can easily target desktop apps without reinventing the wheel etc. What's Electron? We assume here that you are a Flask developer so an Electron introduction might be useful. Electron is a platform, created by GitHub, to enable developers to create cross-platform desktop applications for Windows, Linux and macOS using web technologies i.e JavaScript, HTML and CSS. Electron is based on Chromium, just like Chrome and Opera (and many browsers) so it's actually a web container. Electron also provides … -
How to Create Custom Django Management Commands
Django comes with a variety of command line utilities that can be either invoked using django-admin.py or the convenient manage.py script. A nice thing about it is that you can also add your own commands. Those management commands can be very handy when you need to interact with your application via command line using a terminal and it can also serve as an interface to execute cron jobs. In this tutorial you are going to learn how to code your own commands. Introduction Basic Example Handling Arguments Positional Arguments Optional Arguments Flag Arguments Arbitrary List of Arguments Styling Cron Job Further Reading Introduction Just before we get started, let’s take a moment to familiarize with Django’s command line interface. You are probably already familiar with commands like startproject, runserver or collectstatic. To see a complete list of commands you can run the command below: python manage.py help Output: Type 'manage.py help <subcommand>' for help on a specific subcommand. Available subcommands: [auth] changepassword createsuperuser [contenttypes] remove_stale_contenttypes [django] check compilemessages createcachetable dbshell diffsettings dumpdata flush inspectdb loaddata makemessages makemigrations migrate sendtestemail shell showmigrations sqlflush sqlmigrate sqlsequencereset squashmigrations startapp startproject test testserver [sessions] clearsessions [staticfiles] collectstatic findstatic runserver We can create our own …