Skip to content

Commit

Permalink
Fix test settings.BASE_DIR
Browse files Browse the repository at this point in the history
* sqlite db were being placed outside the project
* also git ignore sqlite db
  • Loading branch information
therefromhere committed Apr 15, 2019
1 parent 0580d6f commit bf2d1e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ __pycache__
# Sphinx
docs/_build
docs/_static

# SQLite
*.sqlite3
2 changes: 1 addition & 1 deletion tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
SITE_ID = 1
TIME_ZONE = "UTC"
USE_TZ = True
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(PROJECT_DIR)

ALLOWED_HOSTS = json.loads(os.environ.get("DJSTRIPE_TEST_ALLOWED_HOSTS_JSON", "[]"))
Expand Down

0 comments on commit bf2d1e0

Please sign in to comment.