(py36) rj:category_search rj$ python app.py
Traceback (most recent call last):
File "app.py", line 20, in <module>
app.register_blueprint(api)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 66, in wrapper_func
return f(self, *args, **kwargs)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1115, in register_blueprint
blueprint.register(self, options, first_registration)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/blueprints.py", line 187, in register
deferred(state)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/blueprints.py", line 208, in <lambda>
s.add_url_rule(rule, endpoint, view_func, **options))
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/blueprints.py", line 80, in add_url_rule
view_func, defaults=defaults, **options)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 66, in wrapper_func
return f(self, *args, **kwargs)
File "/Users/rj/anaconda3/envs/py36/lib/python3.6/site-packages/flask/app.py", line 1221, in add_url_rule
'existing endpoint function: %s' % endpoint)
AssertionError: View function mapping is overwriting an existing endpoint function: dummy_name.test