twitter with avatar images tested for allauth
This commit is contained in:
parent
4e786a13a1
commit
5c9eb1bbe4
|
@ -84,7 +84,7 @@ ERANG_SUBSCRIBE_URL = "http://a.organisedmail.com/nok.x?s=dGhlYXRyZWZvcnVt&ctid=
|
|||
# although not all choices may be available on all operating systems.
|
||||
# If running in a Windows environment this must be set to the same as your
|
||||
# system time zone.
|
||||
TIME_ZONE = 'America/Chicago'
|
||||
TIME_ZONE = 'Asia/Kolkata'
|
||||
|
||||
# Language code for this installation. All choices can be found here:
|
||||
# http://www.i18nguy.com/unicode/language-identifiers.html
|
||||
|
@ -117,7 +117,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
|
|||
"django.core.context_processors.i18n",
|
||||
"django.core.context_processors.media",
|
||||
"django.core.context_processors.request",
|
||||
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
# "multilingual.context_processors.multilingual",
|
||||
"frontpage.context_processors.menus",
|
||||
"allauth.account.context_processors.account",
|
||||
|
@ -158,6 +158,7 @@ MIDDLEWARE_CLASSES = (
|
|||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
# 'multilingual.middleware.DefaultLanguageMiddleware',
|
||||
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
# 'djangologging.middleware.LoggingMiddleware',
|
||||
)
|
||||
|
||||
|
@ -183,6 +184,7 @@ INSTALLED_APPS = (
|
|||
'django.contrib.admin',
|
||||
'django.contrib.comments',
|
||||
'django.contrib.markup',
|
||||
'django.contrib.messages',
|
||||
'registration',
|
||||
# 'itfcore',
|
||||
'festival',
|
||||
|
@ -214,8 +216,7 @@ INSTALLED_APPS = (
|
|||
'fccv',
|
||||
'haystack',
|
||||
'markitup',
|
||||
'emailconfirmation',
|
||||
# 'avatar',
|
||||
'avatar',
|
||||
'allauth',
|
||||
'allauth.account',
|
||||
'allauth.socialaccount',
|
||||
|
@ -223,21 +224,30 @@ INSTALLED_APPS = (
|
|||
'allauth.socialaccount.providers.linkedin',
|
||||
'allauth.socialaccount.providers.openid',
|
||||
'allauth.socialaccount.providers.facebook',
|
||||
'allauth.socialaccount.providers.github'
|
||||
'allauth.socialaccount.providers.github',
|
||||
'emailconfirmation',
|
||||
)
|
||||
|
||||
|
||||
LOGIN_REDIRECT_URL = '/'
|
||||
ACCOUNT_EMAIL_REQUIRED = True
|
||||
#ACCOUNT_AUTHENTICATION_METHOD=''
|
||||
|
||||
#ACCOUNT_AUTHENTICATION_METHOD = 'username_email'
|
||||
ACCOUNT_EMAIL_REQUIRED=False
|
||||
ACCOUNT_EMAIL_VERIFICATION=False
|
||||
ACCOUNT_EMAIL_SUBJECT_PREFIX="[ITF]"
|
||||
ACCOUNT_SIGNUP_PASSWORD_VERIFICATION=True
|
||||
ACCOUNT_UNIQUE_EMAIL=False
|
||||
ACCOUNT_PASSWORD_MIN_LENGTH=6
|
||||
SOCIALACCOUNT_AVATAR_SUPPORT='avatar'
|
||||
EMAIL_CONFIRMATION_DAYS=3
|
||||
|
||||
EMAIL_HOST ='smtp.gmail.com'
|
||||
EMAIL_HOST_USER = 'subhodipbiswas@gmail.com'
|
||||
EMAIL_HOST_PASSWORD ='doaxhentai'
|
||||
EMAIL_PORT =587
|
||||
EMAIL_USE_TLS =True
|
||||
SERVER_EMAIL = EMAIL_HOST_USER
|
||||
DEFAULT_FROM_EMAIL=EMAIL_HOST_USER
|
||||
#EMAIL_HOST ='smtp.gmail.com'
|
||||
#EMAIL_HOST_USER = 'subhodipbiswas@gmail.com'
|
||||
#EMAIL_HOST_PASSWORD ='doaxhentai'
|
||||
#EMAIL_PORT =587
|
||||
#EMAIL_USE_TLS =True
|
||||
#SERVER_EMAIL = EMAIL_HOST_USER
|
||||
#DEFAULT_FROM_EMAIL=EMAIL_HOST_USER
|
||||
|
||||
ACCOUNT_ACTIVATION_DAYS = 30
|
||||
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
{% extends "noel/base.html" %}
|
||||
|
||||
|
||||
{% block extra_head %}
|
||||
<link rel="stylesheet" href="/static/css/register.css" />
|
||||
<script type="text/javascript" src="/static/js/register.js"></script>
|
||||
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div id="wooden">
|
||||
|
||||
<div id="regContent">
|
||||
{% block modal_content %}
|
||||
{% endblock %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block head_title %}{% trans "Account" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% trans "E-mail Addresses" %}</h1>
|
||||
{% if user.emailaddress_set.all %}
|
||||
<p>{% trans 'The following e-mail addresses are associated to your account:' %}</p>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{% block head_title %}{% trans "Sign In" %}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
|
||||
<h1>{% trans "Sign In" %}</h1>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block head_title %}{% trans "Signed Out" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% trans "Signed Out" %}</h1>
|
||||
|
||||
<p>{% trans "You have signed out." %}</p>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% load i18n %}
|
||||
{% block head_title %}{% trans "Change Password" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% trans "Change Password" %}</h1>
|
||||
|
||||
<form method="POST" action="" class="password_change">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block head_title %}{% trans "Delete Password" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% trans "Delete Password" %}</h1>
|
||||
<p>{% blocktrans %}You may delete your password since you are currently logged in using OpenID.{% endblocktrans %}</p>
|
||||
<form method="post" action="">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block head_title %}{% trans "Password Deleted" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% trans "Password Deleted" %}</h1>
|
||||
<p>{% blocktrans %}Your password has been deleted.{% endblocktrans %}</p>
|
||||
{% endblock %}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block head_title %}{% trans "Password Reset" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
|
||||
<h1>{% trans "Password Reset" %}</h1>
|
||||
{% if user.is_authenticated %}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block head_title %}{% trans "Password Reset" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% trans "Password Reset" %}</h1>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% load i18n %}
|
||||
{% block head_title %}{% trans "Change Password" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}</h1>
|
||||
|
||||
{% if token_fail %}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block head_title %}{% trans "Set Password" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% trans "Set Password" %}</h1>
|
||||
|
||||
<form method="POST" action="" class="password_set">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block head_title %}{% trans "Signup" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% trans "Sign Up" %}</h1>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block modal_content %}
|
||||
<h1>{% trans "Verify Your E-mail Address" %}</h1>
|
||||
|
||||
<p>{% blocktrans %}We have sent you an e-mail to <b>{{ email }}</b> for verification. Follow the link provided to finalize the signup process. If you do not receive it within a few minutes, contact us at <a href="mailto:{{ CONTACT_EMAIL }}">{{ CONTACT_EMAIL }}</a>.{% endblocktrans %}</p>
|
||||
|
|
Loading…
Reference in New Issue
Block a user