Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7694345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:17:54+00:00 2026-05-31T21:17:54+00:00

I’m using the latest tools provided by the latest Google App Engine (GAE) environment,

  • 0

I’m using the latest tools provided by the latest Google App Engine (GAE) environment, i.e. Django 1.3 via

libraries:
- name: django
  version: "1.3"

as instructed by the GAE docs here.

Still, although I found a lot of links discussing how to send the blessed HTTP500 email using the powerful GAE-Django combo, all of them are outdated because they are either simply too old or use “additional” tools like AppEngineHelper or django-nonrel.

Back to my problem: I set up my settings.py to follow the Django docs instructions here, and since on GAE opening sockets is restricted I end up with this traceback:

ERROR    2012-03-21 23:11:15,855 base.py:209] Internal Server Error: /contact/
Traceback (most recent call last):
  File "/home/josvic/dev-tools/google_appengine/lib/django_1_3/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/josvic/dev/qdsa/gae/apputil/decorators.py", line 14, in wrapper
    output = func(request, *args, **kw)
  File "/home/josvic/dev/qdsa/gae/qdcom/views/contact.py", line 26, in __call__
    return self.f(request, *args, **kwargs)
  File "/home/josvic/dev/qdsa/gae/qdcom/views/contact.py", line 59, in contact_page
    msg.send()
  File "/home/josvic/dev-tools/google_appengine/lib/django_1_3/django/core/mail/message.py", line 251, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/home/josvic/dev-tools/google_appengine/lib/django_1_3/django/core/mail/backends/smtp.py", line 79, in send_messages
    new_conn_created = self.open()
  File "/home/josvic/dev-tools/google_appengine/lib/django_1_3/django/core/mail/backends/smtp.py", line 42, in open
    local_hostname=DNS_NAME.get_fqdn())
  File "/home/josvic/dev-tools/google_appengine/lib/django_1_3/django/core/mail/utils.py", line 16, in get_fqdn
    self._fqdn = socket.getfqdn()
AttributeError: 'module' object has no attribute 'getfqdn'

So that is the problem. Do we have a standard way of circumventing this?

The only thing I can think of to bypass this problem is to resort to a custom 500error handler that uses GAE’s standard mail API.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:17:55+00:00Added an answer on May 31, 2026 at 9:17 pm

    Two options I can think of are:

    1. Custom logging handler that uses GAE standard mail API, not too different from a 500 error handler, but you don’t have to rewrite the view: https://docs.djangoproject.com/en/dev/topics/logging/

    2. Replace the email backend. I’m not 100% certain this works, but I suspect it will. There’s already one in the Django-nonrel project (which incidentally, is still maintained)
      https://github.com/django-nonrel/djangoappengine
      look in mail.py

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm making a simple page using Google Maps API 3. My first. One marker
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.