Hi Andrea, you need to explicitly set your resource model in your
settings.py file. Something like this:

RESOURCE_MODEL = {'default':
'{}.models.resource.Resource'.format(PACKAGE_NAME)}

Once you run the app, you should see a .pyc file appear next to your app's
models/resource.py file, meaning that it's now in use.

Adam



On Wed, May 4, 2016 at 6:53 AM, <[email protected]> wrote:

> Hello All,
>
> I am having an issue with modifying resource.py both in my installation of
> Arches and on the Arches-HIP. I am trying to modify the fields that are
> mapped as geojson (i.e. the section covered by the
> function prepare_documents_for_map_index()). However, whenever I modify
> something within this function, it would appear that Django does not
> re-read my .py source file. I even tried to delete resource.py and its .pyc
> , and did the same with the corresponding files in the HIP. Still nothing.
> It would seem that the py file is not called. I thought it might be an
> elasticsearch issue, but then I re-ran it and nothing changed. It would
> appear that resource.py does not get called, which is strange since I would
> have expected prepare_documents_for_map_index() to be called when
> visualising records with the Location Filter.
>
> Please note that I tried to modify static strings such as the default
> entity_data=_('None specified'), to no avail.
>
> Can you help?
>
> Thanks,
>
> Andrea
>
> --
> -- To post, send email to [email protected]. To unsubscribe,
> send email to [email protected]. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" 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.
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" 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