Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Gin-Cy/bugeditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

配置和安装

环境

Django-1.10.8

python2.7

Wndows/Mac

安装

python –m pip install –r requirements.txt

Mac下安装mysql以及MySQL-python

brew install mysql

pip install MySQL-python

如果第二条安装出现"Failed building wheel for mysql-python"错误,则采用以下方法

LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysql-python

启动服务

建库

本地mysql需要新建配置文件中的数据库

settings.py文件:

DATABASES = {

'default':{
 'ENGINE':'django.db.backends.mysql',
 'HOST':'127.0.0.1',
 'PORT':'3306',
 'NAME':'bugwrite', # 数据库名
 'USER':'root',
 'PASSWORD':'root',
 'OPTIONS':{
 'init_command':"SET sql_mode='STRICT_TRANS_TABLES'"
 },
}

}

建表

cd myweb01

python manage.py makemigrations

python manage.py migrate

启服务

python manage.py runserver

About

bugeditor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /