Skip to content

Commit

Permalink
Configure IPython configuration dir in the API (#4376)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored May 27, 2024
1 parent b4ab20c commit da24631
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ openapi.json

# Schemathesis
.hypothesis

# IPython (except startup scripts)
.ipython/*
!.ipython/profile_default/
.ipython/profile_default/*
!.ipython/profile_default/startup/
.ipython/profile_default/startup/*
!.ipython/profile_default/startup/*.py
3 changes: 3 additions & 0 deletions api/.ipython/profile_default/startup/10_imports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.conf import settings as settings

from api.models import * # noqa: F403
2 changes: 2 additions & 0 deletions api/env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ SEMANTIC_VERSION=1.0.0
ELASTICSEARCH_URL=es

WATERMARK_ENABLED=True

IPYTHONDIR=/api/.ipython
2 changes: 2 additions & 0 deletions api/env.template
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ IS_PROXIED=False
FILTER_DEAD_LINKS_BY_DEFAULT=False
ENABLE_FILTERED_INDEX_QUERIES=True
# SHOW_COLLECTION_DOCS=True

IPYTHONDIR=/api/.ipython

0 comments on commit da24631

Please sign in to comment.