Services Blog Français

Best-Practice

Articles tagged "best-practice"

Why CRUDLFA+

2020-07-27
This post describes how I feel Django could be even more awesome to use out of the box ! 1. Non admins ? The problem is pretty obvious: Django admin provides barely anything that’s usable for non-admin, not even working base templates and sane …

GitLab Dynamic Environments with Docker-Compose instead of K8S

2019-04-22
Dynamic Environment is when your pipeline creates a branchname.example.com deployment, for integration tests or manual review. Gitlab in autodevops mode and with Kubernetes lets you enjoy this kind of stuff by just starting projects from their …

coreos

2019-03-27
https://coreos.com/rkt/docs/latest/rkt-vs-other-projects.html

Yourlabs playlabs

2019-03-16
https://github.com/yourlabs/playlabs GitHub release of part of my current production practice to Continuous Integration and Continuous Delivery. It’s the main monolyth that combines well in CI with our Python & PHP distributions. Actually …

Django & JS research report

2019-02-26
This article aims to report the current state of research about dealing with both JS and Django, for people that aim to primarly deal with Django and enjoy the same workflow they have with python package with their frontend development, and find …

nerdocs gdaps

2019-02-25
https://gitlab.com/nerdocs/gdaps GDAPS - Generic Django Apps Plugin System Awesome app by Christian González, undergoing research & development for frontend framework plugin EPIC !!! This is the README so far: This library allows Django to make …

yourlabs/python container adds security audit tools

2019-02-13
The new version of yourlabs/python docker image, which bundles npm and pip3 on alpine and a bunch of testing tools, was released with bandit and safety baked in. You can benefit from it in your Open Source software by adding .gitlab-ci.yml: …

Automatic test rewrite for django-dbdiff/django-responsediff/cli2

2019-01-28
Still in the competition for most code coverage with least test code that is written manually and needs to be maintained manually, all our test autowriting software has been updated to support a new environment variable : FIXTURE_REWRITE. Instead of …

Setupmeta

2019-01-28
https://github.com/zsimic/setupmeta If you’re unhappy with the current state of your setup.py, you should definitely try setupmeta by famous haxor Zoran Simic. I’ve been upgrading my setup.py to setupmeta, which gives me 10 times more …

Optimize ci pipeline

2019-01-23
Did you know GitLab-CI jobs can depend on changed files of a commit ? A neat way to optimize your CI pipeline !

doc development contributing issue workflow

2018-11-29
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/contributing/issue_workflow.md Excellent read about GitLab’s internal issue workflow, safe to assume they automated as much as possible in GitLab itself.

DevOps since 2005: a  retrospective

2018-11-17
This article shares some history of DevOps testing in France during the last few years. How it looked like when I started in the industry in 2004 and almost 15 years later today. Background Just a 1337c0d3 that somehow made it so far with the help of …

building-images-with-kaniko-and-gitlab-cicd

2018-11-10
https://docs.gitlab.com/ee/ci/docker/using_kaniko.html kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster. kaniko solves two problems with using the docker-in-docker build method: Docker-in-docker …

Process controller

2018-10-31
https://github.com/thommignot/processcontroller/blob/master/processcontroller/__init__.py How Thomas Mignot, YourLabs hacker, re-implemented pexpect in 2018 with less than 100 SLOCs. Sorry for windows support, it’s not part of our plans. …

clilabs 1.1.1 release

2018-10-16
Clilabs now benefit a new command that automates a series of 3 lines that’s I’ve been typing over and over again during 10 years of Django hacking. $ clilabs help +django:settings Setting up django has failed ! DJANGO_SETTINGS_MODULE env …

Quote post

2018-10-15
jpic, h4x0|2 & founder @ YourLabs Phase 1: believe the world is waiting for you, Phase 2: realize the world is not waiting for you, Phase 3: stop waiting for the world.

Extreme devops

2018-10-11
“Extreme DevOps” screenshot, where you see branchname == lastbuildjobname, designed for dynamic environments, demonstrates auto-deploy an environment per push on a subdomain with the branch name. From betagouv/MRS#636, with PlayLabs, …

playlabs: 30 seconds overview

2018-09-29
Quick version of the previous article on playlabs $ playlabs Playlabs: the obscene ansible distribution. Init your ssh user with your key and secure sshd and passwordless sudo: playlabs init root@1.2.3.4 # all options are ansible options are proxied …

PlayLabs: the Obscene Ansible Distribution, long version

2018-09-28
From baremetal to deploying docker images on a PaaS in one command ? PlayLabs is the result of a refactor of playbooks we’ve had in production for a while to acheive hackable docker-based PaaS. The refactor was designed to be Open Source, …

Django collectdir

2018-09-21
https://git.yourlabs.org/oss/django-collectdir Want to split your react components accross your django apps or anything like that ? Try django-collectdir, which implements a instant realtime django-app directory watcher with beautiful colors for …

CHIP: a python's functional implementation of ReactJS

2018-07-14
https://github.com/tbinetruy/CHIP Python’s functional implementation of ReactJS, fast moving and very promising, by YourLabs Dev Team ! Thomas Binetruy has taken over jpic’s PoC of React in Python, which I’ve also seen an …

