Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Fix config import
Browse files Browse the repository at this point in the history
An ImportError is thrown by Django's manage.py when 'config' is
imported in server/settings.py. This commit fixes this bug.
  • Loading branch information
sharmaeklavya2 committed Nov 3, 2018
1 parent efe7f2f commit 4b42bde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

# Django settings for django_agfk project.
import os
import config
import sys

SETTINGS_PATH = os.path.realpath(os.path.dirname(__file__))
CLIENT_SERVER_PATH = SETTINGS_PATH
AGFK_PATH = os.path.realpath(os.path.join(SETTINGS_PATH, '../'))

sys.path.append(AGFK_PATH)

import config

ADMINS = (
# ('Your Name', '[email protected]'),
Expand Down

0 comments on commit 4b42bde

Please sign in to comment.