import os

from django.conf import settings


def pytest_configure():
    if not settings.configured:
        os.environ['DJANGO_SETTINGS_MODULE'] = 'multimedia.tests.settings'

Configure settings for py.test