Coder Social home page Coder Social logo

django-companysite's Introduction

介绍

本项目使用django==2.1.7+pyhton==3.7开发,满足日常企业需求,

  • 手机端和PC端共用后台
  • 自定义官网主题
  • 表单开关可自定义
  • 表单中加入验证码和审核功能,防止恶意提交
  • 有表单提交时通过邮件方式提醒管理员

安装

  1. 克隆本项目至本地

  2. 使用虚拟环境安装依赖包

    pip install -r requirements.txt
  3. 数据迁移

    python manage.py makemigrations
    python manage.py migrate
    
    # 创建超级管理员
    python manage.py createsuperuser
  4. 进行虚拟数据导入(必做,防止出错)

    • 方法一

      • 在编辑器中打开项目,找到utils/db_tools/import_system_data.py和utils/db_tools/import_function_data.py两个文件
      • 在编辑器中分别运行两个文件
    • 方法二

      • 在数据迁移之后,打开数据库文件,找到数据表System_companysite和System_companyfunction
      • 为两个数据表添加一条数据,每一个主键ID都为1
  5. 配置settings.py文件,将邮箱配置修改成你自己的

  6. 运行项目

python manage.py runserver

django-companysite's People

Contributors

liulu1550 avatar

Watchers

 avatar

Forkers

gaomugong fusifen

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.