Issue #4046
closedmakemigrations seems to ignore custom /etc/pulp/settings.py
Description
Having a /etc/pulp/settings.py file with:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.dummy',
'NAME': 'pulp',
'USER': 'pulp',
'HOST': 'foo',
'PORT': '5432',
'CONN_MAX_AGE': 0
},
}
and running 'pulp-manager makemigrations pulp_app'
it seems that the command is still trying to connect to the local postgresql server
Updated by dkliban@redhat.com about 6 years ago
- Status changed from NEW to POST
- Assignee set to dkliban@redhat.com
- Sprint set to Sprint 43
- Tags Pulp 3 added
Updated by dkliban@redhat.com about 6 years ago
- Status changed from POST to ASSIGNED
The patch I posted earlier only works for the web server. The RQ worker is still not seeing custom database settings.
Added by dkliban@redhat.com about 6 years ago
Added by dkliban@redhat.com about 6 years ago
Revision 617c916e | View on GitHub
Problem: database settings are not being used
Solution: load dynaconf in manage.py, wsgi.py, worker.py, and entry_points.py
This patch introduces a workaround for a dynaconf issue[0].
This patch also changes how Pulp is deployed on Travis. A non-default name is used for the database. That way we will know if the settings in the settings file are being used.
Updated by dkliban@redhat.com about 6 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset pulp|617c916e959b2bcc4dbd28a40d402e13f5fd5f19.
Updated by jsherril@redhat.com about 6 years ago
- Tags Katello-P1 added
- Tags deleted (
Pulp 3)
Updated by ttereshc about 6 years ago
- Tags Pulp 3 added
- Tags deleted (
Katello-P1)
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Problem: database settings are not being used
Solution: load dynaconf in manage.py, wsgi.py, worker.py, and entry_points.py
This patch introduces a workaround for a dynaconf issue[0].
This patch also changes how Pulp is deployed on Travis. A non-default name is used for the database. That way we will know if the settings in the settings file are being used.
[0] https://github.com/rochacbruno/dynaconf/issues/89
closes: #4046 https://pulp.plan.io/issues/4046