Commit df08699a authored by olavhdi's avatar olavhdi
Browse files

#29 pep reformat and django naming convention

parent faadc71b
......@@ -16,7 +16,7 @@ import dj_database_url
import dotenv
# Get the GROUPID variable to accept connections from the application server and NGINX
groupid = os.environ.get("GROUPID", "0")
group_id = os.environ.get("GROUPID", "0")
# Email configuration
# The host must be running within NTNU's VPN (vpn.ntnu.no) to allow this config
......@@ -28,7 +28,6 @@ EMAIL_HOST = "mx.ntnu.no"
EMAIL_USE_TLS = False
EMAIL_PORT = 25
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
dotenv_file = os.path.join(BASE_DIR, ".env")
......@@ -44,8 +43,8 @@ ALLOWED_HOSTS = [
"127.0.0.1",
"localhost",
"0.0.0.0",
"10." + groupid + ".0.6",
"10." + groupid + ".0.4",
"10." + group_id + ".0.6",
"10." + group_id + ".0.4",
"molde.idi.ntnu.no",
"10.0.2.2",
"tdt4242-t11.herokuapp.com",
......@@ -98,7 +97,6 @@ TEMPLATES = [
WSGI_APPLICATION = "secfit.wsgi.application"
# Database
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
......@@ -116,8 +114,6 @@ else:
}
}
# CORS Policy
CORS_ORIGIN_ALLOW_ALL = (
True
......@@ -136,7 +132,6 @@ USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
......@@ -148,7 +143,6 @@ STATIC_URL = "/static/"
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_URL = "/media/"
REST_FRAMEWORK = {
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination",
"PAGE_SIZE": 10,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment