-
-
Save Kd-Here/176e0931152a15cf8abffa719e0815e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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