2021
01-14
01-14
Django扫码抽奖平台的配置过程详解
安装源pipinstalldjango2.2pipinstallmysqlclient1.4.6使用pyharm创建django项目django基本配置在settings.py中设置数据库链接DATABASES={'default':{'ENGINE':'django.db.backends.mysql','NAME':'km','USER':'root','PASSWORD':'n4','HOST':'na.cc','PORT':'3306'}}在settings.py里面配置好端口:ALLOWED_HOSTS=['*']配置语言LANGUAGE_CODE=‘zh-hans'配置时区TIME_ZONE=‘Asia/Shanghai'设置时间...
继续阅读 >