apps.py 1009 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",

cynddl's avatar
cynddl committed
22
    "taggit",
Okhin's avatar
Okhin committed
23
    "taggit_serializer",
24
    "crispy_forms",
25
    "django_markdown2",
26
    "sorl.thumbnail",
27
28
29
30

    "allauth",
    "allauth.account",
    "allauth.socialaccount",
31
32

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

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


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

INSTALLED_APPS = DJANGO_APPS + CONTRIB_APPS + PROJECT_APPS
luxcem's avatar
luxcem committed
48
49
50

# Use username for upvote instead of user object
UND_USE_USERNAME = True
51
52

CRISPY_TEMPLATE_PACK = "bootstrap4"