[Arches] Re: Compiling .py programs

2017-01-07 Thread 'Lucy FJ' via Arches Project
Hi Vincent, Adam and all, Vincent - thank you for taking such an interest and your continued help. Yes, where would we all be without Adam Cox! But we already had that change in and still the .pyc would not compile within Arches. However our new developer has discovered the cause of this

[Arches] Re: Compiling .py programs

2017-01-06 Thread Vincent Meijer
I just came across the same issue where my customizations to a form were not showing and I found Adam's answer to a previous thread (where would we be without him?) Oh, it looks like resource.py originally has this line: > from arches_hip.models import forms > you'll need to comment that out

[Arches] Re: Compiling .py programs

2017-01-04 Thread Vincent Meijer
Thanks for pointing that out, Adam! On Friday, 23 December 2016 12:41:04 UTC-5, Adam Cox wrote: > > Hi Vincent, regarding ElasticSearch, there is another command you can run > to reindex the database > python manage.py packages -o index_database > This takes a little bit of time, but it

[Arches] Re: Compiling .py programs

2016-12-23 Thread Adam Cox
Hi Vincent, regarding ElasticSearch, there is another command you can run to reindex the database python manage.py packages -o index_database This takes a little bit of time, but it recreates all of the elasticsearch indices. It doesn't affect your actual database. If you need to reindex a

Re: [Arches] Re: Compiling .py programs

2016-12-18 Thread 'Lucy Fletcher-Jones' via Arches Project
Hi Vincent, I was being inaccurate. I copied the HIP version to our_app and then changed it! We do have the hierarchy you described. I know that this version of the file is being read now because the program crashes on one of the other inputs and the error message shows the path being used. (We

Re: [Arches] Re: Compiling .py programs

2016-12-16 Thread Vincent Meijer
If I understand correctly you have this folder/file hierarchy: arches/.../forms.py arches_hip/.../forms.py your_app/.../forms.py And you said "put them into the HIP version of forms.py". Now the only version of the above forms.py files that is actually used by Django is your_app/.../forms.py,

[Arches] Re: Compiling .py programs

2016-12-12 Thread Vincent Meijer
Hi Lucy, Did you manage to get this to work? Please see this discussion with the same problem: https://groups.google.com/forum/#!msg/archesproject/Khj1ddBxAYk/G4TeZj1dBAAJ As Adam summarizes: copy the arches_hip/models/resource.py file, paste it into the corresponding directory of your own

Re: [Arches] Re: Compiling .py programs

2016-11-19 Thread 'Lucy Fletcher-Jones' via Arches Project
Thank you so much for all your help! Lucy Sent from my iPad > On 18 Nov 2016, at 22:08, Adam Cox wrote: > > Hi Lucy, the problem is with the use of triple quotes. I just found this > stack exchange question that should give you more background. > > When I used # to

[Arches] Re: Compiling .py programs

2016-11-18 Thread Adam Cox
Hi Lucy, the problem is with the use of triple quotes. I just found this stack exchange question that should give you more background. When I used # to comment out those lines I