Brad Rhoads's picture

Is or is it just me (

Jeremy Davis's picture

So my guess is something is not quite right with your config.

Brad Rhoads's picture

I just read your response more closely, what error do you get? All I get is the site isn't available and it works fine if I hit the IP.

Jeremy Davis's picture


Page not found (404)

Request Method: Request URL:

Using the URLconf defined in urls, Django tried these URL patterns, in this order:

  1. ^AO/
  2. ^admin/
  3. ^accounts/login/$
  4. ^logout/$
  5. ^logout_page/$

The current URL, , didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

Brad Rhoads's picture

BTW - I just read the blog post about you. Thanks for all the time you volunteer. I had always assumed you where part of TKL.

Jeremy Davis's picture


Alon Swartz's picture

As Jeremy mentioned, the hostname is resolving correctly - so no problems there. What are you missing though is a route setting for the root of your django app in, for example:

urlpatterns = patterns('',
    url(r'^$', 'views.index', {"template": "index.html"}, name="index"),

Ofcourse you'll also need the corresponding view and template for the above example to work. The TurnKey Django appliance comes with an example app and related configuration - recommended if you're new to Django...

Richard's picture

It's worth using the Turnkey Linux / Amazon firewall settings to secure your site while it's in development mode - it's very likely there are security holes so it's best if only your IP address can access the site.

TKL Hub has an easy way to set the firewall up, see to get your IP address - just protect port 80 for the IP addresses you use.

See and run through its recommendations, then you can open up the site.  One example is that the settings.DEBUG value in Django (which generates that debug page) should not be set to True except for people you trust, as it gives out a lot of info about your application.

Brad Rhoads's picture

Thanks for the replies! I'll look into the suggestions. But it's very stange that this just all of a sudden stopped working. It's been working fine for months and I haven't made any changes. 

Also, if this was a Django setting thing, wouldn't I be getting some error other than:

The site you are looking for is currently not available.

What is it's a free dynamic DNS (DynDNS) service provided by the TurnKey Hub. It includes a simple to use web interface as well as a powerful API.

Jeremy Davis's picture

As well as flushing your DNS cache (if using Windows). Sometimes too some ISP DNS servers have slow update rates (ie that don't update their DNS records regularly) and I have often had much better results using Google Public DNS (

Brad Rhoads's picture

So here's what happened...


I restarted my server, which apparently invalidated my url (even though I do have a elastic IP). So then I tried to hit the site, got the error above, and the error got cached.


Thanks again for  the help!

Brad Rhoads's picture

Also, if I hit the IP instead of the, the site comes up fine.

Add new comment