apps.py 996 Bytes
Newer Older
luxcem's avatar
luxcem committed
1 2 3 4 5 6 7 8 9 10 11 12 13
"""
Django installed apps
"""

from .env import DEBUG

DJANGO_APPS = [
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    "django.contrib.contenttypes",
14
    "django.contrib.sites"
luxcem's avatar
luxcem committed
15 16 17 18 19
]

CONTRIB_APPS = [
    "django_extensions",  # http://django-extensions.readthedocs.io/
    "rest_framework",  # http://www.django-rest-framework.org/
20 21
    "rest_framework.authtoken",

luxcem's avatar
luxcem committed
22
    "django_und",  # https://github.com/luxcem/django_und
cynddl's avatar
cynddl committed
23
    "taggit",
24 25 26 27 28
    "crispy_forms",

    "allauth",
    "allauth.account",
    "allauth.socialaccount",
29 30

    "django_fsm"
luxcem's avatar
luxcem committed
31 32 33 34 35 36 37 38 39 40
]

if DEBUG:
    CONTRIB_APPS.append(
        'debug_toolbar',  # https://django-debug-toolbar.readthedocs.io/
    )


PROJECT_APPS = [
    "userprofile",
cynddl's avatar
cynddl committed
41 42
    "core",
    "rp"
luxcem's avatar
luxcem committed
43 44 45
]

INSTALLED_APPS = DJANGO_APPS + CONTRIB_APPS + PROJECT_APPS
luxcem's avatar
luxcem committed
46 47 48

# Use username for upvote instead of user object
UND_USE_USERNAME = True
49 50

CRISPY_TEMPLATE_PACK = "bootstrap4"