teamplayer: Make compatible with django 1.4

This commit is contained in:
Albert Hopkins 2012-05-25 16:35:06 +00:00
parent d147a3f296
commit 5e45c56b2f
2 changed files with 11 additions and 5 deletions

View File

@ -24,6 +24,7 @@ postinstall: $(post_files) $(SCROBBLER_AUTH)
$(inroot) passwd -d postgres
echo 'PG_INITDB_OPTS="--locale=en_US.UTF-8"' >> $(CHROOT)/etc/conf.d/postgresql-$(PGVER)
$(inroot) eselect postgresql set $(PGVER)
$(inroot) rm -rf /var/lib/postgresql/$(PGVER)/data
yes | $(inroot) $(EMERGE) --config =postgresql-server-$(PGVER)*
$(inroot) ln -sf /etc/init.d/postgresql-$(PGVER) $(rcdefault)/postgresql-$(PGVER)
ifeq ($(AVAHI),YES)

View File

@ -10,10 +10,15 @@ TP_STREAM_URL = '/stream.mp3'
`TP_HOME' = 'TP_HOME'
DEBUG = False
TEMPLATE_DEBUG = DEBUG
DATABASE_ENGINE = 'postgresql_psycopg2'
DATABASE_NAME = 'teamplayer'
DATABASE_HOST = ''
DATABASE_PASSWORD = ''
DATABASE_PORT = ''
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'teamplayer',
'HOST': '',
'PASSWORD': '',
'PORT': ''
}
}
TP_MPD_HOME = 'TP_DB/mpd'
TP_REPO_URL = '/repo/'