demonstration of our baremetal devops platform

2018-07-13
Demonstration of our baremetal devops platform. By YourLabs DevOps team, at your service. With many thanks to Yann Perchec, CTO of PeopleDoc, for inspiring me on the quest to the most advanced pipelines on baremetal servers.

all software sucks

2018-05-29
http://harmful.cat-v.org/software/ Legendary site by respected hacker Uriel, RIP.

open source software djnext

2018-05-12
https://git.yourlabs.org/oss/djnext Django-NextJS Isomorphic UI Development with Decorator pattern for Django with: - nextjs out of the box experience for frontend development, - rendering of nextjs pages with context in Django with NextJS template …

apparently browser testing stack for crudlfa+

2018-04-21
Apparently, browser testing stack for CRUDLFA+ based on CircleCI, SauceLabs, NightWatchJS, TypeScript, is getting operational. All configurations are Open Source. Have a beautiful day

dev workflow

2018-04-20
Any kind of dev workflow that’s not as efficient as this one is considered deprecated / obsolete by YourLabs. Have a beautiful day

Django-react

2018-03-13
https://github.com/delitamakanda/django-react Beautiful example of Django/React integration !

yarn

2018-03-12
https://yarnpkg.com/lang/en/docs/migrating-from-npm/ Example: https://github.com/betagouv/mrs/pull/176

wildfish

2018-03-10
https://github.com/wildfish Django isomorphic research !

Django-adapters

2018-03-09
https://github.com/jpic/django-adapters/blob/master/docs/source/tutorial.rst django-adapters new proposal ! This time less clumsy and I hope probably more like what Marc had in mind !

django-adapters audit writeup

2018-03-08
It’s been probably 30 hours I’ve spent trying to contribute to the django-adapters. This article describes the approach we take when making investment audits on software @ YourLabs, and my conclusions on this project. I started by reading …

welcome to the virtual open space

2018-03-08
https://tech.people-doc.com/welcome-to-the-virtual-open-space.html This tells a story of a 24/7 ongoing hackaton with remote workers from the world.

How I failed at documentation driven design

2018-03-06
A small anecdote about one of my most recent failures ! Now it’s up to me to be a better coder next time ;) When I rewrote django-dynamic-fields into facond, I still had Form/Rule/Action/Conditions from ddf. When the code got to the point where …

JS TDD in your Django apps

2018-03-05
Yesterday, I confessed my guilt of writing shitty DOM manipulating JS code live in the browser, and said no, never again. Due to positive feedback in the django-users mailing list, I’m writing how I actually plan to change how I do JS in Django …

Djangonauts: Say no to selenium drug

2018-03-04
When you start applying best development practices such as TDD, you discover that you make much better software. First, you can TDD your python code with anything, django has a test runner, otherwise you have pytest and many friends. Then, you make …

GitLab OpenShift: best Continuous Delivery pipeline 2016

2017-01-23
The From idea to production video demo which demonstrates in a stunning a 12 minute video how to deploy GitLab on OpenShift, then login to GitLab and create a project with a pipeline that deploys the project on OpenShift itself.

French: CD & DevOps & Free Pipeline

2016-05-25
A presentation by James Pic, founder of YourLabs, was filmed at djangocong 2016 Rennes: video (french) slides (english) docs to reproduce demo source code

django-dbdiff 0.6.0 release

2016-03-12
django-dbdiff was released. It allows to exclude fields from tests with the new exclude parameter, ie:: Fixture( 'tweets/tests/after_create_retweet.json', models=[Tweet, Retweets], ).assertNoDiff( exclude={ 'tweets.tweet': …

django-responsediff 0.3.0

2016-03-04
django-responsediff 0.3.0 has been released ! It now also checks the status_code, and has a cute mixin: from responsediff.test import ResponseDiffTestMixin class MixinTest(ResponseDiffTestMixin, test.TestCase): def test_admin(self): …

Automatic fixtures for HTTP Response assertions

2016-01-26
As stated in the “Database state assertion” article: I’m pretty lazy when it comes to writing tests for existing code, however, I’m even lazier when it comes to repetitive manual testing action. When my user tests my website, …

Design patterns in Python

2012-08-24
I just came across this fantastic repo, which contains many design pattern implementations in Python. My advice: read them all :)

Never hardcode absolute paths

2012-07-18
This is nonono: STATIC_ROOT = '/home/coat/www/site/app/static/' Never hardcode absolute paths, you’re just making your settings file less portable and probably killing kittens. Adapt this to your needs: import os.path import posixpath …

Coding standards for Django apps: names

2012-04-05
This post shows a coding standard which emerged from the Pinax community (formerly hot-club)[source needed] for predictive and consistent URL naming patterns. While this is still supported by Django, namespaced URL include() has been as well for some …

How to override a view from an external Django app

2012-03-23
This article describes how to override a view from an external Django app which is a FAQ on StackOverflow and IRC. You should understand that your urls.py is a really central and critical part of your django project. You don’t touch external …

Found 58 articles.

They trust us

Contact

logo