
import webapp
application = webapp.create_app()


import config
import webapp

application = webapp.create_app()

if config.REGISTRATION_IS_OPEN:
    print(" * Registration is OPEN")
else:
    print(" * Registration is NOT OPEN: pregistration code is '%s'" %
            application.config['PREREGISTRATION_CODE'])

Print registration code in WSGI app.
Print registration code in WSGI app.

Otherwise, how will we know what it is?

  
+ import config
  import webapp
+ 
  application = webapp.create_app()
  
+ if config.REGISTRATION_IS_OPEN:
+     print(" * Registration is OPEN")
+ else:
+     print(" * Registration is NOT OPEN: pregistration code is '%s'" %
+             application.config['PREREGISTRATION_CODE'])
+ 
Print registration code in WSGI app.
## Code Before:

import webapp
application = webapp.create_app()

## Instruction:
Print registration code in WSGI app.
## Code After:

import config
import webapp

application = webapp.create_app()

if config.REGISTRATION_IS_OPEN:
    print(" * Registration is OPEN")
else:
    print(" * Registration is NOT OPEN: pregistration code is '%s'" %
            application.config['PREREGISTRATION_CODE'])
