Coder Social home page Coder Social logo

childxiaolu / mxshop_back Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lauzyhou/mxshop_back

0.0 0.0 0.0 17.58 MB

学习慕学生鲜项目后端,Django REST framework。

License: MIT License

JavaScript 82.49% Python 4.47% CSS 8.61% HTML 4.43%

mxshop_back's Introduction

MxShop_Back

学习慕学生鲜项目后端,Django REST framework。

项目结构

MxShop_Back:项目的配置目录

apps:存放所有app

extra_apps:存放第三方包,有些修改了源码的放在这里最合适

media:媒体文件

templates:项目的静态文件

db_tools:一些用于数据库初始化等的Python脚本

static和collect_static:存放本地静态文件

一些操作

映射模型到数据库

清空数据库后执行此操作。

makemigrations
migrate

收集静态资源到本地目录

将收集到collect_static目录。

collectstatic

创建超级用户

createsuperuser

初始化数据库

运行db_tools下的两个脚本。因为外键约束,应先导入类别数据,再导入商品数据。

相关资源

学习视频

https://www.bilibili.com/video/av40066981

XAdmin for Django2

pip install https://codeload.github.com/sshwsfc/xadmin/zip/django2

DUEitor

这是DjangoUEditor的个人维护版,支持Django2,直接下载使用。

https://github.com/dhcn/DUEditor

VueDjangoFrameWorkShop

这是依照该项目教学视频的一个学员的实现,在这里可以找到视频中项目后端源码。

https://github.com/mtianyan/VueDjangoFrameWorkShop

其它

在MxShop_Back子目录下创建privacy.py,里面设置自己的第三方API KEY,这些隐私设置不会被提交。

mxshop_back's People

Contributors

lauzyhou 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.