-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b6adaf
commit 6dd7e31
Showing
14 changed files
with
129 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script type="text/javascript"> | ||
Tipped.create(".loginbtn",{position: 'right'}); | ||
Tipped.create(".Signupbtn",{position: 'left'}); | ||
Tipped.create(".resetpasswordbtn",{position: 'right'}); | ||
// Tipped.create(".hohoslogo",{position : 'top'}); | ||
|
||
// Tipped.create("#invite",{position : 'left'}); | ||
// Tipped.create("#invitebutton",{position : 'topleft'}); | ||
Tipped.create(".talkus",{position : 'right'}); | ||
|
||
Tipped.create("#username",{position : 'right'}); | ||
Tipped.create("#password",{position : 'right'}); | ||
|
||
$('.welcometext').typeIt({ speed:60, breakLines:false, autoStart:false }); | ||
$('.hohoslogo').typeIt({ cursor: false}); | ||
|
||
$('.welcomeback').typeIt({ | ||
speed: 90, | ||
autoStart: false, | ||
loop : true, | ||
loopDelay: 1550, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -535,43 +535,49 @@ def email_on_post(request): # feeds on profiles and reponse an | |
to_email=to_user.email | ||
to = [to_email] | ||
common_message = '\n-------------------------------------------------------------------------\n'+\ | ||
'\n\nFor more you can always check your profile at - www.hohos.in'+\ | ||
'\n\nFor more you can always check your profile at - www.hohos.tech'+\ | ||
to_user.username +\ | ||
'\n\nBesides there are some new challenges and responses www.hohos.in/feeds/ which may attract you. - '\ | ||
+'\n\nAnd awesome OpenChat at www.hohos.in/feeds/openchat/h_h/'+\ | ||
'\n\nTeamiA at www.hohos.in'+\ | ||
'\n\nBesides there are some new challenges and responses www.hohos.tech/feeds/ which may attract you. - '\ | ||
+'\n\nAnd awesome OpenChat at www.hohos.tech/feeds/openchat/h_h/'+\ | ||
'\n\nTeamiA at www.hohos.tech'+\ | ||
'\n\nIn case you do not have access to your account You can always mail us at [email protected]'+\ | ||
'\n\n\n\nThis is a system generated E-mail, Login at hohos and go to Settings For managing E-mails you get from us.' | ||
if mail_type == 'challenge_mail': | ||
subject = user.profile.get_screen_name() + ' has challenged you ' #+ to_user.profile.get_screen_name() | ||
message = user.profile.get_screen_name() + ' has challenged you with following caption - \n\n'\ | ||
+ post + '\nSee all challenges for you at www.hohos.in/challenges/for/' + to_user.username + common_message | ||
+ post + '\nSee all challenges for you at www.hohos.tech/challenges/for/' + to_user.username + common_message | ||
|
||
elif mail_type == 'response_mail': | ||
subject = user.profile.get_screen_name() + ' has responded to your facial expressions ' #+ to_user.profile.get_screen_name() | ||
message = user.profile.get_screen_name() + ' has imitated your style in an amazing way - \n\n'\ | ||
+ post + '\nSee the whole story at www.hohos.in/feeds/response/' + response_for_id + common_message | ||
+ post + '\nSee the whole story at www.hohos.tech/feeds/response/' + response_for_id + common_message | ||
|
||
if response_for_user: | ||
from_email = django_settings.EMAIL_HOST_USER | ||
to_email_2 = response_for_user.email #email of the originally cahllenged user | ||
to_2 = [to_email_2] | ||
subject_2 = user.profile.get_screen_name() + ' has responded to a challenge which was for you ' | ||
message_2 = user.profile.get_screen_name() + ' has responded to a challengewhich was originally made for you - \n\n'\ | ||
+ post + '\nSee the whole story at www.hohos.in/feeds/response/' + response_for_id + common_message | ||
send_mail(subject_2, message_2, from_email, to_2, fail_silently=False) | ||
|
||
+ post + '\nSee the whole story at www.hohos.tech/feeds/response/' + response_for_id + common_message | ||
try: | ||
send_mail(subject_2, message_2, from_email, to_2, fail_silently=False) | ||
except: | ||
pass | ||
|
||
elif mail_type == 'profile_talk_mail': | ||
subject = user.profile.get_screen_name() + ' seems to like you very much ' #+ to_user.profile.get_screen_name() | ||
message = user.profile.get_screen_name() + ' has written this on your profile at hohos - \n\n'\ | ||
+ post + '\nSee the whole story at www.hohos.in/' + to_user.username + common_message | ||
+ post + '\nSee the whole story at www.hohos.tech/' + to_user.username + common_message | ||
else: | ||
to = django_settings.EMAIL_HOST_USER | ||
subject = 'no to_user mail found so sending back to hohosguys' | ||
message = 'Problem sending mail' | ||
|
||
from_email = django_settings.EMAIL_HOST_USER | ||
send_mail(subject,message,from_email,to,fail_silently=False) | ||
try: | ||
send_mail(subject,message,from_email,to,fail_silently=False) | ||
except: | ||
pass | ||
return HttpResponse('') | ||
return HttpResponse('') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
|
||
|
||
ADMINS = ( | ||
('deepak','[email protected]'), | ||
# ('deepak','[email protected]'), | ||
) | ||
|
||
EMAIL_USE_TLS = True | ||
|
@@ -79,12 +79,12 @@ | |
) | ||
|
||
|
||
AUTHENTICATION_BACKENDS = ( | ||
# AUTHENTICATION_BACKENDS = ( | ||
|
||
'django.contrib.auth.backends.ModelBackend', | ||
# 'social.backends.google.GoogleOAuth2', | ||
'allauth.account.auth_backends.AuthenticationBackend', | ||
) | ||
# 'django.contrib.auth.backends.ModelBackend', | ||
# # 'social.backends.google.GoogleOAuth2', | ||
# 'allauth.account.auth_backends.AuthenticationBackend', | ||
# ) | ||
|
||
|
||
MIDDLEWARE_CLASSES = ( | ||
|
@@ -100,12 +100,12 @@ | |
# 'authentication.onlineUsers.ActiveUserMiddleware', | ||
) | ||
|
||
CACHES = { | ||
'default': { | ||
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', | ||
'LOCATION': '139.59.87.76', | ||
} | ||
} | ||
# CACHES = { | ||
# 'default': { | ||
# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', | ||
# 'LOCATION': '139.59.77.182', | ||
# } | ||
# } | ||
|
||
|
||
ROOT_URLCONF = 'hohos.urls' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.