GAE, Django and SSL

97 views
Skip to first unread message

João Silva

unread,
May 11, 2012, 11:00:43 AM5/11/12
to google-a...@googlegroups.com
Hi,

I know that GAE provides SSL traffic through appspot.com domains. But there aren't code examples that use django.
My app.yaml is:

application: my_app
version
: 1
runtime
: python27
api_version
: 1
threadsafe
: true

libraries
:
- name: django
  version
: "1.3"

builtins
:
- django_wsgi: on


Does anyone knows what do I have to do to use SSL in GAE with Django?

Thanks in advance.

Claude Vedovini

unread,
May 11, 2012, 11:47:23 AM5/11/12
to Google App Engine
By default you don't have anything to do, just access your site with
https instead of http
But you can configure how ssl is handled on a per url basis in you
app.yaml: https://developers.google.com/appengine/docs/python/config/appconfig#Secure_URLs


On May 11, 10:00 pm, João Silva <joao.andre.almeida.si...@gmail.com>
wrote:

Matt McDonald

unread,
May 12, 2012, 12:11:09 PM5/12/12
to google-a...@googlegroups.com
The "django_wsgi" builtin doesn't enforce SSL by default.  If you need to restrict requests to SSL only, you can manually specify the script handler instead of using the builtin:

handlers:
- url: /.*
  secure: always


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/-CCwSCt3WtoJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

--
Matt McDonald


Reply all
Reply to author
Forward
0 new messages