Task #7219 (closed)
Static file configuration adjustment
Reported by: | atarkowska | Owned by: | atarkowska |
---|---|---|---|
Priority: | major | Milestone: | OMERO-4.4 |
Component: | Web | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2011-11-29 (3) |
Description (last modified by atarkowska)
settings.py needs to be configured in order to support django.contrib.staticfiles
# Static file handler STATICFILES_FINDERS = ( "django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib.staticfiles.finders.AppDirectoriesFinder" ) STATIC_URL = '/static/' STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'custom_static').replace('\\','/') STATICFILES_DIRS = ( ("alias", os.path.dirname('my_static_dir').replace('\\','/')), '/home/example.com/static/, ) # Template file handler TEMPLATE_CONTEXT_PROCESSORS = ( ... "django.core.context_processors.static", ) INSTALLED_APPS = ( 'django.contrib.staticfiles', ...
Change History (6)
comment:1 Changed 12 years ago by atarkowska
- Component changed from General to Web
- Description modified (diff)
- Priority changed from minor to major
- Remaining Time set to 0.5
comment:2 Changed 12 years ago by atarkowska
- Status changed from new to accepted
comment:3 Changed 12 years ago by atarkowska
- Remaining Time changed from 0.5 to 0
- Status changed from accepted to closed
comment:4 Changed 12 years ago by Aleksandra Tarkowska <atarkowska@…>
comment:5 Changed 12 years ago by Aleksandra Tarkowska <atarkowska@…>
(In [803c8e8483111809c313a161a393f505ffbeee23/ome.git]) Feedback Template adjustments, see #7231
Custom template tag support for static prefix in feedback, see #7233
Configuring statics in settings.py, see #7219
comment:6 Changed 12 years ago by Aleksandra Tarkowska <atarkowska@…>
(In [a3f3ab24af4e9c2e319f8059dd634035606c4d1d/ome.git]) Webclient Template adjustments, see #7223
Custom template tag support for static prefix in webadmin, see #7221
Configuring statics in settings.py, see #7219
(In [c39a012e2a9315c51d3c12774c49ebbd6be12318/ome.git]) Webadmin Template adjustments, see #7222
Custom template tag support for static prefix in webadmin, see #7220
Configuring statics in settings.py, see #7219