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

Really basic setup of app has requests to unknown assets #109

Open
PonteIneptique opened this issue Jan 9, 2018 · 1 comment
Open

Really basic setup of app has requests to unknown assets #109

PonteIneptique opened this issue Jan 9, 2018 · 1 comment

Comments

@PonteIneptique
Copy link
Member

Currently running the following code results in following files not being found

from flask import Flask
from capitains_nautilus.cts.resolver import NautilusCTSResolver
from flask_nemo import Nemo


flask_app = Flask("Flask Application for Nemo")
resolver = NautilusCTSResolver(["corpora/additional-texts", "corpora/priapeia"])
resolver.parse()

nemo = Nemo(
    name="InstanceNemo",
    app=flask_app,
    resolver=resolver,
    base_url="/"
)

if __name__ == "__main__":
    flask_app.run(debug=True)
@PonteIneptique
Copy link
Member Author

This bug is due to Nemo not accepting "/" as base_url (it needs to be "").

Might include a warning in there and fix it automatically

PonteIneptique added a commit that referenced this issue Jan 26, 2018
- Moved to Mozilla Public License Version 2
- Fixed a bug tests would fail in mockup ( Issue #112 )
- Added a warning when base_url is not correct ( Issue #109 ) 
- Harmonized chunkers parameter names ( Issue #113 )
- Created a new tutorial on https://github.com/capitains/tutorial-nemo ( Issues #14, #78 and #97 )
- Added a CHANGES.MD
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