<p>In a Django application with PostgreSQL as database, where do the users get stored? Any file where can I check the users info...basically where will be the .db file stored in Django?</p>

<p>The default location for storage in PostgreSQL is <code>/var/lib/postgresql/data</code>. <a href="https://kubernetes.io/docs/concepts/configuration/secret/" rel="nofollow noreferrer">Kubernetes</a> provides the Secret object to store sensitive data, which can be created using i.e. the declarative file specification.</p>

<pre><code>apiVersion: v1
kind: Secret
metadata:
  name: postgres-credentials
type: Opaque
data:
  user: ZGphbmdv
  password: MWEyNmQxZzI2ZDFnZXNiP2U3ZGVzYj9lN2Q=
</code></pre>

<p><code>User</code> field as well as <code>password</code> field contains base64 encoded strings where the encoding can be generated from the command line by running:</p>

<pre><code>$ echo -n "&lt;string&gt;" | base64
</code></pre>

<p>The Secret object is then added to the kubernetes cluster using:</p>

<pre><code>$ kubectl apply -f postgres/secrets.yaml
</code></pre>

<p>By default, Django uses the sqlite database configuration. To update the database configuration, the following modifications needs to be made to the DATABASES variable in the <code>settings.py</code> file. Please refer to <a href="https://docs.djangoproject.com/en/1.8/ref/settings/#database" rel="nofollow noreferrer">documentation</a>.</p>

<pre><code>DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'kubernetes_django',
        'USER': os.getenv('POSTGRES_USER'),
        'PASSWORD': os.getenv('POSTGRES_PASSWORD'),
        'HOST': os.getenv('POSTGRES_HOST'),
        'PORT': os.getenv('POSTGRES_PORT', 5432)
     }
}
</code></pre>

<p>I hope it will helps you.</p>
