Follow me
Twitter
Posts
Comments

Category Archive for 'Django'

Dear (Slovenian) Translator

Last week we came across an issue involving a request from Django. A person from the Slovenian team filed a ticket on the Django system asking to change the plural equation for the translation files. Once Django is now officially using Transifex for managing its translations, this ended up here to us. Long short history… [...]

Read Full Post »

It’s been a while without passing here… but let’s not talk about it! So, this week I just came across an issue related to how to setup multiple databases on Django. Reading the documentation I found it quite trivial to setup. After having the databases configured, you can use a Database Router, if you want [...]

Read Full Post »

Django reverse with JavaScript

Taking the cobwebs out of here… Here I go to cite a way that can ‘solve’ the URL reversing problem when you are using a Django app that uses some JavaScript and Ajax requests. Django has a very nice way to resolve URLs based on its name and optionally some args. It uses the regex [...]

Read Full Post »

Steps with sudo command configured to the current user: $ sudo yum install postgresql-server python-psycopg2 $ sudo service postgresql initdb Initializing database: [ OK ] $ sudo service postgresql start Starting postgresql service: [ OK ] $ sudo su – postgres -bash-4.0$ psql postgres=# CREATE USER transifex WITH PASSWORD ‘transifex’; CREATE ROLE postgres=# CREATE DATABASE [...]

Read Full Post »

This week we’ve gotten a request from translate.moblin.org for being able to login using unicode chars. They use a custom backend for authentication that allows, for example, Chinese chars in the username. Django seems to handle it pretty well, although the Django Admin Panel complains about it. As a solution, we’ve implemented a way to [...]

Read Full Post »

Older Posts »