Giter Site home page Giter Site logo

jinghao1 / django_web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yuyexiaohan/django-new-web

0.0 0.0 0.0 31.09 MB

基于Django做的一个新闻网站,有新闻展示、搜索、在线视频播放、资源下载、订单支付、后台CMS管理等功能

Home Page: http://www.achjiang.com

Python 97.03% PHP 1.03% SCSS 1.94%

django_web's Introduction

Django-New-Web

基于Django做的一个新闻网站,有新闻展示、搜索、在线视频播放、资源下载、订单支付、后台CMS管理等功能

  1. 下载文件到本地,创建一个虚拟环境后,使用pip install -r requirements.txt 安装模块
  2. 创建config.py文件,示例如下:
    """
    # config.py文件相关参数配置
    # 文件路径/diango_01/config.py
    """

    # 数据库
    MYSQL_NAME = ''
    MYSQL_USER = ''
    MYSQL_PASSWORD = ''
    MYSQL_HOST = ''
    MYSQL_POST = ''
    
    # 阿里云短信服务
    ALI_ACCESS_KEY_ID = ""
    ALI_ACCESS_KEY_SECRET = ""
    ALI_SIGN_NAME = ""
    ALI_TEMPLATE_CODE = ""
    
    # 七牛云存储
    QINIU_ACCESS_KEY = ''
    QINIU_SECRET_KEY = ''
    QINIU_BUCKET_NAME = ''
    QINIU_DOMAIN = ''
    
    # 百度云点播
    BAIDU_CLOUD_USER_ID = ""
    BAIDU_CLOUD_USER_KEY = ''
    
    # 支付pypay
    PAY_TOKEN = ''
    PAY_UID = ''
  1. 使用python manage.py make migrationspython manage.py migrate检查并迁移数据库

  2. 环境配置完成后,使用python manage.py runserver 0.0.0.0 8000命令运行系统

  3. 在浏览器中输入127.0.0.1:8000查看运行项目

django_web's People

Contributors

dependabot[bot] avatar jinghao1 avatar yuyexiaohan 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.