あなたはプロジェクト(最上位)Djangoディレクトリのsettings.pyを探していると思います。そうでない場合は、さらに情報を投稿しますか?
Djangoプロジェクトディレクトリ/ home/amr/django/amrのsettings.pyファイルがあります。
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Somone R. Somebody'[email protected]'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
#'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE': 'mysql',
'NAME': 'some-server-name', # Or path to database file if using sqlite3.
'USER': '<user>', # Not used with sqlite3.
'PASSWORD': 'xxxxxxxx', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
SESSION_COOKIE_AGE = 15 * 60 * 60 # Age of cookie, in seconds
これは私が必要としていたものです。ありがとうございます。私は*複数のデータベース*ドキュメントを読んだが、私はその行を逃した。 –