[GeoNode-users] Overwrite Core Model in geonode project

Simone Dalmasso simone.dalmasso at gmail.com
Thu Feb 2 01:53:45 PST 2017


Hi, the way to use your own models instead of the default ones is quite
tricky.

You have to define your own url, views etc. This is one of the cases where
a fork could be an option to consider.

2017-02-02 10:26 GMT+01:00 Toni Schönbuchner <toni.schoenbuchner at csgis.de>:

> Dear List,
>
> on Geonode 2.4 (Ubuntu 14.04) I´d like to extend the metadata details page
> (route /metadata).
> This works perfectly by extending the base model which lives under:
>
> /usr/local/lib/python2.7/dist-packages/geonode/base/models.py
>
> To not hack the core we created a new project under /var/www/my_project
> and copied the base app there (/var/www/my_project/base).
>
> Template overrides work as expected but unfortunately it seems project
> models are ignored
> (and still the core model is utilized).
>
> What is the recommended way to customize models without changing the core?
>
> Thanks,
>
> Toni
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>



-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170202/30cf16aa/attachment.html>


More information about the geonode-users mailing list