岗位分析与可视化系统(二)

四、页面信息以及后端

引用外部static文件 下载:文件 密码:1oeu

views.py的相关库

from django.core.paginator import Paginator
from django.shortcuts import render, redirect
from myapp.models import User
from .utils.error import *
import hashlib
from .utils import getHomeData
from .utils import getSelfInfo
from .utils import getChangePW
from .utils.error import *
from .utils import getTableData
from .utils import getSalary
from .utils import getCompany
from .utils import geteduData
from .utils import getCompanyStatus
from .utils import getAddress
from spider import boss
from . import world_cloud, models

在/myapp/utils下编写getHomeData.py

自定义月份、工作经验、薪资期间、公司规模、热门城市列表和学历字典,获取数据库中的所有用户和所有工作信息

from myapp.models import *

monthList = ['January', 'February', 'March', 'April', 'May', '

你可能感兴趣的:(毕设,django,python,后端)