Tag archives: python

RSS feed of python

Idea of the day: dj-cache-url

Published Sept. 1, 2016 in Development - Last update on Sept. 1, 2016.

I was working in a Django project, more precisely its settings, I stopped in front of CACHES parameter, I love when code use an agnostic way and in Django settings I love to use dj-database-url to configure DATABASES, so I made the same for CACHES: At this time dj-cache-url was born.

dj-database-url ?

I won't ...

Continue reading

Dynamic documentation of Django commands

Published Aug. 7, 2016 in Development, Documentation, Web - Last update on Aug. 7, 2016.

I'm updating Django-DBBackup's documentation and don't want to copy/paste piece of code in docs, especialy commands' usages text. Fortunately optparse and argparse have the helpful parser.print_usage() method. Unfortunately there's no Sphinx plugin to simply get these outputs and include in docs. It's time to get on the job.

Continue reading

Compatibility optparse argparse Django

Published Aug. 5, 2016 in Development, Tests and quality - Last update on Aug. 5, 2016.

Django 1.10 is here ! Above its new features there are some deleted code and I came up against optparse removing. To be honest, this module is deprecated since Python 2.7 (still here in 3.6), deprecated in Django since 1.7 and removed in 1.10.

Don't blame me too fast, I ...

Continue reading

subprocess.Popen aped

Published July 30, 2016 in Development, Tests and quality - Last update on July 30, 2016.

Lately, I worked on Django DBBackup, I was remaking the database command system: classes allowing launching of backup or restore commands through subprocess.Popen. There was no unit tests and major part of them are based on command line but contrary to what I though mock out Popen took me a some time.

Continue reading

Photo section is officialy here

Published July 24, 2016 in Development, Photography, Web - Last update on July 24, 2016.

It's been several months now I release Flickr-Pony and implement a photo gallery on my website. I choosed Unite Gallery for displaying my photos, a nice JS library for create a wall of pics (or slider, or other). I firstly implement it fastly and all works perfectly, but, as usual, some improvements could be ...

Continue reading

Favicon with Django on iPhone, Android, Desktop, Windows and all the family

Published April 28, 2016 in Development, Web - Last update on April 28, 2016.

Every web developer has already play with favicon.ico, the simple tag for add an icon on browser tabs or starred page. For noobies it's:

<link rel="icon" href="/favicon.ico">

But nowadays with all the existing client platforms just this tag isn't sufficient. There are Apple devices, Android, Windows (huch) for ...

Continue reading

Django do analytics

Published April 17, 2016 in Development, Web - Last update on April 17, 2016.

There are now few months I want to install A Piwik and see who's coming in my website. My blog isn't a wordpress one and I always have the same problem: I do not want to install PHP on my webserver. I had Piwik in head because I want to self-host my analytic ...

Continue reading

Flickr as Django Storage

Published April 1, 2016 in Cloud, Development, Web - Last update on April 8, 2016.

As explained in previous article, I decided to store my photos on Flickr. It isn't written on the paper but's it's a quite cheap cloud solution. And like all object storage, it has a public HTTP API for automate actions. Open source communities purpose a lot of client implementation in many languages ...

Continue reading

Make programmatically my resume

Published Dec. 3, 2015 in Development, Web - Last update on Dec. 3, 2015.

I'm looking for a new job, so I need to update my resume again. As a Django Dev I should store and display these data in my blog's about page. Because I'm a geek, I chose to write a Django third application for this usage and integrate it in my blog project. Obviously this app is free on GitHub: ZuluPro/django-cv.


For those who don't want to read too much (they are a lot) the result is here: django-cv-demo.herokuapp.com/1/

Continue reading

I tested all SaaS CI tools

Published Nov. 23, 2015 in Cloud, Deployment, Development - Last update on Nov. 23, 2015.

I really hate Jenkins for several non-objective reasons and it's not a classic hatred, more a life struggle where all episode begin by my signature on an employment contract. Most societies made the effort to open a private Gitlab but ask them to forget Jenkins and move into CI tools into SaaS is clearly unbelievable.

It is ...

Continue reading