沿用Python+Flask+Mysql的web建设技术开发网站

news/2024/5/12 3:21:57/文章来源:https://blog.csdn.net/weixin_30823001/article/details/95649150

1 系统概要说明

 1.1开发目的

       如今音乐已经成为人们尤其是年轻人的日常必备。走路,坐车,逛街,我们都能看到戴着耳机听音乐的人。古风曲、日韩风、欧美风、hippop等等各种音乐风格多样。随着媒体的发展,微博微信公众号媒体采访等等的发展,人们对音乐的理解也开始不只是限于听,越来越多的人开始了解歌曲背后的含义的故事。每首歌曲背后都有着不一样的情感和故事,每首歌都代表着不一样的经历和成长。总有歌曲里似乎有着我们的身影和故事,在某个瞬间已是如同曲中人。

       发现歌曲背后的故事,聊聊属于我们的感受和想法,分享藏着我们记忆和故事的那些歌。在音乐的世界中,放松自己,了解自己,也学会好好爱自己和珍惜身边的人。

2 网站结构设计

1.网站允许不登录的游客访问,游客可以在网站首页查看网站用户发布的相关帖子,可以查看音乐榜单,但是只能看当前页的帖子,不可以过页查看,并且不允许评论和发布帖子。

2.网站用户先注册后登录,注册需要填写不少于3字符的用户名、设置密码;注册后可用用户名和密码登录。密码错误或者用户名错误都无法登录。

3.网站用户登录后,导航栏会显示用户名,用户如若需要下线或者切换帐号可以注销帐号重新登录。

4.网站用户登录后,可以查看网站用户发布的所有帖子,可以进行评论、点赞和收藏,网站也会根据浏览记录推荐相关的帖子。

5.网站用户登录后,可以浏览自己发布过的帖子,发过的评论和查看自己的个人信息,也可以重新修改头像和密码。

6.网站访问者可以通过网站右侧的分类浏览需要的类别帖子,也可以通过搜索关键词浏览帖子,网站也会将热度前五的帖子标题显示在左侧方便浏览。

3.模块详细设计

导航栏(父模版):

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>{% block title %}{% endblock %}Music世界</title>{% block link %}{% endblock %}<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css"><script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script><script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script><link rel="stylesheet" type="text/css" href="../static/css/base.css">{% block head %}{% endblock %}
</head>
<body  id="body">
<nav class="navbar navbar-default" role="navigation"><div class="container-fluid dao"><ul class="nav nav-pills nav2"><li><img src="{{ url_for('static',filename='image/logo.png') }}" style="margin-left: 20px;" ></li><li class="active"><a href="{{ url_for('index') }}">首页</a></li><li><a href="#">音乐分享</a></li><li><a href="#">音乐榜单</a></li><li><a href="#">我的音乐</a></li><li><a href="#">音悦世界</a></li><li><a href="{{ url_for('question') }}">发帖</a></li>{% if user_id %}<li style="float: right;margin-right: 100px"><a href="{{ url_for('logout') }}">注销</a></li><li style="float: right"><a href="{{ url_for('comment',user_id=user.id,num='1') }}">{{ user.username }}</a></li>{% else %}<li style="float: right;margin-right: 150px"><a href="{{ url_for('regist') }}" style="color: hotpink">注册</a></li><li style="float: right"><a href="{{ url_for('login') }}">登录</a></li>{% endif %}<div ><form action="{{ url_for('search') }}" method="get" class="bs-example bs-example-form" role="form"><div class="col-lg-6" style="width: 250px;padding-bottom: 30px"><div class="input-group"><input name="q" type="text" class="form-control" style="margin-top: 0" placeholder="请输入关键字"><span class="input-group-btn"><button class="btn btn-default" type="submit">搜索</button></span></div><!-- /input-group --></div><!-- /.col-lg-6 --></form>
</div></ul></div></nav><div class="box">{% block box %}{% endblock %}
</div>
{% block script %}{% endblock %}
</body>
</html>

