Re: getting 500 131 error on page not found

2014-10-23 Thread Collin Anderson

>
> Where are you located? How long have you been doing Django?
>
South Bend, IN, USA. I've been using Django since 2006, but just started 
posting to the mailing list recently. 

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c7c8139e-12f9-403f-af47-528260477d8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: getting 500 131 error on page not found

2014-10-22 Thread Sabine Maennel
Dear Collin,

you hit the nail right right on top. That was it! I feel so thankful 
towards you! I would never have thought about the context processors. 

I am so thankful to everybody here in the Django User group to always 
taking the time and helping me out. I will try to give back, as soon as I 
get to be more experienced! 

I have the ADMINS setting in place in my production settings file, Collin. 
I was just trying to understand the error in my local environment first, 
since it occurred even there.

You have been helping me out quite a lot lately. Where are you located? How 
long have you been doing Django?
   Thanks again and with kind regards
 Sabine Maennel 
  

Am Dienstag, 21. Oktober 2014 19:22:56 UTC+2 schrieb Collin Anderson:
>
> Hi Sabine,
>
> It may be an issue with your core.context_processors.resolvermatch.
>
> I recommend setting ADMINS so you get the error emailed to you.
>
> https://docs.djangoproject.com/en/dev/howto/deployment/checklist/#admins-and-managers
> https://docs.djangoproject.com/en/dev/ref/settings/#admins
>
> Collin
>
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/14eadcc7-8f85-46de-9e7c-7068db818683%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: getting 500 131 error on page not found

2014-10-22 Thread Sabine Maennel
Dear Tom,  Thanks for your reply, but I did not have DEBUG=True on. With 
DEBUG=True the program behaves as expected. Things go wrong just when I set 
DEBUG=False. But thanks anyway for your reply.

Am Dienstag, 21. Oktober 2014 21:02:48 UTC+2 schrieb Tom Evans:
>
> On Tue, Oct 21, 2014 at 4:19 PM, Sabine Maennel 
>  wrote: 
> > I really do not understand what is happening. I have a 404.html along 
> with a 
> > 500.html in my template directory. They are both simple and look like 
> this: 
> > 
> > 404.html: 
> > 
> > Server Error 404! 
> > Das netTeachers-Team ist informiert und kümmert sich darum. 
> > Wir hoffen auf Ihr Verständnis. 
> > 
> > 500.html: 
> > 
> > Server Error 500! 
> > Das netTeachers-Team ist informiert und kümmert sich darum. 
> > Wir hoffen auf Ihr Verständnis. 
> > 
> > When I put in a non existent url on runserver and DEBUG=False, I get 
> this 
> > error in my log: [21/Oct/2014 16:08:56] "GET /x HTTP/1.1" 500 131 
> > 
> > It seems like he does not find my 404.html Template but why??? 
> > 
> > My settings.py looks like this in the part of template directories: 
> > 
> > import os 
> > BASE_DIR = os.path.dirname(os.path.dirname(__file__)) 
> > 
> > ROOT_URLCONF = 'netteachers.urls' 
> > 
> > TEMPLATE_DIRS = ( 
> > os.path.join(BASE_DIR, 'templates'), 
> > ) 
> > 
> > CRISPY_TEMPLATE_PACK = 'bootstrap3' 
> > 
> > TEMPLATE_CONTEXT_PROCESSORS = ( 
> > "django.contrib.auth.context_processors.auth", 
> > "django.core.context_processors.debug", 
> > "django.core.context_processors.i18n", 
> > "django.core.context_processors.media", 
> > 'django.core.context_processors.request', 
> > "django.contrib.messages.context_processors.messages", 
> > "core.context_processors.resolvermatch", 
> > ) 
> > 
> > Please can anybody tell me what I am doing wrong! Thanks in advance! 
> > 
>
> You have DEBUG=True on, so you will never see your custom 404 page: 
>
> https://docs.djangoproject.com/en/1.7/ref/views/#http-not-found-view 
>
> Cheers 
>
> Tom 
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8228157a-1906-49d2-b08e-f70b4a43cbc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: getting 500 131 error on page not found

