Skip to content

About Database Settings in Django Project #839

@SyedMdKamruzzaman

Description

@SyedMdKamruzzaman

I want to set database setting in django project.

Which settings.py I should use.

I found many settings.py file.

I have setup devstack where many folders are there like horizon, cinder, nova etc.

I found settings.py in horizon folder.

and from when I setup Django I found in /usr/local/lib/python2.7/dist-packages/django/conf/project_template/project_name folder.

Please make suggest which settings.py I should use and

I can access database by user root with no database name giving in MySql Workbench.

Which database connection I should use?

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'What this should be?? nova/empty',
'USER': 'root',
'PASSWORD': '',
'HOST': 'localhost', # Or an IP Address that your DB is hosted on
'PORT': '3306',
}
}
Please help..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions