Services Blog Français

Python

Articles tagged "python"

django-autocomplete-light v4 and v5

2026-06-18
django-autocomplete-light has two current release lines with different jobs: v4 exists to provide the documented upgrade path from v3 and across supported Django versions, while v5 is where we can take the larger backward compatibility breaks that …

Ipex-llm Tool Calling on Intel Arc how to

2025-11-13
This guide demonstrates how to launch an Intel ipex-llm Docker container, start a vLLM API server configured for the Qwen3-8B model with tool-calling capabilities, query the server using curl, and interpret a sample response. Then, we’ll …

Ansible Custom Action Plugin Development Tutorial

2025-11-05
When your orchestration logic becomes complicated, you can end up with lots of hardly readable YAML code, and it’s not very nice to maintain, ie. when mutating variables with combinations of template filters, set_fact and the like. The solution …

Python-fu: Object-Oriented, Metaprogramming, Testing, Packaging

2025-07-08
In this article, we’re going to present some of my favorite Python object oriented and meta programming features to refactor code, as well as other basics required to kill it with Python, a bit of packaging, some testing patterns. I hope this …

pytest superfixture design pattern

2024-03-13
pytest is an awsome Python Test framework which starts over from a clean slate instead of following the xUnit pattern. Instead of: class YourTestSuite(unittest.TestCase): def setUp(self): self.some_stuff = YourThing() def test_delete(self): …

Ryzom: Replacing templates with Python Components

2021-02-26
Why? Because while frameworks like Django claim that “templates include a restricted language to avoid for the HTML coder to shoot themself in the foot”, the GoF on the other hand states that Decorator is the pattern that is most …

Django + Snowpack How To = djsnowpack

2020-10-26
Snowpack is the fastest and easiest way ever to benefit from npm and imports in frontend code without going full SPA. What this does MUCH faster frontend development ! Elected Productivity Booster OS Award 2020, Snowpack is a frontend builder with a …

django-autocomplete-light 3.8.0 release

2020-10-12
WARNING 3.8.0 did not contain the proper built JS, please use 3.8.1 that was just released. Django-autocomplete-light 3.8.0 was released, and features all your contributions of the year, and tested with a pre-release for the last 3 months or so. It …

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 …

django-autocomplete-light 3.4.0 release

2019-07-20
This release re-enables Python 2 and Django 1.11 support, even though it doesn’t pass all tests because tests rely on dicts being ordered by default which came in Python 3 Also, this release exits from using Django’s vendored select2, and …

yourlabs django decision

2019-05-13
https://github.com/yourlabs/django-decision A Delegative Democracy implementation made in BlackLoop HackerSpace for Les Indignés back in the days I used to squatt hackerspaces in-between gigs (now running my own). It’s a bit old but probably …

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 …

shyml

2019-02-15
https://pypi.org/project/shyml/ Sh and Yml had a baby : ShYml.

ansible-compose: deploying docker-compose files over bare ssh

2019-02-14
In kubernetes, we have the joy of applying configuration directly from maintainer repositories: kubectl apply -f https://raw.github.../setup.yml This allows each repository to maintain its own infrastructure configuration as code, and maintaining a …

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: …

mapjoin

2019-01-30
https://pypi.org/project/mapjoin/ Find str.join boring ? Try mapjoin ^^ Have a great day ;)

tri.form: ALternative to Django forms

2019-01-29
https://github.com/TriOptima/tri.form An alternative to django forms that works with django models and offers a lot of unfrustrating features, tri.form by Anders Hovmöller. Make sure that you also take a look to all their other apps which are pretty …

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 …

shyml

2019-01-27
https://pypi.org/project/shyml/ Shyml 0.7.0 release on PyPi.

open source software playlabs

2019-01-26
https://yourlabs.io/oss/playlabs I have just rewritten the README for playlabs, my ansible wrapper command. Note that this software is still in pre-alpha/planning stage and should only be used in production by seasoned haxors. # Playlabs: the obscene …

cli2: unfrustrating CLI for Python automation

2019-01-13
Sometimes I just want to execute a python callback and pass args/kwargs on the CLI, and not have to define any custom CLI entry point of any sort, nor change any code, typically when automating stuff, cli2 unfrustrates me (pun intended): cli2 …

Django webpack loader

2018-11-21
https://github.com/owais/django-webpack-loader/pull/182 django-webpack-loader code splitting support by @alihazemfarouk, that has a sister pull request.

djcli: cli crud for django demo

2018-11-20
https://asciinema.org/a/Jn3LB6TO7vWcf2xhZnGmwLJ86 For hacker only: Full feature CLI CRUD+ for Django vidéo demo.

