Quantcast
Channel: Krzysztof Żuraw blog's RSS Feed
Browsing all 205 articles
Browse latest View live

Django Haystack and Elasticsearch- part one

Hello! Today blog post is aboutDjango Haystackand how to integrate it quickly withElasticsearch.First after creating django project (At beginning of 2016 django-haystack don’t work properly with django...

View Article


Django Haystack and Elasticsearch- part two

Hello! This is the second part of Django Haystack and Elasticsearch series.Now it’s time to install and elasticsearch. On ubuntu you can do it as follows:1.First install java-8$ sudoapt-getinstall...

View Article


Django cookiecutter

Have you ever wanted to automate all these boring things that you have to do while setting up new django project? Like writing proper settings, setting up whole folder structure, adding docs, readmes,...

View Article

Django + Celery & Rabbit - part one

Hello, today post is first one in series about Celery in Django application and how to use it.What you gain after reading such series?How to integrate celery + rabbitmq in basic Django application.So...

View Article

Django + Celery & Rabbit - part two

Hello, today post is the second one in series about Celery in Django. Today I write aboutffmpeg.In my application transcoding will be performed by ffmpeg. Why is that?First of all, it’s free & open...

View Article


Image may be NSFW.
Clik here to view.

Django + Celery & Rabbit - part three

This is a third part of Celery and RabbitMQ in Django series. Today I will be building the Celery and RabbitMQ stack.First: why we need Celery? Imagine that user upload mp3 file to the application and...

View Article

Django + Celery & Rabbit - part four

This is the fourth part of Celery and RabbitMQ in Django series. Today I will fix minor bugs and sum up this series.Audio File detail viewThe problem was after successful upload django redirect to...

View Article

Image may be NSFW.
Clik here to view.

Moving blog to pelican

Hello! Spring has come so I decided that I need to changes- so I change my blog engine topelican.This blog will be about small compassion between three static site generators and why I choose...

View Article


Image may be NSFW.
Clik here to view.

Automatic blog deployment with TravisCI

Hello! Today I will write about how to automate blog deployment usingTravisCIwith bash scripts.When I first started writing blog using pelican my workflow look as follows:I open one terminal window and...

View Article


Image may be NSFW.
Clik here to view.

My first workshop experience

Hello ! In today’s blog post I present my experiences about some workshop that I have the pleasure to conduct. Later as I promised I will present exercises and their answers.When I joined STX Next I...

View Article

Mocks and monkeypatching in python

Hello, in today’s post I will look onto essential part of testing- mocks.First of all, what I want to accomplish here is to give you basic examples of how to mock data using two tools: mock and pytest...

View Article

My first personal project

Hi, today I wanted to share my thoughts about project that I made calledhistmag to kindle.Why?I really enjoy reading historical articles over the internet. Very good source of such writings in polish...

View Article

Image may be NSFW.
Clik here to view.

Ports and Adapters in python - part one

Welcome! Today I’m going to start series about how to use port and adapter design pattern in simple django application.Let me explain a little bit what exactly ports and adapters design pattern is....

View Article


Ports and Adapters in python - part two

Last time I wrote about how to do simple port & adapter in python. In this post, I will show to actually use them.I briefly remind you what is purpose of application build in this series: user will...

View Article

Ports and Adapters in python - part three

Next part of my application will be module for saving links to read them later.In the last post, I made a reddit search view for the specific keyword that display results to the user. To save them to...

View Article


Image may be NSFW.
Clik here to view.

Two forms one view in django

This post is a reference for myself how to do a simple thing like rendering two forms in one view using django framework.How will it be working? The idea is very simple. There will be only one view to...

View Article

Django application with puppet- part one

This post is a quick tutorial how to provision geodjango application using puppet. While writing this tutorial I have taken the approach that I start with running code and then refactor this to...

View Article


Django application with puppet- part two

I end first post at the moment of pulling code from git. This text is how to setup additional stuff for geodjango application.It’s a good practice in python word to have isolated environments per...

View Article

Design by contract in python- part one

What exactly is design by contract? What is good and what is bad in this approach? What are python libraries that provide support for such design? You can find all these answers in this blog series...

View Article

Design by contract in python- part two

Last time I wrote about py.contracts- today is the time for another python library that helps to design by contracts.This library is called zope.interface. From its GitHub page:Interfaces are a...

View Article
Browsing all 205 articles
Browse latest View live