def get_file_contents(filepath, raw_bytes=False, mode='r'):
    with open(filepath, mode) as f:
        return f.read() if raw_bytes else f.read().decode('utf-8')
Set up everything the server needs to support projects running GeoDjango
dataset/ETHPy150Open oppia/oppia/utils.py/get_file_contents--crossover with--dataset/ETHPy150Open typeish/django-deploy/django_deploy/system.py/setup_geodjango