Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:cnprog/CNPROG

  • Loading branch information...
commit 07fea9955202f0b23221081ca171192a6c7350f2 2 parents 582a668 + 130c648
@chagel authored
View
1  .gitignore
@@ -4,3 +4,4 @@ nbproject
settings_local.py
log
*.log
+.DS_Store
View
3  forum/views.py
@@ -1820,8 +1820,7 @@ def badge(request, id):
tables=['award', 'auth_user'],
where=['badge_id=%s AND user_id=auth_user.id'],
params=[id]
- ).values('id').distinct()
-
+ ).distinct('auth_user.id')
return render_to_response('badge.html', {
'awards': awards,
'badge': badge,
View
2  settings_local.py.dist
@@ -17,7 +17,7 @@ DATABASE_ENGINE = '' #mysql, etc
#email server settings
SERVER_EMAIL = ''
-DEFAULT_FROM_EMAIL = 'team@cnprog.com'
+DEFAULT_FROM_EMAIL = 'admin@yoursite.com'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_SUBJECT_PREFIX = '[cnprog.com]'
View
3  templates/badge.html
@@ -28,7 +28,8 @@
</div>
<div id="award-list" style="clear:both;margin-left:20px;line-height:25px;">
{% for award in awards %}
- <p style="width:185px;float:left"><a href="/users/{{ award.id }}/{{ award.name }}">{{ award.name }}</a> {% get_score_badge_by_details award.rep award.gold award.silver award.bronze %}</p>
+ <p style="width:185px;float:left"><a href="/users/{{ award.id }}/{{ award.name }}">{{ award.name }}</a>
+ {% get_score_badge_by_details award.rep award.gold award.silver award.bronze %}</p>
{% endfor %}
</div>

1 comment on commit 07fea99

@apstudentguide

-DEFAULT_FROM_EMAIL = 'team@http://www.infoindiabank.in/'

20  

+DEFAULT_FROM_EMAIL = 'admin@http://www.infoindiabank.in/'

we should code it lke this right

Please sign in to comment.
Something went wrong with that request. Please try again.