modern #2

Merged
absurdo merged 38 commits from modern into master 2025-03-15 00:00:11 +00:00
3 changed files with 6 additions and 7 deletions
Showing only changes of commit 2deaf12f87 - Show all commits

View file

@ -147,8 +147,7 @@ application=app
try:
from settings import modules
#from settings import modules
prepare_app()
except:

View file

@ -250,7 +250,7 @@ def start():
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')
@ -269,8 +269,8 @@ def start():
f.close()
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("modules=['paramecio.modules.welcome']", "modules=['paramecio.modules.welcome', 'paramecio.modules.lang']")
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:

View file

@ -48,11 +48,11 @@ default_module="welcome"
#Modules with permissions to access for users
modules=['paramecio.modules.welcome']
#modules=['paramecio.modules.welcome']
# For apps using own app objects
apps={}
apps={'welcome': ['paramecio.modules.welcome', 'welcome_app', '/'], 'lang': ['paramecio.modules.lang', '', '']}
#The base url