[Mailman-Developers] RELEASED: GNU Mailman 3.0 beta 1 and Postorius 1.0 alpha 1

Florian Fuchs f at state-of-mind.de
Thu Mar 29 18:47:49 CEST 2012


Hi Odhiambo,

Am 29.03.12 18:12, schrieb Odhiambo Washington:
> My issue here is that I am not running Django 1.4 - unless I am missing
> something. I am not sure where it is coming from.
> I am on FreeBSD and I installed django-1.3.1 from the ports. A check on my
> installed apps shows just that. There is a port for py-django-devel but I
> did not install that at all:
> 
> See this
> 
> [root at jaribu] /usr/ports/www/py-django-devel# make fetch
> 
> ===>  py27-django-devel-17269,1 conflicts with installed package(s):
>       py27-django-1.3.1
> 
>       They install files into the same place.
>       You may want to stop build with Ctrl + C.
> ===>  License check disabled, port has not defined LICENSE
> => Django-r17269.tar.xz doesn't seem to exist in
> /usr/ports/distfiles/python.
> => Attempting to fetch
> http://people.cs.nctu.edu.tw/~lwhsu/ports/distfiles/Django-r17269.tar.xz
> Django-r17269.tar.xz                           85% of 4135 kB  135 kBps
> 00m04s
> 
> That shows I have django-1.3.1 installed.
> 
> I went as far as this:
>  `mv /usr/local/lib/python2.7/site-packages/django
> /usr/local/lib/python2.7/site-packages/_django-1.4`
> Then reinstalled django-1.3.1, but I am pretty sure that the above action
> wasn't necessary.

Generally, *if* you have multiple versions installed and want to know
which version is actually imported, cd to postorius/dev_setup, open up a
Python shell and try the following:

 >>> import django
 >>> django.__file__  # prints the package path
 >>> django.VERSION   # prints the django version

> 
> So I wiped put everything - python, django, mailman, mailman.client,
> py-sqlite3 - and reinstalled. Mailman gave me enough grief
> with bin/test and I had to wipe and reinstall several times. Perhaps it
> wasn't getting all the files during bin/build.
> 
> Now things look promising, but I still get errors about some templates I
> need to create - 500.html, 400.html....
> 
> 
> Traceback (most recent call last):
> 
>   File "/usr/local/lib/python2.7/site-packages/django/core/servers/basehttp.py",
> line 283, in run
>     self.result = application(self.environ, self.start_response)
> 
>   File "/usr/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py",
> line 272, in __call__
>     response = self.get_response(request)
> 
>   File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py",
> line 169, in get_response
>     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
> 
>   File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py",
> line 218, in handle_uncaught_exception
>     return callback(request, **param_dict)
> 
>   File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py",
> line 93, in _wrapped_view
>     response = view_func(request, *args, **kwargs)
> 
>   File "/usr/local/lib/python2.7/site-packages/django/views/defaults.py",
> line 30, in server_error
>     t = loader.get_template(template_name) # You need to create a
> 500.html template.
> 
>   File "/usr/local/lib/python2.7/site-packages/django/template/loader.py",
> line 157, in get_template
>     template, origin = find_template(template_name)
> 
>   File "/usr/local/lib/python2.7/site-packages/django/template/loader.py",
> line 138, in find_template
>     raise TemplateDoesNotExist(name)
> 
> TemplateDoesNotExist: 500.html

Django tries to find a 500.html file to display a standard error page.
It cannot find one and raises TemplateDoesNotExist. But the more
important question is: What's the actual cause for the 500 internal
server error?

IIRC Django only looks for a 500.html in non-DEBUG mode, so my guess is
that your DEBUG setting in dev_setup/settings.py is set to False. If
that is the case a good next step would be to set it to True and have a
look at the traceback again - it should be much more detailed than the
one you're seeing right now and (hopefully) give us a clue what's
actullay going wrong.

If you like paste the traceback to some of the various pasters out there
(like paste.ubuntu.com) and post the link to it here - it's much easier
to read then.

Florian


> 
> 
> 
> How do  I create these and where do I place them? Where is the guide??
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Mailman-Developers mailing list
> Mailman-Developers at python.org
> http://mail.python.org/mailman/listinfo/mailman-developers
> Mailman FAQ: http://wiki.list.org/x/AgA3
> Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/
> Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/f%40state-of-mind.de
> 
> Security Policy: http://wiki.list.org/x/QIA9



More information about the Mailman-Developers mailing list