Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #271 from kjaymiller/lilthings
Browse files Browse the repository at this point in the history
Reword some Django comments, remove CHANGELOG
  • Loading branch information
pamelafox authored Nov 27, 2023
2 parents 58c1e0a + a48e2f0 commit 607f04e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
13 changes: 0 additions & 13 deletions {{cookiecutter.__src_folder_name}}/CHANGELOG.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


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

# Determine whether we're in production, as this will affect many settings.
prod = bool(os.environ.get("RUNNING_IN_PRODUCTION", False))

if not prod: # Running in a Test Environment
DEBUG = True
if not prod: # Running in a Test/Development environment
DEBUG = True # SECURITY WARNING: don't run with debug turned on in production!
DEFAULT_SECRET = "insecure-secret-key"
ALLOWED_HOSTS = []
CSRF_TRUSTED_ORIGINS = [
Expand All @@ -33,7 +30,7 @@
CSRF_TRUSTED_ORIGINS.append(
f"https://{os.environ.get('CODESPACE_NAME')}-{{cookiecutter.web_port}}.{os.environ.get('GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN')}"
)
else: # Running is Production
else: # Running in a Production environment
DEBUG = False
DEFAULT_SECRET = None
ALLOWED_HOSTS = [
Expand All @@ -45,7 +42,6 @@
{% if cookiecutter.project_host == "appservice" %}"https://" + os.environ['WEBSITE_HOSTNAME'],{% endif %}
]

# SECURITY WARNING: don't run with debug turned on in production!
SECRET_KEY = os.environ.get("SECRET_KEY", DEFAULT_SECRET)

INSTALLED_APPS = [
Expand Down

0 comments on commit 607f04e

Please sign in to comment.