djcli

2018-11-18
https://pypi.org/project/djcli/ The new CLI for Django that you will wonder how you lived without !

clitoo: make your python callbacks work in CLI too !

2018-11-18
Clitoo makes your python callbacks work on CLI too ! This CLI can execute python callbacks with parameters. Clitoo recognizes 4 types of command line arguments: lone arguments are passed as args arguments with = are passed as kwargs dashed arguments …

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 …

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 …

djcli: the new Django automation CLI command

2018-10-11
djcli is the package , a new CLI under design phase, it is a simple python package, that provides a command with name djcli, to do more with Django on the CLI: $ pip install djcli find the content for this variable in your project manage.py $ export …

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 tests that write themselves

2018-09-25
This is a plain advertisement for two excellent test utils maintained by YourLabs: django-dbdiff django-responsediff If you’re volunteering on a project, and that there are many newbie contributors - who turn out to be militants with a high …

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 …

django-autocomplete-light 3.3.2 release

2018-09-19
3.3.2 fixes a regression with static files loading in django.contrib.admin that was introduced in 3.3.1 Note that it also supports Wagtail now, thanks to @coredumperror

django-autocomplete-light 3.3.1 release

2018-09-13
Thanks to awesome contributors from all around the world, DAL 3.3.1 is out, one month after 3.3.0, that was the first non-rc release of 3.3.0 which starts to require Django 2.0. 3.3.1 Fixed a bug in the way jquery.init.js was being used by …

Structlog documentation

2018-09-09
http://www.structlog.org/en/stable/why.html Structured logging, I wish I found out earlier !

djcall 0.0.5 release

2018-08-29
django-call is a model wrapper around uWSGI native cron and spooler features, including the signal framework allowing to program callbacks on cron or run them in a given spooler with a given priority for example. For example right now on a betagouv …

Django-autocomplete-light 3.3.0 release

2018-08-12
Changes since 3.3.0-rc6: - use admin statics - #981: create option behaviour - #995: automatically generated views for generic foreign key fields - Getting placeholder and minimumInputLength from dal select - #1017: Initial migrations and database - …

yourlabs django uwsgi spooler

2018-08-01
https://github.com/yourlabs/django-uwsgi-spooler Finnaly a Django app to wrap around uWSGI’s builtin spooler ! I should have done this years ago, but I was expecting to make a boring module, it turned out a lot more exciting than expected ! …

django 2.1 released

2018-08-01
https://www.djangoproject.com/weblog/2018/aug/01/django-21-released/ Gratz for another amazing release !

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 …

breve demonstration de certains des developpements

2018-06-01
I had an old html5lib installed with –user, that would break globally installed pip from my Arch Linux system. Posting the solution that worked for me here because i couldn’t find it elsewhere: pip uninstall html Uninstalling …

crudlfap

2018-05-29
In the first screen we see that two posts in the list have a different button in the Actions column. The first row is a post that I’m the owner of, therefore the Actions shows a button for a dropdown menu. The second row is a post that …

Put a nextjs server in front of django

2018-05-14
How to put a NextJS server in front of Django with django-appwatch In this article, we’ll get started on a new Django project with NextJS in front of Django. We choose to put NextJS in front of Django because NextJS is an isomorphic UI …

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 …

CRUDLFA+ 0.3 Series

2018-04-12
CRUDLFA+ is an expirement (read: pre-alpha state) of what Django could be if: generic views provided templates and javascript for a rich experience out of the box, class based views leveraged OOP a bit more to add DRY goodness, leveraged externals …

Django-react

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

wildfish

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

Django adapters

2018-03-09
https://github.com/mjtamlyn/django-adapters/issues/40 How adapters can be amazingly simple and fun !

Model in Django: not what you think they are

2018-03-09
It’s funny how my imagination was completely anihilated when I actually read django model field source code. I thought a Django Model was dedicated to designing the database. But a Model field is not a DB Field. A Model field has a DB field, …

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 …

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 …

Django settings refactoring apps

2018-02-04
Found another way cool app shared by Linus Lewandowski on django-dev mailing list, here’s the excerpt from django-12factor: “The Twelve-Factor App” is an awesome methodology for building SaaS apps. django-12factor makes Django more 12factor-y. …

django-dbdiff 0.7.3 release

2018-01-14
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, catching up with untested legacy code when I want a lot of coverage now, at least to ease …

DAL 3.3.0-rc3 release

2018-01-05
Django-autocomplete-light 3.3.0-rc3 was released. Please try it out and submit feedback ! With LOVE jpic

