jhao104 / django-blog

django搭建博客

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setting.py怎么配置自己的数据库呢?

opened this issue · comments

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'django_blog',
'USER': 'root',
'PASSWORD': '5849312',
'HOST': '127.0.0.1',
'PORT': '3306'
}
}
是修改这部分吗?

对的 就是Django数据库的配置