Skip to content
Discussion options

You must be logged in to vote

I do not recommend modifying the source code of OpenWISP because the modification would get lost when you upgrade. Unless you want to maintain a separate fork and keep it up to date with master on your own, which is tedious.

Instead I recommend to extend OpenWISP and modify only this small detail that you need.

The following should work, but may need some adjustment.

Upload a python file like the following to /opt/openwisp2/openwisp2/controller_extension.py:

from django.apps import AppConfig


class ControllerExtensionConfig(AppConfig):
    name = "openwisp2.controller_extension"

    def ready(self, *args, **kwargs):
        from openwisp_monitoring.device.admin import DeviceAdmin

        

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
4 replies
@bluestick999
Comment options

@bluestick999
Comment options

@nemesifier
Comment options

@bluestick999
Comment options

Comment options

You must be logged in to vote
13 replies
@bluestick999
Comment options

@nemesifier
Comment options

@nemesifier
Comment options

@nemesifier
Comment options

@bluestick999
Comment options

Answer selected by nemesifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants