You don't want to be configuring the app's secret_key here. You copy and pasted too much!