第三方登录

master
liangliangyy 9 years ago
parent 0d01e58038
commit 69819ff7a5

@ -26,7 +26,7 @@ DEBUG = True
# DEBUG = False
# ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['www.lylinux.net', '127.0.0.1']
ALLOWED_HOSTS = ['www.lylinux.net', '127.0.0.1','example.com']
# Application definition
INSTALLED_APPS = [

@ -1998,6 +1998,9 @@ div {
#wp-auto-top-bottom:hover {
background-position: right -68px;
}
.widget-login{
margin-top: 15px!important;
}
/* ------------------------------------------------------------------------- *
* Comments

@ -45,7 +45,17 @@
{% comment %}{% load comments_tags %}
{% load_post_comment article from %}{% endcomment %}
{% include 'comments/tags/comment_list.html' %}
{% include 'comments/tags/post_comment.html' %}
{% if user.is_authenticated %}
{% include 'comments/tags/post_comment.html' %}
{% else %}
<div class="comments-area">
<h3 class="comment-meta">您还没有登录请您<a href="{% url "account:login" %}">登录</a>后发表评论</h3>
{% load oauth_tags %}
{% load_oauth_applications %}
</div>
{% endif %}
{% endif %}
</div><!-- #primary -->

@ -1,7 +1,10 @@
<div>
<div class="widget-login">
<small>
快捷登录:
</small>
{% for icon,url in apps %}
<a href="{{ url }}">
<a href="{{ url }}" rel="nofollow">
<span class="icon-sn-{{ icon }}"></span>
</a>
{% endfor %}
</div>
</div>

@ -17,7 +17,7 @@
{% block header %}
{% endblock %}
<link rel="profile" href="http://gmpg.org/xfn/11"/>
{% comment %}<link rel="pingback" href="https://www.lylinux.org/xmlrpc.php"/>{% endcomment %}
<!--[if lt IE 9]>
<script src="{% static 'blog/js/html5.js' %}" type="text/javascript"></script>
<![endif]-->

Loading…
Cancel
Save