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 $(inroot) passwd -d postgres
echo 'PG_INITDB_OPTS="--locale=en_US.UTF-8"' >> $(CHROOT)/etc/conf.d/postgresql-$(PGVER) echo 'PG_INITDB_OPTS="--locale=en_US.UTF-8"' >> $(CHROOT)/etc/conf.d/postgresql-$(PGVER)
$(inroot) eselect postgresql set $(PGVER) $(inroot) eselect postgresql set $(PGVER)
$(inroot) rm -rf /var/lib/postgresql/$(PGVER)/data
yes | $(inroot) $(EMERGE) --config =postgresql-server-$(PGVER)* yes | $(inroot) $(EMERGE) --config =postgresql-server-$(PGVER)*
$(inroot) ln -sf /etc/init.d/postgresql-$(PGVER) $(rcdefault)/postgresql-$(PGVER) $(inroot) ln -sf /etc/init.d/postgresql-$(PGVER) $(rcdefault)/postgresql-$(PGVER)
ifeq ($(AVAHI),YES) ifeq ($(AVAHI),YES)

View File

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