Git Product home page Git Product logo

csmarket's Introduction

CSMarket

University student trading platform
大学生交易平台


简介

这是一个基于Django的网站,主要是为了大学生创造一个创意交易平台和代办平台,如果你也对这个项目感兴趣的话,你可以联系我.
我的联系方式是:
微信: gyt13342445911
QQ: 1923361654
邮箱: [email protected]


环境说明

系统: Ubuntu 16.04
python: python3.5
Django: 1.10.4
Mysql 5.7.17(并没有使用内嵌的sqlite)
data目录: 数据库文件备份
数据库备份: /usr/bin/mysqldump -uusername -ppassword databasename --default-character-set=utf8 --opt -Q -R >./csmarket.sql
数据库恢复: /usr/bin/mysql -uusername -ppassword databasename --default-character-set=utf8 <./csmarket.sql
后台登录的账号和密码是: thinkgamer csmarket

pymysql

安装 : pip3 install pymysql
在项目的__init__.py文件中加入以下内容 :

import pymysql  
pymysql.install_as_MySQLdb()

kindeditor

后台中引入富文本编辑器


备注

1:user扩展方式是AbstractUser
2: 遇到问题

module 'django.views' has no attribute 'static'

解决办法:先把出错的地方注释掉,同步数据库后在解除掉注释


django request.FILES MultiValueDictKeyError

解决办法:form 表单中添加 enctype="multipart/form-data

django model 中的或查询

解决办法: Q对象查询,http://blog.csdn.net/heybob/article/details/50547552

3:Django教程 Django 从零开始到项目优化

csmarket's People

Contributors

thinkgamer avatar

Watchers

 avatar

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.