Using the URLconf defined in urls, Django tried these URL patterns, in this order:
^AO/
^admin/
^accounts/login/$
^logout/$
^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.
As Jeremy mentioned, the TKLAPP.com 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 urls.py, for example:
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...
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 http://www.showmyipaddress.eu/ to get your IP address - just protect port 80 for the IP addresses you use.
See https://docs.djangoproject.com/en/dev/topics/security/ 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.
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:
TKLAPP.com
The site you are looking for is currently not available.
What is TKLAPP.com? 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.
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 (8.8.8.8).
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.
Just checked and I'm getting a Django error msg
So my guess is something is not quite right with your config.
What error are you getting?
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.
This is what i get
Page not found (404)
Using the URLconf defined in
urls
, Django tried these URL patterns, in this order: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 toFalse
, and Django will display a standard 404 page.Thanks for all your help
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.
No worries!
:)
missing django route
As Jeremy mentioned, the TKLAPP.com 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 urls.py, for example:
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...
Secure your site while in development mode
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 http://www.showmyipaddress.eu/ to get your IP address - just protect port 80 for the IP addresses you use.
See https://docs.djangoproject.com/en/dev/topics/security/ 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.
It used to work
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:
TKLAPP.com
The site you are looking for is currently not available.
What is TKLAPP.com? 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.
I suggest that you clear your browser cache
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 (8.8.8.8).
Clearing Cache Did The Trick
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!
Hitting The IP Works
Also, if I hit the IP instead of the otalo.tklapp.com, the site comes up fine.
Add new comment