Hello,

Usually when you get a mere "Server error 500" without it showing you the Debug
page though you have DEBUG=True, this means that the error occurs very early,
before Django has had the opportunity to run. In that case, the error should
have been logged in the gunicorn/uwsgi/whatever log, i.e. in whatever program it
is that runs Django.

For more information, you need to show us your nginx configuration and your wsgi
server configuration.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com


On 2017-12-10 18:42, Chris Seberino wrote:
> I cannot track down why 404 page isn't being used.  I can't get any help from
> syslog or Nginx log files.
> I tried adding DEBUG=True to settings.py and still no clues.
> I only get "Server Error 500".
>
> Here is settings.py
>
> TEMPLATES        = [{"BACKEND" :
>                         "django.template.backends.django.DjangoTemplates",
>                      "DIRS"    : [VIEWS.format(e) for e in APPS],
>                      "OPTIONS" :
>                         {"context_processors" :
>                          ["django.template.context_processors.debug",
>                           "django.template.context_processors.request"]}}]
> MIDDLEWARE       = ["django.middleware.security.SecurityMiddleware",
>                     "django.contrib.sessions.middleware.SessionMiddleware",
>                     "django.middleware.common.CommonMiddleware",
>                     "django.middleware.csrf.CsrfViewMiddleware",
>                     "django.contrib.auth.middleware.AuthenticationMiddleware",
>                     "django.contrib.messages.middleware.MessageMiddleware",
>                     "django.middleware.clickjacking.XFrameOptionsMiddleware"]
> WSGI_APPLICATION = "nginx.wsgi.application"
> INSTALLED_APPS   = APPS + ["django.contrib.admin",
>                            "django.contrib.auth",
>                            "django.contrib.contenttypes",
>                            "django.contrib.messages",
>                            "django.contrib.sessions",
>                            "django.contrib.staticfiles"]
> -- 
> 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 [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> 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/977652c4-f86e-491c-a5af-ccbba38dc733%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/977652c4-f86e-491c-a5af-ccbba38dc733%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 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 [email protected].
To post to this group, send email to [email protected].
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/b01b12c2-91c4-086c-c290-bc6ad46727b4%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to