Django
Articles tagged "django"
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 …
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-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-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-21
https://www.aeracode.org/2019/03/20/asgi-30/
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-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-14
djcli 1.1 screenshot!
2018-12-07
https://repl.it/@jpic/crudlfap
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-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-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-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-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-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-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-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-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 …
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-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-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-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-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-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-02-20
Please upgrade.
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 !
2013-01-29
Finally, django-rules-light supports running rules from templates.
Check it out !
2013-01-24
Django-autocomplete-light has planned backward compatibility breaks for version 1.2. This version will be released around May 2013.
If using this app, you can check the BC breaks in question on github.
You’ve been warned !
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 …
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 …
2012-12-14
It seems that django admin revamp discussions started again.
Last year, I sent a letter to santa asking for 12 transformers with super laser powers. I waited nicely and then received a little playmobil.
So, here’s my letter to santa this year: …
2012-12-11
Update to Django 1.3.5, 1.4.3 and 1.5 beta 2 security releases. Details
2012-12-01
An interesting topic by Anssi Kääriäinen flew by django-developers mailing list about ticket #16649: “Models.save() refactoring: check updated rows to determine action”.
The ticket mentions a 50% performance optimization. Here’s an …
2012-11-30
Extract from a great thread on the django-developper mailing list started by Trey Raymond:
I’m a DB engineer working for Yahoo, and we have a new product using django that I’m onboarding. We see a variety of easily fixed issues, but one …
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: …
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-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-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-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 …
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-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. …
2012-03-27
This article presents a technique to get the return value of a form opened in a javascript popup, like Django admin for foreign keys. It can be used to improve the ergonomy relation select inputs.
Introduction When a form allows to create or edit …
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 128 articles.