首页:

{% extends 'base.html' %}
{% block title %}首页
{% endblock %}{% block link %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/shouye.css') }}"><script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script><script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
{% endblock %}{% block box %}<div ><div class="col-md-2 column"></div><div  style="margin-left: 150px;"><ul class="list-group">{% for foo in questions %}<div class="info"><li class="list-group-item" style="width: 800px"><a  href="{{ url_for('comment',user_id=foo.author.id ,num='1') }}" target="_blank"><img src="{{ url_for('static',filename=foo.author.icon) }}" width="50px"></a><a href="{{ url_for('comment',user_id=foo.author.id ,num='1') }}" style="color: #337ab7"target="_blank">{{ foo.author.username }}</a><h4><a href="{{ url_for('detail',question_id=foo.id) }}">{{ foo.title }}</a></h4><span class="badge">{{ foo.creat_time }}</span><p style="">{{ foo.detail[0:50] }}...</p><div><strong>浏览:<small>{{ foo.look }}</small></strong><strong> 分类:{{ foo.cfClass.name }}</strong><strong style="padding-left: 10px;"> 点赞:{{ foo.click }}</strong></div></li></div>{% endfor %}</ul><div style="width: 200px;float: right;margin-right: 80px;margin-top:-900px;text-align: center"><a href="#" class="list-group-item " style="background-color: #337ab7;color: #fff" >帖子分类</a>{% for c in cf %}<a href="{{ url_for('c',cf=c.id) }}" class="list-group-item">{{ c.name }}</a>{% endfor %}</div></div><div class="flo"><a href="#" class="list-group-item" style="width: 200px;background-color: #337ab7;color: #fff;text-align: center;">热门推荐</a>{% for q in hot %}<a href="{{ url_for('detail',question_id=q.id) }}" class="list-group-item" style="width: 200px;"><span style="font-size: 16px;color: red;padding-right: 10px;width:105px;">{{ loop.index }}</span>{{ q.title }}</a>{% endfor %}</div></div>
</div>{% endblock %}{% block script %}<script>{% if info %}alert('{{ info }}'){% endif %}</script>
{% endblock %}

注册:

{% extends 'base.html' %}
{% block title %}注册
{% endblock %}{% block link %}<link rel="stylesheet" type="text/css" href="../static/css/style.css"><link href='http://fonts.googleapis.com/css?family=Oleo+Script' rel='stylesheet' type='text/css'>
{% endblock %}{% block box %}<div class="lg-container"><h1 style="color:deeppink;">注册</h1><form action="{{ url_for('regist') }}" method="post" id="lg-form" name="lg-form" ><div><label for="username">Username:</label><input class="shuru" type="text" name="username" autocomplete="off" placeholder="请输入用户名"></div><div><label for="password">Password:</label><input class="shuru" type="password" id="Password1" name="password" autocomplete="off" placeholder="设置密码" ></div><div><label for="password">Password1:</label><input class="shuru" type="password" id="Password2" name="password" autocomplete="off" placeholder="确认密码" ></div><div id="error_box"></div><button type="submit" id="regist" οnclick="return aaa()">注册</button></form></div>{% endblock %}{% block script %}<script>function aaa() {var p1 = document.getElementById('Password1')var p2 = document.getElementById('Password2')if (p1.value != p2.value){alert('两次密码不一样!')return false;}return true;}</script>
{% endblock %}

登录:

{% extends 'base.html' %}
{% block title %}登录
{% endblock %}{% block link %}<link rel="stylesheet" type="text/css" href="../static/css/style.css"><link href='http://fonts.googleapis.com/css?family=Oleo+Script' rel='stylesheet' type='text/css'>
{% endblock %}{% block box %}<div class="lg-container" ><h1 style="color:deeppink;">登录</h1><form action="{{ url_for('login') }}" method="post" id="lg-form" name="lg-form" ><div><label for="username">Username:</label><input class="shuru" id="inputEmail3" type="text"  name="username" placeholder="请输入用户名"><br></div><div><label for="password">Password:</label><input class="shuru" id="inputPassword3" type="password" name="password" placeholder="请输入密码" ></div><input type="checkbox" name="vehicle" value="true" ><span>记住密码</span><a class="right" href="">登录遇到问题?</a><div id="error_box"></div><button type="submit" value="login" id="login" οnclick="return fnLogin()">登录</button></form><div id="message"></div>
</div>
{% endblock %}

发布帖子:

{% extends 'base.html' %}
{% block title %}发布问答
{% endblock %}<link rel="stylesheet" type="text/css" href="../static/css/release.css">
<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script><script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>{% block box %}<div class="container" style="background-image: url(/static/image/back.jpg);width: 500px" ><div class="row clearfix"><div class="col-md-4 column"></div><div class="col-md-4 column"></div><div class="lg-container"><h1 align="center" style="color: salmon">发布帖子</h1><form role="form" action="{{ url_for('question') }}" method="post"><br/><div class="q"><label for="inputEmail3">标题</label><br><input type="text" name="author_id" value="{{ user.id }}" hidden><textarea id="title" name="title" class="form-control" cols="80" rows="1"></textarea></div><div class="form-group"><label for="name">内容</label><br>
{#            <textarea class="form-control" id="questionDetail" name="questionDetail" cols="60" rows="5" ></textarea>#}<textarea placeholder="详情" class="form-control" rows="5" id="detail" name="detail" style="width: 500px"></textarea></div><div class="form-group" style="margin-left:-115px"><div class="col-sm-offset-2 col-sm-5"><select name="cf" id="" class="form-control"><option value="">--选择分类--</option>{% for c in cf %}<option value="{{ c.id }}">{{ c.name }}</option>{% endfor %}</select></div></div><br><div style="margin-top: 30px"><button type="submit" class="btn btn-primary" οnclick="{{ url_for('question') }}" >发布</button></div></form></div><div class="col-md-4 column"></div></div>
</div>{% endblock %}

帖子详情:

{% extends 'base.html' %}
{% block title %}帖子详情
{% endblock %}{% block link %}
<link rel="stylesheet" href="../static/css/detail.css"><script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script><script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
{% endblock %}{% block box %}<div class="container"><div class="row clearfix"><div class="col-md-2 column"></div><div class="col-md-8 column"><h3>{{ ques.title }}</h3><div style="padding: 10px;"><span style="padding-left: 5px;">作者:{{ ques.author.username }}</span><span style="padding-left: 10px;">浏览:{{ ques.look }}</span><span style="padding-left: 10px;">点赞:{{ ques.click }}</span><form method="post" style="display: inline-block;padding-left: 10px;"><input name="click" value="1" type="hidden"><button>点赞</button></form><form method="post" style="display: inline-block;padding-left: 10px;"><input name="collection" value="1" type="hidden">{% if col %}<button type="button" disabled>已收藏</button>{% else %}<button>收藏</button>{% endif %}</form><br><small class="badge">时间:{{ ques.creat_time }}</small></div><div style="padding: 20px 20px;margin-bottom: 50px;border:1px solid #eee;"><p>{{ ques.detail }}</p></div><hr><form class="form-horizontal" role="form" method="post" action="{{ url_for('answer') }}" style="margin-left: 0"><div class="form-group"><label for="inputEmail3" class="col-sm-2 control-label" style="text-align: left;font-size: medium;color: #337ab7;">评论</label><br><div class="col-sm-10" style="margin-left:7px"><input type="text" name="author_id" value="{{ user.id }}" hidden><input type="text" name="question_id" value="{{ ques.id }}" hidden><textarea class="form-control" name="detail" rows="10" placeholder="发表评论"></textarea></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10" style="margin-left:7px"><button type="submit" class="btn btn-default">发布</button></div></div></form><hr><h4>用户评论</h4>{% for com in comment %}<ul style="padding-left: 0;margin-bottom: 0;"><li class="list-group-item" style="width: 900px"><a href="#">{{ com.author.username }}</a><span class="badge">评论时间:{{ com.creat_time }}</span><p>{{ com.detail }}</p></li></ul>{% endfor %}<hr><div ><h3>推荐帖子</h3><br>{% for foo in questions %}<li class="list-group-item" style="width: 700px"><a class="wrap-img" href="#" target="_blank"><img src="{{ url_for('static',filename=foo.author.icon) }}" width="50px"></a><span class="glyphicon glyphicon-left" aria-hidden="true"></span><a href="{{ url_for('comment',user_id=foo.author.id ,num='1') }}"target="_blank">{{ foo.author.username }}</a><br><a href="{{ url_for('detail',question_id=foo.id) }}">{{ foo.title }}</a><span class="badge">{{ foo.creat_time }}</span><p style="">{{ foo.detail[0:50] }}...</p></li>{% endfor %}</div></div><div class="col-md-2 column"></div></div></div>
{% endblock %}

个人发帖:

{% extends 'comment.html' %}
{% block head %}<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/geren.css') }}"><script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script><script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
{% endblock %}
{% block subComment %}<ul class="list-group" style=""><h4>{{username }}<small> 全部帖子</h4><hr>{% for foo in questions %}<li class="list-group-item"  style="width: 800px"><a class="wrap-img" href="#" target="_blank"><img src="{{ url_for('static',filename=foo.author.icon) }}" width="50px"></a><span class="glyphicon glyphicon-left" aria-hidden="true"></span><a href="{{ url_for('comment',user_id=foo.author.id ,num='1')}}"target="_blank">{{ foo.author.username }}</a><br><a href="{{ url_for('detail',question_id=foo.id) }}">{{ foo.title }}</a><span class="badge">{{ foo.creat_time }}</span><p style="">{{ foo.detail[0:50] }}...</p></li>{% endfor %}</ul>
</div>
{% endblock %}

个人评论:

{% extends 'comment.html' %}{% block head %}<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/geren.css') }}"><script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script><script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>{% endblock %}
{% block subComment %}<div><h4>{{ username }}<small> 全部评论</small></h4><hr>{% for com in comment %}<ul style="padding-left: 0;margin-bottom: 0;"><li class="list-group-item" style="width: 900px"><a href="#">{{ com.author.username }}</a><span class="badge">评论时间:{{ com.creat_time }}</span><p>{{ com.detail }}</p></li></ul>{% endfor %}</div>
{% endblock %}

个人资料:

{% extends 'comment.html' %}
{% block head %}<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/geren.css') }}"><script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script><script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
{% endblock %}
{% block subComment %}<div ><h4>{{ username }}<small> 个人资料</small></h4><hr><a href="#" class="list-group-item " style="background-color: pink">用户:{{ user.username }}</a>
{#            <a href="#" class="list-group-item" style="background-color: pink">编号:{{ user.id }}</a>#}<a href="#" class="list-group-item" style="background-color: pink">昵称:{{user.user.name}} </a><a href="#" class="list-group-item " style="background-color: pink">帖子数:{{ questions|length }}</a><a href="#" class="list-group-item " style="background-color: pink">评论数:{{ comment|length }}</a></div>
{% endblock %}

修改信息:

% extends 'base.html' %}
{% block title %}个人信息修改
{% endblock %}{% block box %}<div class="container" style="padding-top: 10px;"><h2 align="center" style="color: salmon">修改信息</h2><div class="row clearfix"><div class="col-md-2 column"></div><div class="col-md-8 column"><h4 style="color: red">头像上传</h4><div style="margin: 5px 0px;margin-left: 70px;"><form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" action="{{ url_for('uploadLogo',user_id=user_id) }}" style="padding-top: 20px"><div class="form-group"><div class="col-sm-10"><input type="file" id="exampleInputFile" name="logo" required><button type="submit" class="btn btn-default">上传头像</button><img src="{{ url_for('static',filename=user.icon) }}" width="100px"/></div></div></form></div><h4 style="color: red">修改密码</h4><form class="form-horizontal" role="form" method="post" style="width: 500px;padding-top: 20px">
{#                    <div class="form-group" >#}
{#                        <label for="inputEmail3" class="col-sm-2 control-label">原密码</label>#}
{#                        <div class="col-sm-10">#}
{#                            <input type="password" name="old" class="form-control" id="p1" disabled/>#}
{#                        </div>#}
{#                    </div>#}<div class="form-group"><label for="inputPassword3" class="col-sm-2 control-label">新密码</label><div class="col-sm-10"><input type="password" name="new1" class="form-control" id="p2" required/></div></div><div class="form-group"><label for="inputPassword3" class="col-sm-2 control-label">确认密码</label><div class="col-sm-10"><input type="password" class="form-control" id="p3" required/></div></div><div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button type="submit" class="btn btn-success" οnclick="return f()">确认修改</button></div></div></form></div><div class="col-md-2 column"></div></div></div>{% endblock %}{% block script %}<script>function f() {if ($('#p2').val() == $('#p3').val())return true;alert('密码不一样');return false;}</script>
{% endblock %}

4.数据库设计

设计5个数据表分别为:

1.User表:用于存储用户注册的用户数据

class User(db.Model):__tablename__ = 'user'# 建立一个表userid = db.Column(db.Integer, primary_key=True, autoincrement=True)username = db.Column(db.String(20), nullable=False)_password = db.Column(db.String(200), nullable=False)say = db.Column(db.String(50))icon = db.Column(db.String(50))collection = db.relationship('Question', secondary=Collection, backref=db.backref('user', lazy='dynamic'),lazy='dynamic')

2.Question表:用于存储用户发布帖子的数据,包括帖子的标题、内容、发贴时间、发帖用户、类别、点赞数和浏览量

class Question(db.Model):__tablename__ = 'question'id = db.Column(db.Integer, primary_key=True, autoincrement=True)title = db.Column(db.String(100), nullable=False)detail = db.Column(db.Text, nullable=False)creat_time = db.Column(db.DateTime, default=datetime.now)author_id = db.Column(db.Integer, db.ForeignKey('user.id'))cf = db.Column(db.Integer, db.ForeignKey('cf.id'))look = db.Column(db.Integer)click = db.Column(db.Integer)author = db.relationship('User', backref=db.backref('question'))cfClass = db.relationship('Cf', backref=db.backref('question'))

3.Comment表:用于存储用户的评论数据,包括评论内容、评论时间、评论的用户、评论的帖子

class Comment(db.Model):__tablename__ = 'comment'id = db.Column(db.Integer, primary_key=True, autoincrement=True)author_id = db.Column(db.Integer, db.ForeignKey('user.id'))question_id = db.Column(db.Integer, db.ForeignKey('question.id'))creat_time = db.Column(db.DateTime, default=datetime.now())detail = db.Column(db.TEXT, nullable=False)question = db.relationship('Question', backref=db.backref('comment'))author = db.relationship('User', backref=db.backref('comment', order_by=creat_time.desc))

4.Cf表:识别和存储帖子的类型

class Cf(db.Model):__tablname__ = 'cf'id = db.Column(db.Integer, primary_key=True, autoincrement=True) name = db.Column(db.String(30))  context = db.Column(db.TEXT)  

5.Collection表:存储对应用户收藏的帖子

Collection = db.Table('collection',db.Column('id', db.Integer, primary_key=True, autoincrement=True)db.Column('book_id', db.Integer, db.ForeignKey('question.id'))                     
db.Column('collection', db.Integer, db.ForeignKey('user.id'))db.Column('createdate', db.DATETIME) )

5.系统展示的关键算法与数据结构

1.登录注册:

@app.route('/login/', methods=['GET', 'POST'])
def login():if request.method == 'GET':return render_template('login.html')else:username = request.form.get('username')password = request.form.get('password')user = User.query.filter(User.username == username).first()if user:if user.check_password(password):session['username'] = user.usernamesession['user_id'] = user.idsession.permanent = True# 重新定位到首页return redirect(url_for('index'))else:# 重新定位到注册return  '用户不存在或密码错误'else:return redirect(url_for('login'))# 注册
@app.route('/register/', methods=['GET', 'POST'])
def regist():if request.method == 'GET':return render_template('regist.html')else:username = request.form.get('username')password = request.form.get('password')user = User.query.filter(User.username == username).first()if user:return "账号已存在"else:user = User(username=username, password=password)db.session.add(user)db.session.commit()return redirect(url_for('login'))

2.发布帖子:

@app.route('/question', methods=['GET', 'POST'])
@loginFirst
def question():if request.method == 'GET':cf = Cf.query.all()return render_template('question.html', cf=cf)else:title = request.form.get('title')detail = request.form.get('detail')# author_id = request.form.get('author_id')author_id = User.query.filter(User.username == session.get('username')).first().idcf = request.form.get('cf')question = Question(title=title, detail=detail, author_id=author_id, cf=cf)db.session.add(question)  # 加入数据库
        db.session.commit()return redirect(url_for('index'))

3.详情页跳转:

@app.route('/detail/<question_id>', methods=['GET', 'POST'])
# @loginFirst
def detail(question_id):quest = Question.query.filter(Question.id == question_id).first()u = User.query.filter(User.id == session.get('user_id')).first()if request.method == 'POST':if request.form.get('click') == '1':quest.click = quest.click + 1if request.form.get('collection') == '1':user = uuser.collection.append(quest)db.session.add(user)col = u.collection.filter_by(id=question_id).first()if col is None:col = {}comment = Comment.query.filter(Comment.question_id == question_id).order_by('-creat_time').all()quest.look = quest.look + 1content = {'ques': quest,'comment': comment,'col': col,'questions': Question.query.filter(Question.cf == quest.cf).all(),}return render_template('detail.html',**content)

4.发表评论:

@app.route('/answer/', methods=['GET', 'POST'])
def answer():if request.method == 'POST':question_id = request.form.get('question_id')author_id = request.form.get('author_id')detail = request.form.get('detail')comment = Comment(question_id=question_id, author_id=author_id, detail=detail)db.session.add(comment)db.session.commit()return redirect(url_for('detail', question_id=question_id))

5.搜索:

@app.route('/search')
def search():qu = request.args.get('q')c = '' if request.args.get('c') == '' else request.args.get('c')y = '' if request.args.get('y') == '' else request.args.get('y')query = Question.query.filter(or_(Question.title.contains(qu),Question.detail.contains(qu),),Question.cf.like('%' + c + '%'),Question.creat_time.like('%' + y + '%'),).order_by('-creat_time').all()context = {'questions': query,'cf': Cf.query.all(),'hot': Question.query.order_by('-click').all()[0:5]}return render_template('index.html', **context)

6.上传头像:

@app.route('/uploadLogo/<user_id>', methods=['GET', 'POST'])
def uploadLogo(user_id):user = User.query.filter(User.id == user_id).first()f = request.files['logo']basepath = os.path.dirname(__file__) upload_path = os.path.join(basepath, 'static/uploads', f.filename)  f.save(upload_path)user.icon = 'uploads/' + f.filenamedb.session.commit()return redirect(url_for('setPassword', id=user_id))

6.成品展示

1.首页

(未登录)

(已登录)


 

2.登录

3.注册

4.搜索

5.分类

6.发布帖子

7.帖子详情

8.收藏

9.评论

10.个人帖子

11.个人评论

12.个人信息

13.修改信息

 

转载于:https://www.cnblogs.com/lwn-blog/p/9191388.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.luyixian.cn/news_show_728675.aspx

如若内容造成侵权/违法违规/事实不符,请联系dt猫网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

逻辑漏洞-客户端验证的邮箱-Web渗透实例之中国教育部青少年普法网站逻辑漏洞...

转载自&#xff1a;http://www.zmnhssn.com/?post61 漏洞地址&#xff1a;https://user.qspfw.com 用户登陆界面 具体漏洞地址: 用户密码找回界面&#xff1a;https://user.qspfw.com/page/user/findpwd/forget_pwd.do 这里可以确认网站有没有这个用户&#xff0c;这个用户…

JavaWeb网站性能优化的相关技术

2019独角兽企业重金招聘Python工程师标准>>> 一、提高服务器并发处理能力 我们总是希望一台服务器在单位时间内能处理的请求越多越好&#xff0c;这也成了web服务器的能力高低的关键所在。服务器之所以可以同时处理多个请求&#xff0c;在于操作系统通过多执行流体系…

(转)3款优秀的移动webAPP网站在线测试工具

原文&#xff1a;原文地址 目前适配各个终端的需求越来越强烈呢&#xff1f;比如我们APP项目上线之后&#xff0c;需要一个宣传推广专题页&#xff0c;这个页面当然最好是采取响应式布局来完成。因为需要来推广和下载我们的APP。 无论用户是电脑打开&#xff0c;还是移动端打开…

vs2017 asp.net 网站发布问题 (发布路径下含源码文件)

使用vs2010版本&#xff0c;网站发布后会自动将源码发不为.dll程序集&#xff0c;但vs2017需要进行设置&#xff0c;其他版本没有试过。 vs2017网站发布&#xff1a; 1. 2. 这里给一个你想用的名字&#xff0c;之后它会出现在你的程序文件&#xff08;不是发布路径&#xff09;…

小程序https请求,http网站升到https

最近开发小程序&#xff0c;因为以前只写过小程序的前端没注意接口&#xff0c;现在才发现原来所有的接口都必须使用https协议了&#xff0c;马上研究了一波&#xff0c;顺便也想给自己的博客升成https的。 申请免费证书 哈哈没办法就是喜欢免费的。。。真是煞费苦心找了很久。…

dd 0x7ffe0000_当您尝试启动网站时出现“意外的错误0x8ffe2740”错误信息

dd 0x7ffe0000Mental note: Skype will grab port 80 if it starts up before the IIS Web Server leading me to "Unexpected Error 0x8ffe2740 Occurred." 精神注意&#xff1a;如果在IIS Web服务器引导我出现“意外错误0x8ffe2740发生”之前启动&#xff0c; Skyp…

中小型网站架构分析及优化

先看网站架构图&#xff1a; 以上网站架构广泛运用中大型网站中&#xff0c;本文从架构每一层分析所用主流技术和解决手段&#xff0c;有助于初入网站运维朋友们&#xff0c;进一步对网站架构认识&#xff0c;从而自己形成一套架构概念。 第一层&#xff1a;CDN 国内网络分布主…

网站流量日志数据自定义采集

分布式集群爬虫小架构 离线hadoop分析数据整体流转图 网站流量日志数据自定义采集 网站流量日志数据自定义采集 1、系统的意义 网站流量数据统计分析&#xff0c;可以帮助网站管理员、运营人员、推广人员等获取网站流量信息&#xff0c;并从流量来源、网站内容、网站访客特性等…

中断数周之后 微软网站恢复销售华为笔记本电脑

【TechWeb】6月18日消息&#xff0c;据美国财经网站CNBC报道&#xff0c;当地时间周一&#xff0c;微软表示&#xff0c;在中断数周之后&#xff0c;已恢复在其网站上销售华为笔记本电脑。 现在&#xff0c;包括MateBook 13、MateBook和MateBook X Pro在内的华为笔记本电脑都再…

IIs 网站应用程序与虚拟目录的区别及高级应用说明(文件分布式存储方案)

对于IIS网站&#xff0c;大伙用的比较多&#xff0c;就不啰嗦了。今天和说说大伙比较少使用的"IIS应用程序”和虚拟目录的区别及高级应用场景&#xff0c;文件分布式存储方案。 1&#xff1a;IIS网站&#xff1a;一个网站&#xff0c;基本就是一个站点&#xff0c;绑定N个…

Python小白我用了38行代码把一个网站的pdf资料都下了下来

在网上找书&#xff0c;无意间发现了一个网站&#xff0c;上面有很多电子书。试着打开了几本&#xff0c;感觉很不错&#xff0c;就下了下来。可惜我的人性太贪婪了&#xff0c;想把他们都下下来&#xff0c;哪怕放到磁盘上生灰。至少可以满足对知识的焦虑感。 怎么办&#xff…

opensearch_将OpenSearch添加到您的网站并进入浏览器的搜索框

opensearchI was over at http://search.twitter.com earlier today and I noticed the Search Box in Firefox had a blue lit-up dealie: 我今天早些时候在http://search.twitter.com结束了&#xff0c;我注意到Firefox中的搜索框有一个蓝色的亮点。 Hm...OK. Whats that? I…

手把手教你搭建一个属于自己的网站

​ 其实去年就写过一篇&#xff0c;当时写的很简短&#xff0c;算是基础的基础&#xff0c;今天就再来一起分享下网站建设方面的知识。看过之前我写的那篇的可以直接从基础篇备案看起。 ps&#xff1a;以下内容为了便于理解&#xff0c;部分是本人自己理解总结&#xff0c;非官…

日常浏览网站整理

2019独角兽企业重金招聘Python工程师标准>>> 工具网站 imgbase64 bejson 开源网站 spring4All美团技术团队博客阿里云栖社区bittiger聚客网我全科牛人博客地址 你假笨JVM博客地址 徐靖峰博客地址 芋道源码 纯洁的微笑 王亚普 程序员DD 阿里-李鼎 阿里-梁飞 …

写论文的时候会经常使用到的技巧、网站、工具整理【转载】

学习需要&#xff0c;非商业转载&#xff0c;如有侵权请及时联系&#xff0c;立删&#xff0c;十分抱歉 工具汇总一&#xff1a; 知乎地址&#xff1a;https://zhuanlan.zhihu.com/p/25595196 &#xff08;16.02.27 更新&#xff09;以下内容包括&#xff1a;选择正确的英文词语…

大型分布式网站架构技术总结

网址&#xff1a;http://www.cnblogs.com/itfly8/p/4967966.html本文是学习大型分布式网站架构的技术总结。对架构一个高性能&#xff0c;高可用&#xff0c;可伸缩&#xff0c;可扩展的分布式网站进行了概要性描述&#xff0c;并给出一个架构参考。一部分为读书笔记&#xff0…

迁移TFS2008后,项目门户网站及Team Explorer的报表均无法正常显示的原因

一、wss 1.检查wss网站集管理员&#xff0c;并且进入该网站查看网站权限。 二、reporting serivce 现象&#xff1a; 通过TeamSystemWebAccess插件进行web访问查询报表时&#xff0c;提示&#xff1a; 处理报表时出错。 (rsProcessingAborted) 无法模拟数据源“TfsOlapReportDS…

asp.net网站怎么启动_新的ASP.NET网站启动

asp.net网站怎么启动A few weeks ago we introduced a beta of a freshly designed http://asp.net website. Today we launched it. Jon, myself, and the team that manages the site took lots of your feedback (lots from the comments of the Beta Blog Post) and did ou…

服务协议隐私政策_隐私链-随着第三方服务的堆积,您网站的隐私政策

服务协议隐私政策There are so many really innovative products online right now. A good friend was showing me amazing product called Intercom that lets you see who of your users are online, their social profiles, even direct message/chat them live on your si…

前端代码在线调试分享网站

1、RunJs 2、CodePen 3、JsFiddle