django-autocomplete-light 3.3.0-rc1

2017-12-30
To install 3.3.0-rc1, use: pip install django-autocomplete-light==3.3.0-rc1 New features: @953: Select2 update to 3.4.0.6-rc.1 by @jpic @917: django-nested-admin support by @loicteixeira @815: Simplify customization of autocomplete views by @EvaSDK …

get_context_data() considered harmful

2017-12-19
Hello everybody <3 Let’s talk about ideas for deprecation / discouraging the use of get_context_data(). get_context_data() is useful to support legacy templates from the pre-CBV era, since CBV we can now access any attributes from the view …

Getting generic views to support “fake” models

2017-09-28
Sometimes, we need to make views around objects which are not stored in the database. They may be calculated on the fly in python, or come from some data source that’s not the database, or which aggregates several objects in the database. This …

YourLabs Business Service is born

2017-09-26
It’s my pleasure to announce the official birth of our new company, YourLabs Business Service. This company will work in conjunction with the YourLabs foundation and of course sponsor the Django apps ecosystem. We are hiring freelancers to: …

What does the CRUDLFA+ acronym stands for ?

2017-09-26
Well, it definitely stands for something ! And since this is becoming a FAQ, here’s my answer: It stands for: Create Read Update Delete Form Autocomplete and more ! We started by making a CRUD because the customer was complaining his come was …

django==2.0a1 released

2017-09-22
You can install it with: pip install django==2.0a1 Time to test some apps With <3

CRUDLFA+ 0.1.1 Video Demo

2017-09-22
This is a quick video I made so our friends can see CRUDLFA+, the DRY framework for Django, looks like so far: With <3 Jamesy aka jpic

Rethinking Django’s URL Router

2017-09-21
This all started when a web developer learning Django was struggling to maintain a quantity of HTML and came to me: “I have a question for you, Django, can you generate a menu for me please ?”. Oh my, is this person going to be the next …

DAL 3.2.6 Release

2017-04-26
django-autocomplete-light 3.2.6 was released on github and pypi, with: #838: Use namespaced jQuery in `get_forwards` by @ryan-copperleaf & @gagarski #836: Queryset sequence view to display actual model name by @jsoa 3.2.5 and 3.2.6 were briefly …

django-autocomplete-light 3.2.3 release

2017-04-14
3.2.3 Two seriously good community contributed bugfixes #799: Support serializing UUIDs and add tests for models with UUIDs as PKs by @blag #826: Prevent rendering of empty option on multi select by @beruic Bravo ! Tests are passing reliabily these …

DAL 3.2.2: Django 1.11 support

2017-04-07
django-autocomplete-light 3.2.2 was released, it supports django 1.11 and is not known to break backward compatibility.

django-session-security 2.5.0 release

2017-02-05
DSS release 2.5.0 was published in PyPi: #79 remove compiled binary from source to comply with Debian source code repository policy by @nirgal #81 support django 1.10 by @eriktelepovsky #84 a11y support to modal dialog by @lynnco #85 support for …

Navigation Autocomplete with jquery-autocomplete-light

2016-12-24
“How to make a navigation autocomplete with django-autocomplete-light v3” seems like a top FAQ since v3 release, because v2 included an example which was not reported inside the documentation of v3. While the example in v2 documentation …

Django: status of 1.11

2016-12-22
Django 1.11 alpha is announced for January 16, review priority will be given to any ticket marked “ready for checkin” by January 9, Tim says, which means its still time to make a contribution to Django 1.11 ! The only “major …

Django-autocomplete-light 3.2.0 release

2016-10-05
We have two major features: Advanced field forward options, List based autocompletion. Complete changelog: #745: Add list autocomplete by @dmosberger, https://github.com/jpic and https://github.com/thecardcheat, #754: dal_queryset_sequence …

django-responsediff 0.7.1 released

2016-09-28
This release includes a bugfix for the new feature added in 0.7.0, occuring with non-ascii characters in selector-based tests with python 2. Fix by @njoyard, test case by @jpic.

yourlabs-security mailing list

2016-08-17
This post announces the creation of a mailing list for security issues concerning yourlabs. Members can read messages, but external users may only post to it: yourlabs-security@googlegroups.com Thanks Clayton Delay for the suggestion. You may request …

django-session-security 2.4.0 release

2016-08-17
This new release enforces SESSION_EXPIRE_AT_BROWSER_CLOSE, because it makes no sense to use django-session-security without it, by design. However, a vulnerability caused by having SESSION_EXPIRE_AT_BROWSER_CLOSE disabled was fixed, thanks Clayton …

