Skip to content

Instantly share code, notes, and snippets.

@Kd-Here
Created March 3, 2023 20:03
Show Gist options
  • Save Kd-Here/176e0931152a15cf8abffa719e0815e0 to your computer and use it in GitHub Desktop.
Save Kd-Here/176e0931152a15cf8abffa719e0815e0 to your computer and use it in GitHub Desktop.
from flask import Flask
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = 'fdadjfaoef afdpp'
from .views import views
from .auth import auth
app.register_blueprint(views,url_prefix='/')
# app.register_blueprint(auth,url_prefix='/auth/') #What's different between both this here before every url it must /auth/ then what you want
app.register_blueprint(auth,url_prefix='/') #It will be / only no prefix-> before url
return app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment