import os
import sys

extra_library_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "lib")
if extra_library_path not in sys.path:
    sys.path.insert(1, extra_library_path)

default_app_config = 'djangae.apps.DjangaeConfig'

from patches import json
json.patch()

import os
import sys

extra_library_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "lib")
if extra_library_path not in sys.path:
    sys.path.insert(1, extra_library_path)

default_app_config = 'djangae.apps.DjangaeConfig'

from .patches import json
json.patch()

Make import of `patches` explicitly relative.
Make import of `patches` explicitly relative.

Avoids potential conflict if you add a global package called `patches`, and will avoid breakage if this moves to Python 3.
