Skip to content

feat(cl): add example for creating custom settings file #5860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ CL_API_TOKEN=""

# The number of sitemap 'files' (pages) to cache per sitemap generation call
SITEMAPS_FILES_PER_CALL=10

# Uncomment if you need to use custom settings
# See also local_private.py.example
#DJANGO_SETTINGS_MODULE=cl.settings.local_private
24 changes: 24 additions & 0 deletions cl/settings/local_private.py.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copy this to local_private.py and uncomment the corresponding line in
# your .env.dev file.
from . import *


############
# Examples #
############

# To show embedded files from the public site. Use this for data you have
# reproduced or cloned from the public API.

#AWS_S3_CUSTOM_DOMAIN = "storage.courtlistener.com"
#CSP_CONNECT_SRC += (f"https://{AWS_S3_CUSTOM_DOMAIN}/",) # for embedded PDFs


# A troubleshooting step if the Django Debug Toolbar is not loading. For
# example, the desktop version of Docker proxies all requests through an
# internal IP (Settings->Resources->Network->Docker subnet). This doesn't get
# picked up by our INTERNAL_IPS logic.

#DEBUG_TOOLBAR_CONFIG = {
# "SHOW_TOOLBAR_CALLBACK": lambda request: True,
#}