mirror of
https://github.com/yweber/lodel2.git
synced 2026-04-26 18:40:56 +02:00
Template Loading doesn't use settings_local anymore
This commit is contained in:
parent
a56bb65c94
commit
5acf09a1ee
2 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
|
||||
import jinja2
|
||||
import settings_local
|
||||
import settings
|
||||
|
||||
|
||||
class TemplateLoader(object):
|
||||
|
|
@ -12,7 +12,7 @@ class TemplateLoader(object):
|
|||
# it to the root "/". By default, it will be the root of the project, defined in the
|
||||
# settings of the application
|
||||
# @param follow_links bool : indicates whether or not to follow the symbolic links (default: True)
|
||||
def __init__(self, search_path=settings_local.base_path, follow_links=True):
|
||||
def __init__(self, search_path=settings.base_path, follow_links=True):
|
||||
self.search_path = search_path
|
||||
self.follow_links = follow_links
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
## @package settings Configuration file
|
||||
|
||||
import pymysql
|
||||
import os
|
||||
|
||||
base_path = os.path.dirname(os.path.abspath(__file__))
|
||||
debug = False
|
||||
debug_sql = False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue