skip to Main Content

I’m trying to change the message for ERPNext Maintenance Mode as it’s currently displaying:

"Your system is being updated. Please refresh again after a few moments"

and I want to change it to:

"Your system is being updated. Please contact administrator if it remains the same"

I found that this message is under:
frappefrappeutilsresponse.py

I tried changing it to something else, but the custom message is not being displayed, and it is still displaying the same old message.

I tried these commands also but still no luck:

bench setup nginx
sudo service nginx restart
sudo service nginx reload

I can see that this message is also under frappefrappetranslationsxxx.csv or frappefrappelocalexxx.csvbut I’m using english so it should not affect (maybe).

Can anyone please help what I’m missing or guide me how to change this message?

2

Answers


  1. Try running this command:

    bench --site {sitename} migrate
    bench start  
    

    If your custom message is still not appearing, you may need to override that method using hooks.py.

    Login or Signup to reply.
  2. If you have found the file that contains the message, then the best step you can take is to overrides the doc into your application, don’t forget to add hooks for the overrides class

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search