Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlaskMVC reinitialize app.template_folder and drop value settings in Flask initialize #29

Closed
bsa7 opened this issue Nov 19, 2022 · 1 comment
Labels
question Further information is requested

Comments

@bsa7
Copy link

bsa7 commented Nov 19, 2022

This is cool mvc implementation, especially for me.

When i deep to Flask, i found the mvc-flask. It so like for me, because i'd RoR programmer.
So, i have to implement my folder structure identical to rails application.
But i found two incompatibilities with Ruby on Rails.

  1. I can't set folder for templates, when initialize Flask:
app = Flask(self.__name, template_folder = './app/views')
...
FlaskMVC(app, path = 'app')

After that, Flask searches templates in ./views folder, but not in ./app/views as i want. So, i try to propose pull-request to fix this behaviour.
With best regards to maintainers. FlaskMVC making python better (for me, for example).

@marcuxyz
Copy link
Owner

Hello @bsa7, fines? The views directory must be in app directory. Please see the sample https://github.com/marcuxyz/betravel-youtube/tree/main/app

@marcuxyz marcuxyz added the question Further information is requested label Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants