from flask import Flask

app = Flask(__name__)
app.secret_key = ''

import api.userview

from flask import Flask
from simplekv.memory import DictStore
from flaskext.kvsession import KVSessionExtension

# Use DictStore until the code is ready for production
store = DictStore()
app = Flask(__name__)
app.secret_key = ''

KVSessionExtension(store, app)

import api.userview

Change so that kvsession (server side sessions) is used instead of flask default
Change so that kvsession (server side sessions) is used instead of flask default

  from flask import Flask
+ from simplekv.memory import DictStore
+ from flaskext.kvsession import KVSessionExtension
  
+ # Use DictStore until the code is ready for production
+ store = DictStore()
  app = Flask(__name__)
  app.secret_key = ''
  
+ KVSessionExtension(store, app)
+ 
  import api.userview
  
Change so that kvsession (server side sessions) is used instead of flask default
## Code Before:
from flask import Flask

app = Flask(__name__)
app.secret_key = ''

import api.userview

## Instruction:
Change so that kvsession (server side sessions) is used instead of flask default
## Code After:
from flask import Flask
from simplekv.memory import DictStore
from flaskext.kvsession import KVSessionExtension

# Use DictStore until the code is ready for production
store = DictStore()
app = Flask(__name__)
app.secret_key = ''

KVSessionExtension(store, app)

import api.userview
