Services Blog Français

Django

Articles tagged "django"

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 …

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 …

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 …

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 …

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 …

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 !

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

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 …

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 !

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 …

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 …

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 …

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.

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.

Bootstrap, lesscss and django

2013-01-11
This article demonstrates how to have your own project-specific twitter-bootstrap fork, allowing you to change stuff in variables.less and other files. In development, lesscss is computed by the browser, with the less library in debug mode. In …

Django 1.5 RC (Release Candidate) is out !

2013-01-09
Django core hackers announced 1.5 release candidate. This means that the 1.5 release notes are rather stable by now, the chances that they change is insignificant. Wait for the final 1.5.0 release before migrating projects in production …

Django & ajax: how to reverse urls in javascript (not)

2012-11-25
IMPORTANT UPDATE: the approach proposed in this article is bad. Read this one instead. You can start building a user interface using Django’s awesome CRUD in a matter of seconds, for example with just this server side configuration: …

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 …

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 …

Django schema migrations: nashvegas vs. South vs. evolution

2012-04-10
Schema migration consists of altering a database structure. For example, adding a column, an index … When creating a Django model, running the syncdb command can create the tables. But syncdb doesn’t support schema migrations. So when …

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 …

Django generic relations and performances: solutions

2012-03-30
django-actream is a fresh and fantastic pluggable application for django. This article presents the solution to a simple performance issue: selecting followers and users who follow me through a generic foreign key … This article targets django users. …

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

They trust us

Contact

logo