Change The Background Color Of QAT+ website interface

252 views
Skip to first unread message

Tuathan O'Shea

unread,
Mar 1, 2019, 4:52:56 AM3/1/19
to qat...@googlegroups.com
We have a live version and a testing version (an older snapshot of the live version) of QAT+ running. When using the testing version administration I have to continually check the URL to make sure I'm not accidentally editing the live version. Is there an easy way to change the background color from default on the testing version so it is obvious we are not on the live version of QAT+?

Many thanks,

Tuathan

The Royal Marsden NHS Foundation Trust

London

Tuathan O'Shea

unread,
Mar 1, 2019, 9:46:05 AM3/1/19
to qat...@googlegroups.com

I changed the page background color for the testing version of QATrack+ administration so it is obvious when you are on the test server by editing the background color in:


/var/qatrack/qatrackplus/qatrack/static/admin/css/base.css


Tuathan

Randle Taylor

unread,
Mar 1, 2019, 9:47:45 AM3/1/19
to Tuathan O'Shea, QATrack+
Was just writing a reply to you, but you've got it already!  Thanks for following up :)

On Fri, 1 Mar 2019 at 09:46, Tuathan O'Shea <tuatha...@gmail.com> wrote:

I changed the page background color for the testing version of QATrack+ administration so it is obvious when you are on the test server by editing the background color in /var/qatrack/qatrackplus/qatrack/static/admin/css/base.css


Tuaathan

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To post to this group, send email to qat...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aggelos V.

unread,
Jan 4, 2024, 6:57:56 AM1/4/24
to QATrack+
Hi all,

Any suggestions about what css file/parameter to edit in order to change the background of either the Homepage ("Welcome to QATrack+") or the overall site to a different colour?
Again we are trying to differentiate our live and testing versions by giving them different colour themes.

Thanks,
Angelos

Randle Taylor

unread,
Jan 5, 2024, 11:40:45 AM1/5/24
to Aggelos V., QATrack+
You can add your own CSS rules in qatrack/qatrack_core/static/qatrack_core/css/site.css 

After making changes to site.css you'll either need to copy it to qatrack/static/qatrack_core/css/site.css or activate the virtualenv and run `python manage.py collectstatic` which will copy the file to qatrack/static/qatrack_core/css/site.css.

As an example, if you want to change the background color of the header you can add a css rule like:

/* site.css */
.main-header * {
  background-color: blue !important;
}

Hope that helps,
Randy



Aggelos V.

unread,
Jan 5, 2024, 3:20:33 PM1/5/24
to QATrack+
Thank you. Turns out that in our servers the paths were the following:


/var/qatrack/qatrackplus
/qatrack/qatrack_core/static/qatrack_core/css/site.css

/var/qatrack/qatrackplus/qatrack/static/qatrack_core/css/site.css


Thanks,
Angelos

Schroedingers_cat

unread,
Apr 14, 2025, 12:03:06 PMApr 14
to QATrack+

Thank you all for sharing the details. We have also changed the background color of the header to make it easier to differ between test and production environment.


Unfortunately this does not change the header in the admin page. Is it the same for you?

I found a folder with css-styles for admin, but unfortunately there is no place where the background color of the header can be set.

Schroedingers_cat

unread,
Apr 14, 2025, 2:00:24 PMApr 14
to QATrack+

Oh, I found it after all. In the following path:

deploy\qatrackplus\qatrack\static\admin\css

open the file base.css and change the background color in line 837, section #header {..;background: #904141;..;}.

Reply all
Reply to author
Forward
0 new messages