django-responsediff 0.7.0 release

2016-08-10
This new release includes: the possibility to filter content, contributed by @njoyard the possibility to crawl the website and test all pages

django-autocomplete-light 3.1.7 release

2016-08-10
#714: Update select2 by @meesterguyman #705: Improve compat with dj1.9 by @9nix00 #706: Fix extra require by @blueyed #710: Added note for static files not checked by @geekashu #708: Provide path with dal_select2.E001 by @blueyed #700: Enable HTML …

django-cities-light 3.3.0 release

2016-05-29
Thanks to the amazing work by the YourLabs community, I’m proud to release 3.3.0 of django-cities-light: #118: Add Django 1.10 support, drop Django 1.7 support by @jpic #113: Fix DeprecationWarning by @mbaragiola #106: New management command to …

DAL 3.1.6 release

2016-05-23
django-autocomplete-light v3.1.6 was released, thanks to these fine contributions: #671: Create_field support with querysetsequence by @jpic #679: Allow create message translation by @maisim #682: Extend ‘forward’ attribute to creating …

django-autocomplete-light 3.1.5 release

2016-03-27
This release enables field-forwarding in formsets and forms with prefix. Also note that several things have been made to help users: a new tutorial section showing placeholder and minimum-input-length select2 options has been added and a system check …

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-autocomplete-light 3.1.2 release

2016-03-11
This posts announces the release of django-autocomplete-light 3.1.2: #634: Select2 Upgrade #628: Do not rely on ids to fix container text #631: Initializing GFKs with values from forms #623: Fix setup.py extras by @ticosax #610: Cancel out …

django-autocomplete-light v3: what’s going on

2016-03-05
This post clarifies the status of django-autocomplete-light and strategy for v3. Version 2 No further effort will be made to support new versions of Django in v2. However, it supports the current LTS Django 1.8 and future-release Django 1.10, so …

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): …

django-autocomplete-light 3.0.0 release

2016-02-04
After 4 years of supporting django-autocomplete-light, I’m beginning to figure what users expect and the common mistakes, like registering the wrong model for autocomplete, or having troubbles figuring how to link suggestions with other form …

Syntax highlighting for Django’s SQL query logging

2016-01-30
Markus Holtermann has published a tutorial for setting up syntax highlighting for Django’s SQL query logging. I didn’t try it but it looks pretty cool, maybe that’s something we could add to django-dbdiff somehow. Anyway, check it …

django-autocomplete-light 2.3.3 release

2016-01-29
This release fixes an important usability but on the manychoice fields, and introduces a minor backward compatibility break: #563 Don’t disable multiplechoicewidgets if select is [multiple], bd9ca0085 Don’t import anything in init anymore …

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, …

django-autocomplete-light 2.3.0 release

2016-01-19
#555 Django 1.4, 1.5 and 1.6 deprecation #497 Enable registration by model-name by @luzfcb #536 #551 Support proxy models b y @onrik #553 improved jQuery integration by @blueyed #516 Corrected french transation by @apinsard #541 Use error_messages …

Django database testing

2016-01-11
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, we’ve got so much patches to review and test against so many versions of Python and …

django-cities-light 3.2.0 release

2016-01-10
django-cities-light 3.2.0 was released, supporting Django 1.7 to 1.9 now, even though older versions should still work, they aren’t tested anymore. #105: Drop LazyProgressBar, patch was accepted upstream by Max Arnold, #104: Better feature code …

django-session-security 2.3.x releases

2016-01-10
Starting 2.3.0, django-session-security supports Django 1.7 to Django 1.10 with tox. In 2.3.1, Andrei Coman added redirectTo parameter and tests were stabilized using django-sbo-selenium and tox.

Django 1.9 support for Django-autocomplete-light

2015-09-28
Since Django 1.9a1 was released, many users are going to upgrade their project and wonder why django-autocomplete-light won’t load anymore. Probably, some users are going to google ImportError or even django.core.exceptions.AppRegistryNotReady: …

django-autocomplete-light 2.2.0 release

2015-06-02
After 8 release candidates, we’ve got our new shining 2.2.0 release of django-autocomplete-light which literally drown the backlog, we’re down to less than one github page of issues now. Needless to say, we’ve closed an insane …

django-autocomplete-light 2.2.0rc1 release notes

