Skip to content

generev/Document-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Document Management System (2021 Spring)

Contents

Introduction

This repo includes final project based on MySQL in Database and Implementation course (DATA130039.01) in School of Data Science @Fudan University.

Prerequisites

  • Python version: 3.8
  • Django version: 3.2.1
  • pymysql library version: 1.0.2
  • pyecharts library version: 1.9.0

Install requirements with:

pip install -r requirements.txt

Usage

  1. Set up DMS/settings.py :

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.mysql',
            'NAME': '',  # e.g. DMS
            'USER': '',  # e.g. root
            'PASSWORD': '',  # Your MySQL server password
            'HOST': '127.0.0.1',
            'PORT': '3306',
        }
    }
    
    ...
    
    EMAIL_HOST = 'smtp.xxx.com'  # e.g. 'smtp.163.com'
    EMAIL_PORT = '25'
    EMAIL_HOST_USER = ''  # e.g. 'xxxxxx@163.com'
    EMAIL_HOST_PASSWORD = ''  # Password for the SMTP server, not your e-mail password
  2. Apply migrations to your database (in command window) :

    python manage.py makemigrations
    python manage.py migrate
  3. Create super user :

    python manage.py createsuperuser
  4. Run scripts in /utils/ to get required data, and connect with your database.

    • /spider/cvpr2csv_withoutdate.py : CVPR data, and you can get ICCV / WACV in the same way
    • /fake-users/fake-users.py : generate some lorem ipsum users
    • /wordcloud/wc_for_year.py : generate word cloud images

    You can skip this step and use the backup data we provided in ./static/data/ (may be out of date)

    And don't forget to import data to the corresponding database, you can easily identify them by databases' names

  5. Run server :

    python manage.py runserver

Preview

  1. Get started

  2. Login

  3. Register

  4. E-mail check

  5. Homepage, scroll down to get introductions

  6. Library & Pagination

  7. Search bar

  8. Abstract & Download

  9. Sidebar

  10. Statistics - Author Ranking

  11. Statistics - Paper Statistics

  12. Statistics - Word Cloud

  13. Collection

  14. Admin

References

  1. Django documents Everything you need to know about Django
  2. W3schools Learn HTML / CSS / JS / Bootstrap
  3. Django ORM Query / CN Django making queries to MySQL
  4. Looka Logo maker
  5. Color Space Fancy color palettes generator
  6. Font Awesome Frequently used icons
  7. Django用户登录与注册系统-CSDN Start your first attempt

About

This repo includes final project based on MySQL in Database and Implementation course (DATA130039.01) in School of Data Science @fudan University.

Topics

Resources

License

Stars

Watchers

Forks

Contributors