bviveksingh / personal-blog-flask Goto Github PK
View Code? Open in Web Editor NEWBack-end part of the personal blogging website
Back-end part of the personal blogging website
Dear Vivek ,
I downloaded your entire code and wrote the following command "flask run"from the cd folder where I am having this code but I am getting the above error.Please help at the earliest.
Regards
Chandrashekhar
Hey @vivek Bisht
I have followed all the tutorial and I keep having some issues in blogs.wrapper.
Every time I try to create the database it throws this error:
“AssertionError: View function mapping is overwriting an existing endpoint function: blogs.wrapper”
Traceback:
File "", line 1, in
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/api/init.py", line 21, in create_app
app.register_blueprint(blogs)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/app.py", line 98, in wrapper_func
return f(self, *args, **kwargs)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/app.py", line 1168, in register_blueprint
blueprint.register(self, options, first_registration)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/blueprints.py", line 256, in register
deferred(state)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/blueprints.py", line 294, in
self.record(lambda s: s.add_url_rule(rule, endpoint, view_func, **options))
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/blueprints.py", line 81, in add_url_rule
self.app.add_url_rule(
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/app.py", line 98, in wrapper_func
return f(self, *args, **kwargs)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/app.py", line 1282, in add_url_rule
raise AssertionError(
AssertionError: View function mapping is overwriting an existing endpoint function: blogs.wrapper
I think it might be something related to dependencies or blueprint conflict, but I couldn’t fix my self. Any idea?
I’m running python 3.8.5
and the dependencies are
click 7.1.2 Flask 1.1.2 Flask-Cors 3.0.10 Flask-JWT-Extended 4.1.0 Flask-SQLAlchemy 2.4.4 greenlet 1.0.0 itsdangerous 1.1.0 Jinja2 2.11.3 MarkupSafe 1.1.1 pip 21.0.1 PyJWT 2.0.1 setuptools 47.1.0 six 1.15.0 SQLAlchemy 1.4.0 Werkzeug 1.0.1
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.