INNER CODE UNIT · Python

__init__

vijos/vj4 · vj4/app.py:61

  def __init__(self):
    middlewares = []
    if options.sentry_dsn:
      middlewares.append(SentryMiddleware({
        'dsn': options.sentry_dsn,
        'environment': 'vj4',
        'debug': options.debug,
      }))

    super(Application, self).__init__(
      debug=options.debug,
      middlewares=middlewares
    )
    globals()[self.__class__.__name__] = lambda: self  # singleton

    static_path = path.join(path.dirname(__file__), '.uibuild')

    # Initialize components.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…