Coder Social home page Coder Social logo

testolinebc's Introduction

testolinebc's People

Contributors

zhangbinchao avatar

Stargazers

 avatar 郭骏驰 avatar zhizao avatar Wu  avatar  avatar 袅残烟 avatar LambdaX avatar  avatar testgit_1 avatar  avatar  avatar  avatar  avatar  avatar 姜忠良 avatar pirogue avatar roylo avatar  avatar  avatar  avatar  avatar D7 avatar  avatar liy avatar  avatar ladium avatar  avatar  avatar amspring avatar  avatar xb avatar  avatar Misaki avatar  avatar  avatar  avatar Paulzhousz avatar  avatar Tong avatar  avatar  avatar

Watchers

James Cloos avatar Dawei Shang avatar  avatar

testolinebc's Issues

请问:mysql数据库如何配置

根据你在“Django+xadmin打造在线考试系统(五)完结”中介绍的步骤,
先通过pyCharm操作,clone下项目代码,
1建立虚拟环境
2安装第三方库
根据requirement.txt安装
3配置数据库,在setting.py中:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mydb', #数据库名
'USER': 'root', #账号
'PASSWORD': '123', #密码
'HOST': '127.0.0.1', #IP
'PORT': '3306',
}
}
4生成数据库,
python manage.py makemigrations
此时报错,截取部分提示:
File "F:\PythonWorks\Django\TestOlinebc\venv\lib\site-packages\django\db\backends\base\base.py", line 21
6, in ensure_connection
self.connect()
File "F:\PythonWorks\Django\TestOlinebc\venv\lib\site-packages\django\db\backends\base\base.py", line 19
4, in connect
self.connection = self.get_new_connection(conn_params)

像是没有与数据库连接好,我的电脑没有安装mysql,django自带sqlite3数据库。
不知你用的mysql版本是哪个?其中还需要其他如何配置?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.