Best-Practice
Articles tagged "best-practice"
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 …
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 …
2019-03-30
https://www.packtpub.com/packt/free-ebook/devops-quickstart
Brilliant DevOps & CD QuickStart FREE ebook by Paul Swartout.
2019-03-27
https://coreos.com/rkt/docs/latest/rkt-vs-other-projects.html
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 …
2019-03-10
https://www.redhat.com/en/blog/red-hat-enterprise-linux-8-beta-new-set-container-tools
After docker …
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 …
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 …
2019-02-15
Well that’s a nice way to automate backups and rollbacks during my deploys and make another CI Dev-Perfect(tm)
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: …
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 …
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 …
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 !
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.
2018-11-19
https://developers.redhat.com/articles/podman-next-generation-linux-container-tools/
2018-11-18
Why you should pay a hacker 10k/year to maintain your GitLab-CI/Drone-CI/etc server on baremetal With LOVE
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 …
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 …
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. …
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 …
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.
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, …
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 …
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, …
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 …
2018-07-17
http://www.nagare.org/ide/guide.html#debugging
Nagare, a brilliant Python framework definitely worth studying ;)
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 …
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.
2018-05-29
http://harmful.cat-v.org/software/
Legendary site by respected hacker Uriel, RIP.
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 …
2018-05-11
GitLab Web-IDE screenshot
2018-05-01
https://github.com/indietyp/django-automated-logging
Pretty cool alternative to django.contrib.admin.LogEntry
2018-04-27
http://danielhnyk.cz/deploying-scalable-django-app-on-kubernetes/
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
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
2018-03-13
https://github.com/delitamakanda/django-react
Beautiful example of Django/React integration !
2018-03-12
https://yarnpkg.com/lang/en/docs/migrating-from-npm/
Example: https://github.com/betagouv/mrs/pull/176
2018-03-10
https://github.com/wildfish
Django isomorphic research !
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 !
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 …
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.
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 …
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 …
2018-03-04
Victory on JavaScript, let’s build another Django on top of Django :) With LOVE
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 …
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.
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
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': …
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): …
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, …
2013-02-14
I’m posting this because it took me quite a few hours to get to this point:
Ghost.py seem to have a nicer API and to be faster than selenium so far.
2012-12-07
By Ken Thompson.
2012-08-28
This article describes how to use django.contrib.staticfiles as this is a FAQ StackOverflow and IRC.
Structure The HTTP server is to serve static files directly from a public folder, without going through Django at all.
Uploaded files If the HTTP …
2012-08-24
I just came across this fantastic repo, which contains many design pattern implementations in Python.
My advice: read them all :)
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 …
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 …
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 …
2012-03-22
This article describes how to build project dependencies with virtualenv. It is appliable to Pinax. Pinax uses virtualenv by default. It lets the developer have a project-specific python directory, including binaries, packages etc … OpenSuse for …
Found 58 articles.