Пример #1
0
    'stronghold',  # enforce login on the whole app

    'avatar',  # for user avatars
    'allauth',
    'allauth.account',
    'allauth.socialaccount',

    # social providers
    # 'allauth.socialaccount.providers.github',
    # 'allauth.socialaccount.providers.facebook',
    # 'allauth.socialaccount.providers.twitter',
)

# Accounting apps
from accounting import get_apps
LOCAL_APPS = get_apps()

INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS


# Migrations

MIGRATION_MODULES = {
    'sites': 'migrations.sites',
    'socialaccount': 'migrations.socialaccount',
}


from accounting import ACCOUNTING_MIDDLEWARE_CLASSES
MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
Пример #2
0
    'crispy_forms',
    'stronghold',  # enforce login on the whole app
    'avatar',  # for user avatars
    'allauth',
    'allauth.account',
    'allauth.socialaccount',

    # social providers
    # 'allauth.socialaccount.providers.github',
    # 'allauth.socialaccount.providers.facebook',
    # 'allauth.socialaccount.providers.twitter',
)

# Accounting apps
from accounting import get_apps
LOCAL_APPS = get_apps()

INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS

# Migrations

MIGRATION_MODULES = {
    'sites': 'migrations.sites',
    'socialaccount': 'migrations.socialaccount',
}

from accounting import ACCOUNTING_MIDDLEWARE_CLASSES
MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
Пример #3
0
    },
}

EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.admin',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.flatpages',
    'django.contrib.staticfiles',

    'tests._site.model_tests_app',  # contains models we need for testing
) + accounting.get_apps()

# convert INSTALL_APPS to `list`
INSTALLED_APPS = list(INSTALLED_APPS)

# Remove 'debug_toolbar'
try:
    INSTALLED_APPS.remove('debug_toolbar')
except ValueError:
    pass

# Add the 'tests' app, to load test models
INSTALLED_APPS.append('tests')

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.contrib.auth.context_processors.auth',