Syed Md. Kamruzzaman
Syed Md. Kamruzzaman

Reputation: 1089

About Database Settings in Django Project

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': 'nova',
        'USER': 'root',
        'PASSWORD': 'password',
        'HOST': 'localhost',   # Or an IP Address that your DB is hosted on
        'PORT': '3306',
    }
}

Please help..

Upvotes: 1

Views: 538

Answers (1)

Jenita Lazar
Jenita Lazar

Reputation: 56

You have to setup your DB in the settings.py file in horizon/openstack_dashboard folder .The DB name is devstack or any other name .All the django apps table will be created in a single DB

Upvotes: 4

Related Questions