Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
0795077c
Commit
0795077c
authored
Jan 16, 2012
by
Kostas Papadimitriou
Browse files
Added snf-app entry points for static files
parent
8de23e53
Changes
3
Hide whitespace changes
Inline
Side-by-side
snf-app/setup.py
View file @
0795077c
...
...
@@ -210,6 +210,7 @@ setup(
'web_apps = synnefo.app_settings:synnefo_web_apps'
,
'web_middleware = synnefo.app_settings:synnefo_web_middleware'
,
'urls = synnefo.app_settings.urls:urlpatterns'
,
'web_static = synnefo.app_settings:synnefo_static_files'
,
]
},
)
...
...
snf-app/synnefo/app_settings/__init__.py
View file @
0795077c
...
...
@@ -19,3 +19,8 @@ synnefo_web_middleware = [
]
}
]
synnefo_static_files
=
{
'synnefo.ui'
:
''
,
'synnefo.admin'
:
'admin'
,
}
snf-webproject/synnefo/webproject/settings/default/site.py
View file @
0795077c
...
...
@@ -20,21 +20,11 @@ USE_L10N = True
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT
=
''
MEDIA_ROOT
=
'
/usr/share/synnefo/
'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL
=
'/static/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX
=
'/media/'
# app/directory static files map, used by link_static command to create
# appropriate symlinks for static files
STATIC_FILES
=
{
'synnefo.ui'
:
''
,
'synnefo.admin'
:
'admin'
,
}
STATIC_FILES
=
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment