Sometimes when You are developing locally You might want to connect to a remote server without opening up a lot of ports on the server. This is a simple trick to easily access services on a remote server without exposing the actual ports on the server. $ ssh -N -L 1234:localhost:1234 mickeymouse@exa…Faisal M
Will & Skill Developers
Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.
I just encountered a really annoying problem while trying to order a list alphabetically in Django. The items with the Swedish letters 'ÅÄÖ' was encoded to 'AAO' and therefore showed up incorrectly ordered. After some serious investigation it all came down to PostgreSQL. Apparently we need to tell o…Mohammed H
To create a custom action in django admin is pretty straight forward. You must define a function which is then referenced from the models admin definition. This function will accept three arguments: The modeladmin A HTTP request A queryset of the selected models An example of a Ordermodel with a cus…Erik S
Postgres is a widely used database engine that comes with a lot of powerful features. This is a simple guide to help You getting started with Postgres on Ubuntu! Ubuntu 16.04 / 16.10 sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" wget --quiet -O - h…Faisal M