2014-10-21 Thread Tom Evans
On Tue, Oct 21, 2014 at 4:19 PM, Sabine Maennel
 wrote:
> I really do not understand what is happening. I have a 404.html along with a
> 500.html in my template directory. They are both simple and look like this:
>
> 404.html:
>
> Server Error 404!
> Das netTeachers-Team ist informiert und kümmert sich darum.
> Wir hoffen auf Ihr Verständnis.
>
> 500.html:
>
> Server Error 500!
> Das netTeachers-Team ist informiert und kümmert sich darum.
> Wir hoffen auf Ihr Verständnis.
>
> When I put in a non existent url on runserver and DEBUG=False, I get this
> error in my log: [21/Oct/2014 16:08:56] "GET /x HTTP/1.1" 500 131
>
> It seems like he does not find my 404.html Template but why???
>
> My settings.py looks like this in the part of template directories:
>
> import os
> BASE_DIR = os.path.dirname(os.path.dirname(__file__))
>
> ROOT_URLCONF = 'netteachers.urls'
>
> TEMPLATE_DIRS = (
> os.path.join(BASE_DIR, 'templates'),
> )
>
> CRISPY_TEMPLATE_PACK = 'bootstrap3'
>
> TEMPLATE_CONTEXT_PROCESSORS = (
> "django.contrib.auth.context_processors.auth",
> "django.core.context_processors.debug",
> "django.core.context_processors.i18n",
> "django.core.context_processors.media",
> 'django.core.context_processors.request',
> "django.contrib.messages.context_processors.messages",
> "core.context_processors.resolvermatch",
> )
>
> Please can anybody tell me what I am doing wrong! Thanks in advance!
>

You have DEBUG=True on, so you will never see your custom 404 page:

https://docs.djangoproject.com/en/1.7/ref/views/#http-not-found-view

Cheers

Tom

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1L%3D%2BkafgUq7YaZBNvAEdPwhT%2BEwFSh%3DHk5TAZ-7o%3DWVSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: getting 500 131 error on page not found

2014-10-21 Thread Collin Anderson
Hi Sabine,

It may be an issue with your core.context_processors.resolvermatch.

I recommend setting ADMINS so you get the error emailed to you.
https://docs.djangoproject.com/en/dev/howto/deployment/checklist/#admins-and-managers
https://docs.djangoproject.com/en/dev/ref/settings/#admins

Collin

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/61a56d6a-f43d-43a3-b321-88bf46e4662b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


getting 500 131 error on page not found

2014-10-21 Thread Sabine Maennel


I really do not understand what is happening. I have a 404.html along with 
a 500.html in my template directory. They are both simple and look like 
this:

404.html:

Server Error 404!Das netTeachers-Team ist informiert und kümmert 
sich darum.
Wir hoffen auf Ihr Verständnis.

500.html:

Server Error 500!Das netTeachers-Team ist informiert und kümmert 
sich darum.
Wir hoffen auf Ihr Verständnis.

When I put in a non existent url on runserver and DEBUG=False, I get this 
error in my log: [21/Oct/2014 16:08:56] "GET /x HTTP/1.1" 500 131

It seems like he does not find my 404.html Template but why???

My settings.py looks like this in the part of template directories:

import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))

ROOT_URLCONF = 'netteachers.urls'

TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'templates'),)

CRISPY_TEMPLATE_PACK = 'bootstrap3'

TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
'django.core.context_processors.request',
"django.contrib.messages.context_processors.messages",
"core.context_processors.resolvermatch",)

Please can anybody tell me what I am doing wrong! Thanks in advance!

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3fb49844-c306-4266-aed6-773b68a0585b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.