modern #2
3 changed files with 6 additions and 7 deletions
|
|
@ -147,8 +147,7 @@ application=app
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
from settings import modules
|
#from settings import modules
|
||||||
|
|
||||||
prepare_app()
|
prepare_app()
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ def start():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
shutil.copy(workdir+'/settings/modules.py.admin', path_settings+'/modules.py')
|
#shutil.copy(workdir+'/settings/modules.py.admin', path_settings+'/modules.py')
|
||||||
|
|
||||||
#shutil.copy(workdir+'/settings/config_admin.py.sample', path_settings+'/config_admin.py')
|
#shutil.copy(workdir+'/settings/config_admin.py.sample', path_settings+'/config_admin.py')
|
||||||
|
|
||||||
|
|
@ -269,8 +269,8 @@ def start():
|
||||||
|
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
config_text=config_text.replace("modules=['paramecio.modules.welcome']", "modules=['paramecio.modules.welcome', 'paramecio.modules.lang']")
|
#config_text=config_text.replace("modules=['paramecio.modules.welcome']", "modules=['paramecio.modules.welcome', 'paramecio.modules.lang']")
|
||||||
config_text=config_text.replace("apps={}", "apps={'admin2': ['paramecio.modules.admin2', 'admin_app', '/admin/']}")
|
config_text=config_text.replace("apps={'welcome': ['paramecio.modules.welcome', 'welcome_app', '/'], 'lang': ['paramecio.modules.lang', '', '']}", "apps={'welcome': ['paramecio.modules.welcome', 'welcome_app', '/'], 'lang': ['paramecio.modules.lang', '', ''], 'admin2': ['paramecio.modules.admin2', 'admin_app', '/admin/']}")
|
||||||
|
|
||||||
with open(path_settings+'/config.py', 'w') as f:
|
with open(path_settings+'/config.py', 'w') as f:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,11 +48,11 @@ default_module="welcome"
|
||||||
|
|
||||||
#Modules with permissions to access for users
|
#Modules with permissions to access for users
|
||||||
|
|
||||||
modules=['paramecio.modules.welcome']
|
#modules=['paramecio.modules.welcome']
|
||||||
|
|
||||||
# For apps using own app objects
|
# For apps using own app objects
|
||||||
|
|
||||||
apps={}
|
apps={'welcome': ['paramecio.modules.welcome', 'welcome_app', '/'], 'lang': ['paramecio.modules.lang', '', '']}
|
||||||
|
|
||||||
#The base url
|
#The base url
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue