diff --git a/.gitignore b/.gitignore index 3c446cb..197558d 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,6 @@ nosetests.xml .sass-cache .idea instance/settings.py -instance/testing.py instance/production.py instance/development.py baseframe-packed.css diff --git a/hascore/templates/networkbar.js b/hascore/templates/networkbar.js index f32461e..329ecb5 100644 --- a/hascore/templates/networkbar.js +++ b/hascore/templates/networkbar.js @@ -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], diff --git a/instance/testing.py b/instance/testing.py new file mode 100644 index 0000000..c9122e7 --- /dev/null +++ b/instance/testing.py @@ -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' diff --git a/runtests.sh b/runtests.sh old mode 100644 new mode 100755