Services Blog Français

django-autocomplete-light 3.3.0-rc1

| by jpic | django-autocomplete-light python

To install 3.3.0-rc1, use:

pip install django-autocomplete-light==3.3.0-rc1

New features:

Bug fixes:

  • @874: Fix Django 1.11.3 error by @ikcam
  • @933: Python 3.6 and Django 2.0 support by @jpic
  • @930: QuerySetSequence querysets order is not preserved by @melvyn-sopacua
  • @909: Prevent initilization of other selects by @loicteixeira
  • @904: Fix KeyError when id is not in attrs by @dwheaton
  • @885: Prevent rendering of empty option on multi select by @johandc
  • @892: Enable different item label for selected item by @maximpetrov
  • @926: Atomic create_object by @jpic
  • @718: Remove temp hack for select2 by @FuzzAU
  • @860: dal: widgets: use the name if we don’t have the id by @xrmx
  • @849: Don’t create a new option if an iexact-matching one already exists by @liwenyip

Also thanks to the many documentation contributors.

Read More

Dvorak-intl-code Keyboard Layout Update

| by jpic | dvorak-intl-code

Dvorak-intl-code is a keyboard layout optimized for polyglot hackers I’ve started working on and using in 2008.

This article demonstrates how to easily create your own keyboard layout by extending an existing one, storing your config in your home directory and load it with a command which .xinitrc or whatever can call.

Just add a file in ~/.xkb/symbols, for example I put mine in /home/jpic/.xkb/symbols/code, and looks as such:

// Dvorak variant for polyglot coder

Read More

Quote post

| by jpic | curry function

Which may save quite some SLOCs (Single Line Of Code)

Curry is nothing more than a function returning a function to call a function

get_context_data() considered harmful

| by jpic | django python

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 instance with {{ view }}.

I’ve seen things like this in many projects, I wonder if it’s the case for other people too:

def get_context_data(self, **kwargs):
    c = super().get_context_data(**kwargs)
    c['something'] = self.something
    return c

And I’m guilty as charged you can find commits from myself like this all over internet.

Read More

L'Hermitage donation

| by jpic | philanthropy sponsoring

image

It’s an honour for YourLabs Business Service, 2 months after opening, to make a small donation to a new alternative lifestyle project: L’Hermitage. This donation will be used to organize the first DIY workshops and open source home automation and heat management for large houses! With LOVE

Previous Page 16 of 33 Next Page

They trust us

Contact

logo