2015-05-25
This article presents the changelog for django-autocomplete-light 2.2.0 release. To upgrade to 2.2.0rc1: pip install -U --pre django-autocomplete-light If you find any problem, please report it on github issues and downgrade to last stable (2.1.x …

Scripted MITM AnyThing in Python with mitmproxy

2015-04-13
This article describes how to get a working transparent HTTP/HTTPS proxy which you can script in Python. I intend to use it to have custom caching and be able to abstract away all HTTP/HTTPS connections made in my LXC containers which are spawned by …

django-cities-light 3.1.0 release

2015-03-04
Pluggable models have come to django-cities-light thanks to Alexey Evseev. It’s completely backward compatible and allows you swap default models with your own as well as connecting to new signals the geonames import command. On the behalf of …

Speed up your travis-ci builds with container based infrastructure

2015-01-06
Travis-ci just released container based infrastructure for open source repository (free users). We tried it with our apps, and you can see we had some performance increase, even on database-intensive jobs: django-autocomplete-light normal build takes …

Django 1.7 Release !

2014-09-03
Django 1.7 final has been released, and it’s awesome, check it out !

django-cities-light 2.3.1 released

2014-04-06
django-cities-light 2.3.1 was released: #42 added FAQ: Some data fail to import or don’t import like I want, how to skip them ? #45 django-rest-framework support update by @almalki. #49 Added country_items_pre_import and region_items_pre_import …

Django 1.7 new feature: AppConfig

2013-12-26
Check out the new applications documentation for Django 1.7 ! It’s still quite cryptic what will “holding app metadata” be really able to do. For starters it enables changing the name of an app in the admin without any hack. It will …

Django 1.5.4 security release

2013-09-15
Django 1.5.4 security release is out. It limits password lengths so that people don’t upload 1Mb passwords (limit for nginx default config). Imagine 1000*1Mb to hash ? That could potentially cause a DoS. Update your django installs.

Using bootstrap and less css in django

2013-09-10
Overview Compile less in debug mode in the browser for development. This enables your integrator to work faster and to view syntax errors reports in the browser and make development awesome. Use django-compressor for production to pre-compile all …

Automatic updates for commits made with GitHub code editor

2013-08-19
For development, we host the project on some small server. It is running via ./manage.py runserver just for our customer to be able to see what’s going on. Also, this enables our designer to hack the project via SFTP without having to deploy …

Partition your data with django-parting

2013-03-26
Just stumbled on django-parting which provides a nice API to partition your data. For those not familiar with data partitioning, I recommend reading partitionning on mysql.

Enable global site packages in an existing virtualenv

2013-02-21
Nowadays, virtualenv uses --no-site-packages by default. This means that the created virtualenv will not access global site-packages modules ie. /usr/lib/python2.7/site-packages/. To enable global site-packages again, just remove this file:: …

Jedi-vim/rope takes too long

2013-02-15
For those using jedi-vim are indirectly using rope refactoring library. If you are also using a home-level virtualenv ie. in ~/env/ then your vim instance might take crazy long time. First things first, rope creates a .ropeproject directory where it …

Playlistnow.fm source code is now open !

2013-02-15
Playlistnow.fm is a social network based on music made in Python/Django. The catalog is powered by last.fm and the videos come from youtube. Before its final death, we decided to release the source code under Apache 2.0 license.

Fantastic python code auto-complete: jedi

2012-12-20
It’s been a few days since I’m using jedi auto complete for vim, but for now all I can say is that it’s highly recommendable. It’s not perfect of course, particularly when it comes to autocompleting self., but still, …

PythonAnywhere: free and awesome Django web host

2012-11-29
Here’s a really cool contribution. Harry Percival emailed django-developers about his employer, PythonAnywhere: We do offer Django hosting as part of our Free plan, so it’s a nice place for people to come and try out Django, for free, …

Testing django signals properly

2012-10-06
Asserting that signals were sent properly can be a bit tricky: they must be sent in a particular order with specific arguments. Fortunately, mock-django provides plenty of cool features, including a nice signal receiver mock. The only problem with …

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 …

Free services you can use to make a great python app

2012-05-25
A great django app should have: a source repository an issue tracker documentation release packages a mailing list continuous integration translations Source code repository and issue tracker Usually, source code repository services come with an …

Automatic virtualenv activation

2012-04-13
This article proposes a proven standard which enables automatic virtualenv activation. Demonstration Before, I had to do something like: cd myproject source ../env/bin/activate Now I just do: cd myproject Virtualenv standard Say I have a project …

Distro-agnostic craftman’s guide to python environment management

2012-04-02
This article demystifies deployment of Python applications on any unix flavor. It’s distro agnostic approach is possible by a pragmatic use of each layer of a standard python application. This article targets system administrators and why not python …

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 163 articles.

They trust us

Contact

logo