Mixtures website source code.
Mixtures mainly use a central django app, drugcombinator
, where all
templates, models and logic are encapsulated.
However, another small app, named drugportals
, is kind of plugged into
it. This app contains all stuff related to thematic portals. It was
designed this way because:
- Thematic portals are meant to be independant from a user pespective;
- Hence, they use a separate frontend design;
- And last but not least, we are not sure if they will survive after Mixtures goes out of beta.
Finally, some generic parts (like the about page or 404 templates) lie in project-wide directories.
Mixtures uses SASS for generating its stylesheets. Each app has its own
.scss
files in its static
directory, accompagnated by generated and
minified .min.css
files.
In order to customize the MaterializeCSS framework, custom SASS
variables (such as colors) are injected in the main library file. Those
variables lie in a _variables-custom.scss
file near to the library.
From time to time, SASS files that lie in a given app are loaded from others SASS files which belong to another app. As the SASS compiler expects those files to be in a load path, this can make the compilation to fail.
To prevent this, a ready to use script, sass-compile.ps1
, passes
requiered arguments to the Dart SASS compiler. Using another way for
SASS compilation is therefore unrecommanded.