Coder Social home page Coder Social logo

learnmxonline's Introduction

LearnMxOnline

学习Python3.x与Django2.0.1在线教育平台网站的开发,代码记录,简书记录

开发环境

  • Python 3.6.6
  • Django 2.0
  • OS:Windows (其实我是很想在Linux上开发的,奈何我开个虚拟机就炸锅了)
  • MySQL:5.7

Quick Start

$ git clone https://github.com/iSk2y/LearnMxOnline.git
$ cd LearnMxOnline
$ pip install -r requirement.txt
  • 数据库部署:SQL结构和数据均已给出,安装MySQL后创建名为mxonline库,导入SQL即可。
  • super:默认super的账号为admin,密码为rootroot
$ python manage.py runserver

收获

  • CBV模式的进一步熟悉使用,CBV模式的装饰器
  • model建立**,一对多关系等。为防止循环调用,需要构建的有层次。
  • 在model中书写某些orm查询,而后在模板中直接调用该变量的属性来使用。而不直接在view中书写
  • 注册、找回密码、更换邮箱、全局消息等具体逻辑实现思路。
  • xadmin组件的进阶使用
  • 全局配置处理404和500的方法。
  • 项目部署上线的大体步骤。

learnmxonline's People

Contributors

isk2y avatar

Stargazers

 avatar  avatar  avatar

learnmxonline's Issues

ubuntu下运行报错

Traceback (most recent call last):
File "manage.py", line 15, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.6/dist-packages/django/core/management/init.py", line 371, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.6/dist-packages/django/core/management/init.py", line 317, in execute
settings.INSTALLED_APPS
File "/usr/local/lib/python3.6/dist-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/usr/local/lib/python3.6/dist-packages/django/conf/init.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.6/dist-packages/django/conf/init.py", line 106, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/seng/test1/LearnMxOnline/mxonline/settings.py", line 14, in
from mxonline.email_conf import *
ModuleNotFoundError: No module named 'mxonline.email_conf'

说是没有 mxonline.email ???

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.