Re: Django Development server inaccessible from the browser

2017-11-24 Thread Dylan Reinhold
Is your development server the same machine you are running your browser
from?

If not you don't want to use localhost, you need to user the IP/domain name
of the development server.

What is the error you get in the browser?

Dylan

On Fri, Nov 24, 2017 at 2:47 AM, Harish Oraon  wrote:

> This might be your settings, please confirm
>
> DEBUG=False
> ALLOWED_HOST = []
>
> Try these two
> a)
>DEBUG = True
>ALLOWED_HOST = []
> b)
>DEBUG = False
>ALLOWED_HOST = ['localhost', '127.0.0.1',]
>
> On Friday, 24 November 2017 15:42:22 UTC+5:30, ngn zone wrote:
>>
>> Hello all,
>>
>>   I have a very strange experience with my Development server.
>> 1. I ran python manage.py makemigrations and it was successful
>>
>> 2. I ran python manage.py migrate every ran successful to my postgresql db
>>
>> 3. I ran python manage.py runserver everything successfu with following
>> output attched to this post.
>>
>> 4. When I head over to my web browser and type localhost:8000
>>
>> 5. The browser shows this site can't be access.
>>
>> 6. when I run other projects on the same computer it runs just fine but
>> for the afore mentioned.
>>I am running my project on virtualenv.
>>
>> 7. I am using linux mint 17 django 1.11.2
>>
>> My Question is, what is wrong with my code that permits migrations and
>> the development server to run without errors but on the browser I cannot
>> access any url of my project?
>>
>> Desperately waiting for your help.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/2bf18a17-5427-4b82-9c12-2ca86f9faf4c%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHtg44Acpa%2B%2BmXxST_9W1A8-RWY-sz5MaYaSQxxc4EN%3DB3-dHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Development server inaccessible from the browser

2017-11-24 Thread Harish Oraon
This might be your settings, please confirm

DEBUG=False
ALLOWED_HOST = []

Try these two
a)
   DEBUG = True
   ALLOWED_HOST = []
b)
   DEBUG = False
   ALLOWED_HOST = ['localhost', '127.0.0.1',]

On Friday, 24 November 2017 15:42:22 UTC+5:30, ngn zone wrote:
>
> Hello all, 
>
>   I have a very strange experience with my Development server. 
> 1. I ran python manage.py makemigrations and it was successful
>
> 2. I ran python manage.py migrate every ran successful to my postgresql db
>
> 3. I ran python manage.py runserver everything successfu with following 
> output attched to this post.
>
> 4. When I head over to my web browser and type localhost:8000
>
> 5. The browser shows this site can't be access.
>
> 6. when I run other projects on the same computer it runs just fine but 
> for the afore mentioned.
>I am running my project on virtualenv.
>
> 7. I am using linux mint 17 django 1.11.2
>
> My Question is, what is wrong with my code that permits migrations and the 
> development server to run without errors but on the browser I cannot access 
> any url of my project?
>
> Desperately waiting for your help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2bf18a17-5427-4b82-9c12-2ca86f9faf4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.