Django ERROR (EXTERNAL IP): Internal server error: /favicon.ico

I host my site on Digital Ocean and it forces me to send this email. [Django] ERROR (EXTERNAL IP): Internal server error: /favicon.ico

Currently, I have not dealt with any domain and am surfing via ip. Due to this error?

Also, when I try to upload any image, it does not load either from the client side or from the admin panel. He sends me 3 4 error messages related to the image .. \

Tracking:

Internal Server Error: /img/loading.gif
Traceback (most recent call last):
File "/var/www/html/eclinicnepal/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response
response = callback(request, **param_dict)
File "/var/www/html/eclinicnepal/venv/lib/python2.7/site-packages/django/utils/decorators.py", line 105, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/var/www/html/eclinicnepal/venv/lib/python2.7/site-packages/django/views/defaults.py", line 31, in page_not_found
body = template.render(RequestContext(request, {'request_path': request.path}))
File "/var/www/html/eclinicnepal/venv/lib/python2.7/site-packages/django/template/context.py", line 209, in __init__
updates.update(processor(request))
File "/var/www/html/eclinicnepal/eclinicnepal/eclinicnepal/context_processor.py", line 4, in notifications
'unseen_notifications': request.unseen_notifications,
AttributeError: 'WSGIRequest' object has no attribute 'unseen_notifications'

As in the last line of the error, there is no error in this file. It looks like

def notifications(request):
"Context processor for adding notifications to the context."
return {
    'unseen_notifications': request.unseen_notifications,
    'seen_notifications': request.seen_notifications
}

In my local one that works fine without errors. What mistake?

And why is my image not loading?

+4
source share
1

, . WSGIRequest.

, IP-, , Apache , . , , .

. , . , , , .

Digital Ocean , Django , , .

, Digital Ocean:

http://www.pdxpixel.com/blog/configuring-dango-on-apache-with-mod_wsgi/

http://www.pdxpixel.com/blog/setting-up-django-on-ubuntu-with-virtualenv-and-mod_wsgi/

, virtualenv, . , .

+4

All Articles