apps.py 944 Bytes
Newer Older
luxcem's avatar
luxcem committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
"""
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",
]

CONTRIB_APPS = [
    "django_extensions",  # http://django-extensions.readthedocs.io/
    "rest_framework",  # http://www.django-rest-framework.org/
luxcem's avatar
luxcem committed
19
    "django_und",  # https://github.com/luxcem/django_und
luxcem's avatar
luxcem committed
20 21
    # https://github.com/philipn/django-rest-framework-filters
    # "rest_framework_filters",
cynddl's avatar
cynddl committed
22
    "taggit",
23
    "crispy_forms"
luxcem's avatar
luxcem committed
24 25 26 27 28 29 30 31 32 33
]

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


PROJECT_APPS = [
    "userprofile",
cynddl's avatar
cynddl committed
34 35
    "core",
    "rp"
luxcem's avatar
luxcem committed
36 37 38
]

INSTALLED_APPS = DJANGO_APPS + CONTRIB_APPS + PROJECT_APPS
luxcem's avatar
luxcem committed
39 40 41

# Use username for upvote instead of user object
UND_USE_USERNAME = True
42 43

CRISPY_TEMPLATE_PACK = "bootstrap4"