• Home
  • About me

Diego Búrigo Zacarão’s Weblog

Let me talk about something

Follow me
Twitter
Posts
Comments
« Unicode usernames in Django admin panel
It’s been 1 year of Indifex »

Running Transifex with PostgreSQL on Fedora

Nov 22nd, 2009 by diegobz

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 transifex OWNER transifex;
CREATE DATABASE

postgres=# \q

-bash-4.0$ exit

$ sudo vim /var/lib/pgsql/data/pg_hba.conf

# “local” is for Unix domain socket connections only
local transifex transifex password # Add this line
local all all ident

$ sudo service postgresql restart

$ psql transifex transifex
Password for user transifex:
psql (8.4.1)
Type “help” for help.

transifex=>

transifex=> \q

# Bellow it assumes the Tx code is under ~/workspace/mainline/ and
# all the dependencies are installed. http://docs.transifex.org/intro/install.html

$ cd workspace/mainline/transifex/

$ vim settings/21-engines.conf

# Database configuration
DATABASE_ENGINE = ‘postgresql_psycopg2′
DATABASE_NAME = ‘transifex’
DATABASE_USER = ‘transifex’
DATABASE_PASSWORD = ‘transifex’

$ ./manage.py syncdb

$ ./manage.py migrate codebases # It shouldn’t be necessary :/

$ ./manage.py migrate

$ ./manage.py loaddata txcommon/fixtures/*

$ ./manage.py runserver 8080

That’s it!

Posted in Django, English, Fedora, Transifex

Comments are closed.

  • Recent Posts

    • Enabling apache UserDir (public_html) with SELinux enabled on Fedora
    • Metallica, Porto Alegre, Brasil – 28/01/2010
    • It’s been 1 year of Indifex
    • Running Transifex with PostgreSQL on Fedora
    • Unicode usernames in Django admin panel
    • Where do people in my blog come from?
  • Twitter Updates

      more updates...
    • Translate this page

    • Categories

      • Django (5)
      • English (45)
      • Europe (18)
      • Event (6)
      • Fedora (47)
      • FISL (5)
      • FUDCon (5)
      • GSoC (11)
      • Indifex (1)
      • Mini-post (5)
      • Photos (12)
      • PHP (1)
      • Português (14)
      • SELinux (1)
      • Transifex (30)

    Diego Búrigo Zacarão’s Weblog © 2008-2010 All Rights Reserved.

    Cool WordPress Themes | WordPress Rocks!