# Register mapping with application.
application = webapp.WSGIApplication(
service_handlers.service_mapping(
[('/postservice', postservice.PostService)]),
debug=True)
def main():
util.run_wsgi_app(application)
With Django and AppEngine:
def main():
# Create a Django application for WSGI.
application = django.core.handlers.wsgi.WSGIHandler()
# Run the WSGI CGI handler with that application.
util.run_wsgi_app(application)
if __name__ == '__main__':
main()
if __name__ == '__main__':
main()
handlers:
- url: /(protorpc|my_service|my_other_service).*
script: services.py # Contains ProtoRPC definitions
- url: .*
script: main.py # Contains Django handlers
We are looking to add the ability for ProtoRPC to be implemented as
a basic WSGI service, and in that case it will be easy to combine them
all in the same main file.
--
You received this message because you are subscribed to the Google Groups "ProtoRPC Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-protorpc-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.