Error message for no reason
I am just getting started with backend development with flask and it is showing an error message
12 Replies
not sure I'll be able to help, I barely use python and never used flask, but the error is referring to something going on in
__init__.py
inside the website
folder
can you paste the contents of that in a code block instead of a screenshot? They're much easier to work with
this is init
are you following a tutorial?
yes
tech with tim
can you link it?
Tech With Tim
YouTube
Python Website Full Tutorial - Flask, Authentication, Databases & More
In this video, I'm going to be showing you how to make a website with Python, covering Flask, authentication, databases, and more. The goal of this video is to give you what you need to make a finished product that you can tweak, and turn into anything you like. We're going to also go over how you create a new user's account, how you store those...
and the contents of views.py?
can you paste the contents of your views.py
can you try removing the second register_blueprint line?
this one
tysm
it worked
you probably have to have unique
url_prefix
values, maybe that's a new feature in the most recent version of flask or something... if this works, it'll probably also work to change the prefix for the auth one to '/auth/'
if it doesn't, I noticed one of the comments on that youtube video said they had to remove the contents of url_prefix
, so maybe using url_prefix = ''
for views might help took thanks