Skip to content

SE-MCDB/SE2022_Backend

Repository files navigation

SE2022 Backend

Description

This is the backend code of the PaperDaily project based on django2.2.

Quick Start

  1. Install python3.7 or later

  2. Copy model.pt to the root directory

  3. Set up the database in backend/settings.py

  4. Install dependencies

$ pip install -r requirements.txt
  1. Milvus: pdf, code

  2. Run server

$ python manage.py runserver 0:8000

Error

if error
File "/home/admin/.local/lib/python3.7/site-packages/django/db/backends/mysql/operations.py", line 146, in last_executed_query
    query = query.decode(errors='replace')
AttributeError: 'str' object has no attribute 'decode'

则注释掉该文件的145-146

145         # if query is not None:
146         # query = query.decode(errors='replace')
147         return query

Server

http://122.9.14.73:8000/

Account

目前设置已有的管理员账户为:

'USER': admin
'PASSWORD': se-mcdb-o2e

也可以自行创建管理员账户:

python manage.py createsuperuser

License

MIT

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages