Fixes in paths of urls
This commit is contained in:
parent
02d6666ee6
commit
68f0b23a86
2 changed files with 9 additions and 8 deletions
|
|
@ -39,17 +39,17 @@ if config.yes_static==True:
|
|||
|
||||
def make_media_url(file_path):
|
||||
|
||||
return '/media/'+file_path
|
||||
return config.media_url+'media/'+file_path
|
||||
|
||||
def make_media_url_module(file_path, module):
|
||||
|
||||
return '/mediafrom/'+module+'/'+file_path
|
||||
return config.media_url+'mediafrom/'+module+'/'+file_path
|
||||
else:
|
||||
|
||||
def make_media_url(file_path):
|
||||
|
||||
return config.media_url+'/media/'+file_path
|
||||
return config.media_url+'media/'+file_path
|
||||
|
||||
def make_media_url_module(file_path, module):
|
||||
|
||||
return config.media_url+'/media/'+module+'/'+file_path
|
||||
return config.media_url+'media/'+module+'/'+file_path
|
||||
|
|
|
|||
|
|
@ -40,6 +40,10 @@ default_module="welcome"
|
|||
|
||||
modules=['paramecio.modules.welcome']
|
||||
|
||||
#The base url
|
||||
|
||||
base_url='/'
|
||||
|
||||
#Activate sessions?
|
||||
|
||||
session_enabled=True
|
||||
|
|
@ -68,6 +72,7 @@ session_opts = {
|
|||
|
||||
session_opts = {
|
||||
|
||||
'session.path': base_url,
|
||||
'session.key': cookie_name,
|
||||
'session.type': 'file',
|
||||
'session.data_dir': './sessions',
|
||||
|
|
@ -81,10 +86,6 @@ cache_session_opts = {
|
|||
|
||||
}
|
||||
|
||||
#The base url
|
||||
|
||||
base_url='/'
|
||||
|
||||
#Can be absolute or relative
|
||||
|
||||
media_url='/'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue