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

Issue in app/create_app.py #25

Open
Kentoseth opened this issue Dec 29, 2016 · 0 comments
Open

Issue in app/create_app.py #25

Kentoseth opened this issue Dec 29, 2016 · 0 comments

Comments

@Kentoseth
Copy link

On a Linux machine, I get this error:

Traceback (most recent call last):
  File "manage.py", line 7, in <module>
    app = create_app()
  File "../Flask-User-starter-app/app/create_app.py", line 24, in create_app
    app.config.from_pyfile(env_settings_file)
  File "../lib/python3.4/site-packages/flask/config.py", line 129, in from_pyfile
    with open(filename) as config_file:
FileNotFoundError: [Errno 2] Unable to load configuration file (No such file or directory): '../Flask-User-starter-app/appenv_settings.py'

The issue is in create_app.py on line 21:

default_filename = app.root_path + 'env_settings.py'

Which can be fixed with:

default_filename = app.root_path + '/env_settings.py'

I have not opened a PR for this because it may break non-Linux installs by creating // for the file-path.

Please confirm, otherwise I will open a PR for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant