Multi-site environment test
August 6th, 2006 posted by Bender Rodríguez
**adding multi-site functionality to the bodhi cms**
i am still working out the problems with adapting the software to
become a generic source base for any number of websites to help us
maintain upgrades and things more easily, so you might find a few
things broken. i just wanted to let you know that i have made great
progress towards moving the arcitecture of bodhi towards a multi host
system.
although all of the CMS part of the site is maintained via the
dashboard and data for templates and content stored in the database,
other parts of the site like the blog and the user account stuff use
templates that are stored in the file system, which can be found here:
/d2/django_templates/healthkicksblog.com/
all of those templates use as their base template the base.html
template which is stored in the database, so any global changes to the
UI can still be made via the dashboard by editing the base.html
layout. the other important directory is the the media directory,
where we store things like js libraries, images, and css. it is
located:
/d2/django_media/healthkicksblog/
and can be accessed from within a django template by using
/django_media/healthkicksblog/js/
/django_media/healthkicksblog/css/
/django_media/healthkicksblog/img/
however, you probably will want to use the same technique used in
base.html where we use a site variable called root_url in place of
healthkicksblog. you will see what i mean when you take a look at the
base layout.
one last thing, css must be maintained outside the database. eventually, we will maintain css files through the bodhi dashboard just as we manage other
pages, but i have not finished this bit. the css file can be found in
the django_media directory above.
0 Comments,
0 trackbacks
(
Trackback URL)