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
> <https://groups.google.com/d/msgid/archesproject/1abeb35a-e0d1-4b50-8e35-560583d6dea2%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
-- 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] 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: 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.