Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #28 from hasgeek/template-fix-166
Browse files Browse the repository at this point in the history
Switch to .html.jinja2 templates, fixes #27
  • Loading branch information
Bibhas authored Oct 13, 2017
2 parents 573b77c + 1688c2e commit 47ca0af
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ nosetests.xml
.sass-cache
.idea
instance/settings.py
instance/testing.py
instance/production.py
instance/development.py
baseframe-packed.css
Expand Down
2 changes: 1 addition & 1 deletion hascore/templates/networkbar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "baseframe/components.html" import networkbar with context -%}
{% from "baseframe/components.html.jinja2" import networkbar with context -%}

(function(){
var head = document.getElementsByTagName('head')[0],
Expand Down
32 changes: 32 additions & 0 deletions instance/testing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-

#: Database backend
SQLALCHEMY_DATABASE_URI = 'sqlite:///test.db'
#: Cache type
CACHE_TYPE = 'redis'
#: Secret key
SECRET_KEY = 'make this something random'
#: Timezone
TIMEZONE = 'Asia/Kolkata'
#: LastUser server
LASTUSER_SERVER = 'https://auth.hasgeek.com/'
#: LastUser client id
LASTUSER_CLIENT_ID = ''
#: LastUser client secret
LASTUSER_CLIENT_SECRET = ''
#: Mail settings
#: MAIL_FAIL_SILENTLY : default True
#: MAIL_SERVER : default 'localhost'
#: MAIL_PORT : default 25
#: MAIL_USE_TLS : default False
#: MAIL_USE_SSL : default False
#: MAIL_USERNAME : default None
#: MAIL_PASSWORD : default None
#: DEFAULT_MAIL_SENDER : default None
MAIL_FAIL_SILENTLY = False
MAIL_SERVER = 'localhost'
DEFAULT_MAIL_SENDER = ('Hascore', 'test@example.com')
#: Logging: recipients of error emails
ADMINS = []
#: Log file
LOGFILE = 'error.log'
Empty file modified runtests.sh
100644 → 100755
Empty file.

0 comments on commit 47ca0af

Please sign in to comment.