Skip to content

Commit

Permalink
Added DEFAULT_AUTO_FIELD to settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iMark3000 committed Oct 25, 2024
1 parent f91cf58 commit 23901a6
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions config/settings.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
"""
Django settings for data_portal project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""

import os
import rollbar

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv("SECRET_KEY")

Expand All @@ -28,9 +13,9 @@

ALLOWED_HOSTS = ["*"]

DEFAULT_AUTO_FIELD="django.db.models.AutoField"

# Application definition

INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
Expand Down Expand Up @@ -119,8 +104,6 @@
"https://kippgalaxy.org"
]

# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases

DATABASES = {
"default": {
Expand All @@ -133,8 +116,6 @@
}
}

# Password validation
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
Expand All @@ -156,8 +137,6 @@
"DEFAULT_FILTER_BACKENDS": ["django_filters.rest_framework.DjangoFilterBackend"],
}

# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/

LANGUAGE_CODE = "en-us"

Expand All @@ -170,9 +149,6 @@
USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/

STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
STATIC_URL = "/staticfiles/"
STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)
Expand Down

0 comments on commit 23901a6

Please sign in to comment.