Re: [Arches] Where is django configuration file my_project.settings

2019-05-16 Thread Martha S
Yes, Adam, those were the instructions I followed.

Looks like I have more configuring to do before I can share the link with 
the programmer, but this change you just recommended opens Arches to 
the What is Arches page from my desktop. Big step forward, thank you.

Thanks,
Martha



On Thursday, May 16, 2019 at 12:36:12 PM UTC-7, Adam Cox wrote:
>
> Ok, are you using this documentation for setting up Apache? 
> https://arches.readthedocs.io/en/stable/serving-arches-with-apache/#setup-apache
>  
> Now that I'm looking at it, I think the paths in it should be updated to 
> use the my_project context that we use in the main installation 
> instructions. Looks like I originally wrote it as to serve the "core" 
> arches code, not a separate project.
>
> If you are getting errors about importing settings, the first thing to 
> check is that the paths in the python process are correct.
>
> So, this is what I'll be putting in the docs right now for an update:
>
> WSGIDaemonProcess arches 
> python-path=/home/ubuntu/Projects/my_project:/home/ubuntu/Projects/ENV/lib/python2.7/site-packages
> WSGIScriptAlias /  
> /home/ubuntu/Projects/my_project/my_project/wsgi.py process-group=arches
>
> I think the key difference here is that the first path in the 
> "python-path" argument is to the directory above my_project/settings.py.
>
> Let me know if that works.
>
> Adam
>
>
>
> On Thu, May 16, 2019 at 2:00 PM Martha S  > wrote:
>
>> My development server is running fine, too, Adam,
>>
>> This problem surfaces when we try to deploy in Apache.
>>
>> Martha
>>
>> On Thursday, May 16, 2019 at 11:40:56 AM UTC-7, Adam Cox wrote:
>>>
>>> Hi Martha,
>>>
>>> I just unmarked Colin's answer as a duplicate so that I could address 
>>> the settings question he had. In short, if you are having trouble, I think 
>>> it must be a different issue; it sounds like his development server was 
>>> running fine.
>>>
>>> Cheers,
>>> Adam
>>>
>>> On Thu, May 16, 2019 at 1:25 PM Martha S  wrote:
>>>
 Since Colin's thread was locked and re-directed, I'm using the same 
 title to respond to his comment regarding my_project.settings. When we 
 reached the same point with the same problem, I examined some of the stack 
 trace. As Colin is doing, I am installing arches on a new machine, not 
 upgrading a machine with an older version.

 It appears that giving your project a name other than arches results in 
 some invalid settings in some of the py files. For example, settings.py 
 loads the arches library, but immediately makes calls to modules in the 
 projectname library, which doesn't exist:

 import os
 import arches
 import inspect

 try:
 from arches.settings import *
 except ImportError:
 pass

 APP_ROOT = 
 os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe(
 STATICFILES_DIRS =  (os.path.join(APP_ROOT, 'media'),) + 
 STATICFILES_DIRS

 DATATYPE_LOCATIONS.append('hpla.datatypes')
 FUNCTION_LOCATIONS.append('hpla.functions')



 Similarly, wsgi.py, which is the file that generated the error Colin 
 mentioned, fails on the following line:

 os.environ['DJANGO_SETTINGS_MODULE'] = "hpla.settings"

 I experimented with changing hpla to arches in wsgi.py and got further, 
 but I'm about to scrap everything and re-install the project as arches. I 
 could go through all of the files in the stack trace and replace all 
 'hpla.' occurrences with 'arches.', but I think it will be easier for 
 long-term maintenance to just go with arches. So long as I can call the 
 production product what I want, I should be fine.


 -- 
 -- To post, send email to arches...@googlegroups.com. To unsubscribe, 
 send email to arches...@googlegroups.com. 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 arches...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/archesproject/e81e3cd8-098a-40fd-bf97-7af64d42b7c2%40googlegroups.com
  
 
 .

>>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to arches...@googlegroups.com . 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 arches...@googlegroups.com .
>> To view this 

Re: [Arches] Where is django configuration file my_project.settings

2019-05-16 Thread Adam Cox
Ok, are you using this documentation for setting up Apache?
https://arches.readthedocs.io/en/stable/serving-arches-with-apache/#setup-apache
Now that I'm looking at it, I think the paths in it should be updated to
use the my_project context that we use in the main installation
instructions. Looks like I originally wrote it as to serve the "core"
arches code, not a separate project.

If you are getting errors about importing settings, the first thing to
check is that the paths in the python process are correct.

So, this is what I'll be putting in the docs right now for an update:

WSGIDaemonProcess arches
python-path=/home/ubuntu/Projects/my_project:/home/ubuntu/Projects/ENV/lib/python2.7/site-packages
WSGIScriptAlias /
/home/ubuntu/Projects/my_project/my_project/wsgi.py process-group=arches

I think the key difference here is that the first path in the "python-path"
argument is to the directory above my_project/settings.py.

Let me know if that works.

Adam



On Thu, May 16, 2019 at 2:00 PM Martha S  wrote:

> My development server is running fine, too, Adam,
>
> This problem surfaces when we try to deploy in Apache.
>
> Martha
>
> On Thursday, May 16, 2019 at 11:40:56 AM UTC-7, Adam Cox wrote:
>>
>> Hi Martha,
>>
>> I just unmarked Colin's answer as a duplicate so that I could address the
>> settings question he had. In short, if you are having trouble, I think it
>> must be a different issue; it sounds like his development server was
>> running fine.
>>
>> Cheers,
>> Adam
>>
>> On Thu, May 16, 2019 at 1:25 PM Martha S  wrote:
>>
>>> Since Colin's thread was locked and re-directed, I'm using the same
>>> title to respond to his comment regarding my_project.settings. When we
>>> reached the same point with the same problem, I examined some of the stack
>>> trace. As Colin is doing, I am installing arches on a new machine, not
>>> upgrading a machine with an older version.
>>>
>>> It appears that giving your project a name other than arches results in
>>> some invalid settings in some of the py files. For example, settings.py
>>> loads the arches library, but immediately makes calls to modules in the
>>> projectname library, which doesn't exist:
>>>
>>> import os
>>> import arches
>>> import inspect
>>>
>>> try:
>>> from arches.settings import *
>>> except ImportError:
>>> pass
>>>
>>> APP_ROOT =
>>> os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe(
>>> STATICFILES_DIRS =  (os.path.join(APP_ROOT, 'media'),) + STATICFILES_DIRS
>>>
>>> DATATYPE_LOCATIONS.append('hpla.datatypes')
>>> FUNCTION_LOCATIONS.append('hpla.functions')
>>>
>>>
>>>
>>> Similarly, wsgi.py, which is the file that generated the error Colin
>>> mentioned, fails on the following line:
>>>
>>> os.environ['DJANGO_SETTINGS_MODULE'] = "hpla.settings"
>>>
>>> I experimented with changing hpla to arches in wsgi.py and got further,
>>> but I'm about to scrap everything and re-install the project as arches. I
>>> could go through all of the files in the stack trace and replace all
>>> 'hpla.' occurrences with 'arches.', but I think it will be easier for
>>> long-term maintenance to just go with arches. So long as I can call the
>>> production product what I want, I should be fine.
>>>
>>>
>>> --
>>> -- To post, send email to arches...@googlegroups.com. To unsubscribe,
>>> send email to arches...@googlegroups.com. 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 arches...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/archesproject/e81e3cd8-098a-40fd-bf97-7af64d42b7c2%40googlegroups.com
>>> 
>>> .
>>>
>> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/archesproject/864e8eb1-89bd-465d-bc3b-ae3f95258131%40googlegroups.com
> 
> .
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You 

Re: [Arches] Re: Where is django configuration file my_project.settings

2019-05-16 Thread Adam Cox
Yes, that's right, though it's only necessary if you have DEBUG =  False.
If you are in a real production environment, it is much better to make an
explicit list in ALLOWED_HOSTS rather than use the wildcard. This could
look like

ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'www.mysite.com']

Here's a SO thread with some more info about that
https://stackoverflow.com/questions/24857158/commanderror-you-must-set-settings-allowed-hosts-if-debug-is-false
(which you've probably already seen :) ).

Adam


On Thu, May 16, 2019 at 1:56 PM Colin Wu  wrote:

> Thanks Adam. Aside from adding the 0.0.0.0:8000, one must also modify the
> AMLOWED_HOSTS parameter in settings.py to
>
> ALLOWED_HOSTS=["*"]
>
>
> “Waste no more time arguing what a good man should be, just be one.” --
> Marcus Aurelius
> *From:* mr.adam...@gmail.com
> *Sent:* May 16, 2019 14:37
> *To:* archesproject@googlegroups.com
> *Subject:* [Arches] Re: Where is django configuration file
> my_project.settings
>
> Hi Colin, try
>
> python manage.py runserver 0.0.0.0:8000
>
> (You can shorted 0.0.0.0 to just 0 in my experience.) You should then be
> able to access through a browser at :8000, as long as
> port 8000 is open.
>
> The message you see about settings is referring to my_project/settings.py.
> my_project.settings refers to that file as an imported python module, not
> as a "file" per se. In other words, it sounds like the dev server is
> working properly.
>
> Adam
>
> On Friday, May 10, 2019 at 8:47:34 AM UTC-5, Colin Wu wrote:
>>
>> Hi all,
>>
>> I am running Arches on a Ubuntu server (so no GUI, and therefore no
>> http://127.0.0.1:8000 ). How would I tell the dev server to allow
>> connections from external hosts? Running "python manage.py runserver"
>> displays a message saying "Django version 1.11.15, using settings from 'my_
>> project.settings'", but I can not find the file my_project.settings
>> anywhere on my system.
>>
>> Thanks.
>>
> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visithttps://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 archesproject+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/archesproject/1abeb35a-e0d1-4b50-8e35-560583d6dea2%40googlegroups.com
> 
> .
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/CAGYBTavnV0o-PrDb2yumCiXZAY1KrpfmtV%3Dr%3Dub%2BJFP4J2C%3DgA%40mail.gmail.com.


Re: [Arches] Where is django configuration file my_project.settings

2019-05-16 Thread Martha S
My development server is running fine, too, Adam,

This problem surfaces when we try to deploy in Apache.

Martha

On Thursday, May 16, 2019 at 11:40:56 AM UTC-7, Adam Cox wrote:
>
> Hi Martha,
>
> I just unmarked Colin's answer as a duplicate so that I could address the 
> settings question he had. In short, if you are having trouble, I think it 
> must be a different issue; it sounds like his development server was 
> running fine.
>
> Cheers,
> Adam
>
> On Thu, May 16, 2019 at 1:25 PM Martha S  > wrote:
>
>> Since Colin's thread was locked and re-directed, I'm using the same title 
>> to respond to his comment regarding my_project.settings. When we reached 
>> the same point with the same problem, I examined some of the stack trace. 
>> As Colin is doing, I am installing arches on a new machine, not upgrading a 
>> machine with an older version.
>>
>> It appears that giving your project a name other than arches results in 
>> some invalid settings in some of the py files. For example, settings.py 
>> loads the arches library, but immediately makes calls to modules in the 
>> projectname library, which doesn't exist:
>>
>> import os
>> import arches
>> import inspect
>>
>> try:
>> from arches.settings import *
>> except ImportError:
>> pass
>>
>> APP_ROOT = 
>> os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe(
>> STATICFILES_DIRS =  (os.path.join(APP_ROOT, 'media'),) + STATICFILES_DIRS
>>
>> DATATYPE_LOCATIONS.append('hpla.datatypes')
>> FUNCTION_LOCATIONS.append('hpla.functions')
>>
>>
>>
>> Similarly, wsgi.py, which is the file that generated the error Colin 
>> mentioned, fails on the following line:
>>
>> os.environ['DJANGO_SETTINGS_MODULE'] = "hpla.settings"
>>
>> I experimented with changing hpla to arches in wsgi.py and got further, 
>> but I'm about to scrap everything and re-install the project as arches. I 
>> could go through all of the files in the stack trace and replace all 
>> 'hpla.' occurrences with 'arches.', but I think it will be easier for 
>> long-term maintenance to just go with arches. So long as I can call the 
>> production product what I want, I should be fine.
>>
>>
>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to arches...@googlegroups.com . 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 arches...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/archesproject/e81e3cd8-098a-40fd-bf97-7af64d42b7c2%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/864e8eb1-89bd-465d-bc3b-ae3f95258131%40googlegroups.com.


Re: [Arches] Re: Where is django configuration file my_project.settings

2019-05-16 Thread Colin Wu
  Thanks Adam. Aside from adding the 0.0.0.0:8000, one must also modify the AMLOWED_HOSTS parameter in settings.py toALLOWED_HOSTS=["*"]“Waste no more time arguing what a good man should be, just be one.” -- Marcus Aurelius   From: mr.adam...@gmail.comSent: May 16, 2019 14:37To: archesproject@googlegroups.comSubject: [Arches] Re: Where is django configuration file my_project.settings  Hi Colin, trypython manage.py runserver 0.0.0.0:8000(You can shorted 0.0.0.0 to just 0 in my experience.) You should then be able to access through a browser at :8000, as long as port 8000 is open.The message you see about settings is referring to my_project/settings.py.my_project.settings refers to that file as an imported python module, not as a "file" per se. In other words, it sounds like the dev server is working properly.AdamOn Friday, May 10, 2019 at 8:47:34 AM UTC-5, Colin Wu wrote:Hi all,I am running Arches on a Ubuntu server (so no GUI, and therefore no http://127.0.0.1:8000  ). How would I tell the dev server to allow connections from external hosts? Running "python manage.py runserver" displays a message saying "Django version 1.11.15, using settings from 'my_project.settings'", but I can not find the file my_project.settings anywhere on my system.Thanks.



-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visithttps://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 archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/1abeb35a-e0d1-4b50-8e35-560583d6dea2%40googlegroups.com.




-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/j4s682ahneisqi2rmnuvvm4f.1558032982071%40colinwu.ca.


[Arches] Re: Formats

2019-05-16 Thread Alina Myklebust
Hi Nagamori,

Arches can hold data of all types and formats.  For more information on 
data considerations, please take a look at this page on the Arches Project 
website:

https://www.archesproject.org/implementation-considerations/

Cheers,

Alina
The Arches Project Team




On Tuesday, May 14, 2019 at 9:01:36 AM UTC-7, Nagamori wrote:
>
> What formats can i use? For example JPG, PNG etc...
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/7397eceb-1700-46f9-97e7-0e4043afeabd%40googlegroups.com.


Re: [Arches] Where is django configuration file my_project.settings

2019-05-16 Thread Adam Cox
Hi Martha,

I just unmarked Colin's answer as a duplicate so that I could address the
settings question he had. In short, if you are having trouble, I think it
must be a different issue; it sounds like his development server was
running fine.

Cheers,
Adam

On Thu, May 16, 2019 at 1:25 PM Martha S  wrote:

> Since Colin's thread was locked and re-directed, I'm using the same title
> to respond to his comment regarding my_project.settings. When we reached
> the same point with the same problem, I examined some of the stack trace.
> As Colin is doing, I am installing arches on a new machine, not upgrading a
> machine with an older version.
>
> It appears that giving your project a name other than arches results in
> some invalid settings in some of the py files. For example, settings.py
> loads the arches library, but immediately makes calls to modules in the
> projectname library, which doesn't exist:
>
> import os
> import arches
> import inspect
>
> try:
> from arches.settings import *
> except ImportError:
> pass
>
> APP_ROOT =
> os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe(
> STATICFILES_DIRS =  (os.path.join(APP_ROOT, 'media'),) + STATICFILES_DIRS
>
> DATATYPE_LOCATIONS.append('hpla.datatypes')
> FUNCTION_LOCATIONS.append('hpla.functions')
>
>
>
> Similarly, wsgi.py, which is the file that generated the error Colin
> mentioned, fails on the following line:
>
> os.environ['DJANGO_SETTINGS_MODULE'] = "hpla.settings"
>
> I experimented with changing hpla to arches in wsgi.py and got further,
> but I'm about to scrap everything and re-install the project as arches. I
> could go through all of the files in the stack trace and replace all
> 'hpla.' occurrences with 'arches.', but I think it will be easier for
> long-term maintenance to just go with arches. So long as I can call the
> production product what I want, I should be fine.
>
>
> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/archesproject/e81e3cd8-098a-40fd-bf97-7af64d42b7c2%40googlegroups.com
> 
> .
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/CAGYBTavp29onASEWCn6%3DAZHwJFGQZA8%3Dt8EOgNaQ4wx7AKb9vQ%40mail.gmail.com.


[Arches] Re: Where is django configuration file my_project.settings

2019-05-16 Thread Adam Cox
Hi Colin, try

python manage.py runserver 0.0.0.0:8000

(You can shorted 0.0.0.0 to just 0 in my experience.) You should then be 
able to access through a browser at :8000, as long as 
port 8000 is open.

The message you see about settings is referring to my_project/settings.py. 
my_project.settings refers to that file as an imported python module, not 
as a "file" per se. In other words, it sounds like the dev server is 
working properly.

Adam

On Friday, May 10, 2019 at 8:47:34 AM UTC-5, Colin Wu wrote:
>
> Hi all,
>
> I am running Arches on a Ubuntu server (so no GUI, and therefore no 
> http://127.0.0.1:8000 ). How would I tell the dev server to allow 
> connections from external hosts? Running "python manage.py runserver" 
> displays a message saying "Django version 1.11.15, using settings from 
> 'my_project.settings'", but I can not find the file my_project.settings 
> anywhere on my system.
>
> Thanks.
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/1abeb35a-e0d1-4b50-8e35-560583d6dea2%40googlegroups.com.


[Arches] Where is django configuration file my_project.settings

2019-05-16 Thread Martha S
Since Colin's thread was locked and re-directed, I'm using the same title 
to respond to his comment regarding my_project.settings. When we reached 
the same point with the same problem, I examined some of the stack trace. 
As Colin is doing, I am installing arches on a new machine, not upgrading a 
machine with an older version.

It appears that giving your project a name other than arches results in 
some invalid settings in some of the py files. For example, settings.py 
loads the arches library, but immediately makes calls to modules in the 
projectname library, which doesn't exist:

import os
import arches
import inspect

try:
from arches.settings import *
except ImportError:
pass

APP_ROOT = 
os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe(
STATICFILES_DIRS =  (os.path.join(APP_ROOT, 'media'),) + STATICFILES_DIRS

DATATYPE_LOCATIONS.append('hpla.datatypes')
FUNCTION_LOCATIONS.append('hpla.functions')



Similarly, wsgi.py, which is the file that generated the error Colin 
mentioned, fails on the following line:

os.environ['DJANGO_SETTINGS_MODULE'] = "hpla.settings"

I experimented with changing hpla to arches in wsgi.py and got further, but 
I'm about to scrap everything and re-install the project as arches. I could 
go through all of the files in the stack trace and replace all 'hpla.' 
occurrences with 'arches.', but I think it will be easier for long-term 
maintenance to just go with arches. So long as I can call the production 
product what I want, I should be fine.


-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/e81e3cd8-098a-40fd-bf97-7af64d42b7c2%40googlegroups.com.


[Arches] spotless skin

2019-05-16 Thread spotless skin


Beautiful & Spotless Skin - Melasma Hits & Missess
Melasma is chronic & is prevalent across the globe. Commonly affecting 
women, Melasma can mimic other pigmentary disorders of the face. Accurate 
diagnosis is critical for effective treatment.
If you don’t diagnose & treat it correctly, you can make it worse.”
Characterized by gray-brown patches on the face, typically covers the 
center of the forehead, over the eyebrow, the bridge of the nose, chin, 
upper lip & stops at the jaw line. Its borders are curved.
It can be psychologically debilitating, affecting a person’s social and 
recreational quality of life and self-esteem.
Causes
Oral contraceptives (primarily estrogen), pregnancy (often fading 
postpartum) & hormones are common causes of Melasma. UV & even the light 
from cell phones and computer screens — can trigger it.
It’s not melasma if …
§ It appears on the lateral forehead.
§ It covers the eyelids.
§ It appears on the tip of the nose or at the nasal openings.
§ It has a straight, symmetrical border.
§ It appears on the ear and ear lobe.


#spotless 

 
#skincare 

 
#beautifulskin 

 
#hyperpigmentation 

 
#agespots 

 
#face 

 
#youthfulskin 

 
#glowingskin 

 
#perfectskin 

Re: [Arches] arches 4.4.1: problem loading pages

2019-05-16 Thread Marlene Gilles
Hi Adam,

Thanks for your help.
I did some basic tests with yarn and it seemed to work normally. However, 
numeral.js could not be found. So I installed it with "npm install numeral" 
and then pasted the Numeral folder into my static folder. I'm not sure it's 
the cleanest solution, but it works so far.

Marlene

Le mercredi 15 mai 2019 22:01:00 UTC+2, Adam Cox a écrit :
>
> Hi Marlene,
>
> It doesn't seem to be an Elasticsearch issue; first reason being that 
> there is no difference in what ES version Arches needs between 4.3 and 
> 4.4.1 (in 4.5 there will be an upgrade though), second reason being the 
> messages in the devserver log you sent don't say anything related to ES 
> (usually is a "connection refused"-type of message).
>
> The only thing I really see is that last 404 response on the numeral.js 
> file. Can you confirm that yarn has run since the upgrade, and that there 
> weren't any errors? It seems like maybe that javascript library was not 
> installed properly.
>
> Adam
>
>
>
> On Wed, May 15, 2019 at 9:44 AM Marlene Gilles  > wrote:
>
>> Hello,
>>
>> For several months I have had the opportunity to install arches a good 
>> dozen times to test and create forms from in-house ontologies. 
>> I recently tried to install arches 4.4.1. Everything is set up as usual 
>> (I think) but I can no longer access the settings pages or create new forms 
>> (I can access the design page): the pages seem to want to load but do not 
>> end. I don't get an error message. I get the same result via django or 
>> apache.
>> I'm working on a ubuntu 16.04 virtual machine (announcement of new 
>> version said 16.04 or 18.04). To be sure of my installation procedure, I 
>> re-installed the previous version of arches on the same machine and it 
>> works very well.
>>
>> Is this due to the new version of Elasticsearch? Do you have any idea how 
>> I can solve this problem?
>> I enclose text files containing the messages obtained when trying to 
>> create a new resource model with both arches 4.3 and 4.4.1 if it can help.
>>
>> Many thanks for your help.
>> Marlène
>>
>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to arches...@googlegroups.com . 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 arches...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/archesproject/75d42760-4613-4c66-b796-2ee5e9d4377f%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/27b6f1b0-b706-44d9-b017-4f5e3072d6c0%40googlegroups.com.