Hey BlancLoup,

These:
django_netjsonconfig/base/device.py
django_netjsonconfig/base/config.py 

are django model classes, these are the ones which contain the logic with 
which you can retrieve the device and configuration data.
More infomation regarding django models 
here: https://docs.djangoproject.com/en/2.0/topics/db/models/

The base admin classes are 
in 
https://github.com/openwisp/django-netjsonconfig/blob/master/django_netjsonconfig/base/admin.py
More information regarding the django admin 
here: https://docs.djangoproject.com/en/2.0/ref/contrib/admin/

openwisp-utils is a module which contains logic which is shared across 
several openwisp modules to avoid repetition and ease maintenance of common 
logic across modules, you should modify that module only if you think the 
change makes sense in other openwisp2 modules too.

If you have further questions, try to add more details.

Federico


On Wednesday, April 4, 2018 at 12:48:01 AM UTC-5, BlancLoup wrote:
>
> Hello.
> I've created django application "dashboard" in openwisp2 project that will 
> be used in frontend to list of devices with data: name of device, config 
> status and some additional metrics like temperature, network metrics, vpn 
> status.
> Additional metrics i've added by modifying admin:
> django_netjsonconfig/base/device.py
> django_netjsonconfig/base/config.py 
> django_netjsonconfig/controller/generics.py
> Now i try to get devices data for "dashboard" template. What model and 
> application should i use for this: openwisp_utils?
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to