Skip to content

[Question] docker-compose fails after changing to Djongo in settings.py #2

@scheung38

Description

@scheung38

Changed to using mongodB via djongo, so modified settings.py, and it is working locally:

DATABASES = {
    'default': {
        'ENGINE': 'djongo',
        'NAME': 'my-mongodb',
        # 'CLIENT': {
        #     'host': 'your-db-host',
        # }
    }
}

Commented out the following:

try:
    from .local_settings import * 
except ImportError: 
    pass 

Successfully migrated to use mongoDB under the hood, but still working with models.py schemas.

But do we need to change docker-compose.yaml accordingly? Since all the containers have exited when docker-compose up

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions