Python
Articles tagged "python"
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 …
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 …
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 …
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 …
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): …
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 …
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 …
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 …
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-11-22
Django-autocomplete-light 3.5.0 was released, including backward compatibility breaks.
2019-07-21
Django-autocomplete-light 3.4.0 introduced a regression in locale loading, it has been reported by Phil Gyford, thank you !
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 …
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 …
2019-05-10
https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
Pretty nice alternative docstring syntax for argument description and much more !
2019-04-29
pyfront is a research project implementing data binding over django-channels.
2019-04-01
https://johnfraney.github.io/django-front-end-validators/how_it_works/
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-09
Python overtakes JavaScript as most questioned language
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
https://pypi.org/project/shyml/
Sh and Yml had a baby : ShYml.
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 …
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-30
https://pypi.org/project/mapjoin/
Find str.join boring ? Try mapjoin ^^ Have a great day ;)
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 …
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-27
https://pypi.org/project/shyml/
Shyml 0.7.0 release on PyPi.
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 …
2019-01-14
djcli 1.1 screenshot!
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 …
2018-12-07
https://repl.it/@jpic/crudlfap
2018-11-24
http://pyparis.org/talks.html#core-python
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.
2018-11-20
https://asciinema.org/a/Jn3LB6TO7vWcf2xhZnGmwLJ86
For hacker only: Full feature CLI CRUD+ for Django vidéo demo.
2018-11-18
https://pypi.org/project/djcli/
The new CLI for Django that you will wonder how you lived without !
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 …
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-10-31
https://crudlfap.readthedocs.io/en/latest/factory.html
Probably my ugliest python hack, which I’m not proud about, but I live with it.
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-30
https://app.jetadmin.io/demo?utm_source=jet&utm_medium=banner&utm_campaign=github&utm_content=link&utm_term=promo
Brilliant update for django-jet !
2018-10-21
CRUDLFA+ 0.5.0, g-drive-ish design
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-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 …
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-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 …
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-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
2018-09-16
Jack Daniels writes to Python language programers on a delicious sunday afternoon.
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 …
2018-09-09
http://www.structlog.org/en/stable/why.html
Structured logging, I wish I found out earlier !
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 …
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 - …
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 ! …
2018-08-01
https://www.djangoproject.com/weblog/2018/aug/01/django-21-released/
Gratz for another amazing release !
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-06-13
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 …
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 …
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 …
2018-05-15
https://realpython.com/python-data-classes/
Great article about Python 3.7 data classes !
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 …
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-01
Some screenshots from a backoffice using CRUDLFA+
2018-05-01
https://github.com/indietyp/django-automated-logging
Pretty cool alternative to django.contrib.admin.LogEntry
2018-04-30
Still finishing CRUDLFA+ framework for Django 2.0, see example esponsive detail page for BetaGouv with MaterializeCSS.
2018-04-27
http://danielhnyk.cz/deploying-scalable-django-app-on-kubernetes/
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 …
2018-03-13
https://github.com/delitamakanda/django-react
Beautiful example of Django/React integration !
2018-03-10
https://github.com/wildfish
Django isomorphic research !
2018-03-09
https://github.com/mjtamlyn/django-adapters/issues/40
How adapters can be amazingly simple and fun !
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, …
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-05
https://medium.com/@__amol__/going-isomorphic-with-python-and-react-f4664183f0c4
Great one <3
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 …
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. …
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 …
2018-01-05
Django-autocomplete-light 3.3.0-rc3 was released.
Please try it out and submit feedback !
With LOVE
jpic
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 …
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 …
2017-09-29
Stumbled accross some really good looking web based debugger: https://github.com/Kozea/wdb
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 …
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: …
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 …
2017-09-22
You can install it with:
pip install django==2.0a1 Time to test some apps
With <3
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
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 …
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 …
2017-04-14
#813: Return 400 on invalid input by @EvaSDK
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 …
2017-04-07
django-autocomplete-light 3.2.2 was released, it supports django 1.11 and is not known to break backward compatibility.
2017-02-08
Let’s give a warm welcome to django-session-security’s new release manager, Erik Telepovský from pragmaticmates.com.
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 …
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 …
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 …
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 …
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.
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 …
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 …
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
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 …
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 …
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 …
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 …
2016-03-12
This release provides commit e612748 which fixes a bug in the TaggitSelect2 to reproduce the bugfix in 15f27871 that was issued in 3.1.2.
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-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 …
2016-03-09
Currently, django-autocomplete-light v2 provides enhancement to default form field generation for model fields, depending on the registered autocompletes, as shown in the tutorial.
For v3, we don’t want this feature inside DAL anymore because …
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 …
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-02-23
Anybody tried the Visual Python profiler ?
2016-02-17
Check out this nice django admin theme: django-jets.
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 …
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 …
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 …
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, …
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 …
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 …
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 …
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.
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: …
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 …
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 …
2015-04-21
The last article demonstrated how we could simply make any https flow going out a virtual bridge network interface through mitmproxy to cache anything.
In this article, we’ll focus on the logic to “cache anything” from within our …
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 …
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 …
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 …
2014-12-25
Check out yawd-admin for Django, it’s responsive and beautiful !
2014-09-03
Django 1.7 final has been released, and it’s awesome, check it out !
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 …
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 …
2013-12-16
Another problem you might run into when testing Django apps with Selenium on Travis:
====================================================================== ERROR: tearDownClass (autocomplete_light.tests.widget.WidgetTestCase) …
2013-12-09
In this article we’ll explore a gotcha with Python 2 and 3 support on the long run, using Selenium as an example.
Selenium is an automated testing tool enabling the tests to control a temporary browser GUI - Firefox by default. You can use it …
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.
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 …
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 …
2013-08-13
django-responsive-admin and django-suit are interesting new themes for Django admin.
2013-08-09
Andrew Godwin, Django core dev and author of django-south, submitted a pull request for django to include schema migration features.
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.
2013-03-21
Check them out.
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:: …
2013-02-20
Allison from hacker school published an interesting article about virtualenv for beginners.
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 …
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.
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.
2013-02-14
django-smarter looks way cool, check it out !
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, …
2012-12-03
Good documentation should be readable from source, and usable to generate fancy HTML. That’s why RST is so commonly used:
readable as text source, usable to generate HTML and even PDF GitHub knows how to render it, Sphinx and ReadTheDocs know …
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, …
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 …
2012-08-24
I just came across this fantastic repo, which contains many design pattern implementations in Python.
My advice: read them all :)
2012-08-22
Django-autocomplete-light 1.0.17 released !
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-06-19
After playing with selenium and LiveServerTestCase a little while, you might see this:
Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, …
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 …
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 …
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 …
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 163 articles.