Skip to content

Commit

Permalink
Move and fix example settings (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve authored Jun 28, 2023
1 parent b712047 commit 0010a69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion example/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")

from django.core.management import execute_from_command_line

Expand Down
8 changes: 1 addition & 7 deletions example/app/settings.py → example/settings.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import os
import sys

BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))

# Include BOOTSTRAP3_FOLDER in path
BOOTSTRAP3_FOLDER = os.path.abspath(os.path.join(BASE_DIR, "..", "bootstrap3"))
if BOOTSTRAP3_FOLDER not in sys.path:
sys.path.insert(0, BOOTSTRAP3_FOLDER)
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__)))

DEBUG = True

Expand Down

0 comments on commit 0010a69

Please sign in to comment.