-
Notifications
You must be signed in to change notification settings - Fork 14
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
pa_create_webapp_with_virtualenv.py missing docopt arg <git-repo-url> -> KeyError #14
Comments
Good catch -- I've removed that entirely, as it's not something the script needs. |
@gpjt Interesting - I had started on some changes to make What I next found was that for a free-form project (such as you might want to launch with this script), you are probably going to need some custom logic to populate the virtualenv ... this logic is currently sitting in the Django project subclass e.g. So I think some refactoring is required as some of this stuff is not Django-specific. And I think an interface will be needed for provide a WSGI file rather than trying to always build one from a template. |
Agreed, the script could definitely do more than it currently does! Still, at least it's not completely broken now -- that's a better starting point for adding enhancements than before. So how about:
Of course, an ideal script would try to work out which web framework you were using and populate the WSGI file based on that. But I suspect that would be really hard to do in a reliable fashion. In particular, Flask and Bottle are so free-form that the WSGI application object could be pretty much anywhere. Perhaps this script could be the basic one that further |
pa_create_webapp_with_virtualenv.py is expecting a
<git-repo-url>
like the Django script, but it's notdocopt
specified, so aKeyError
ensues:Even if
<git-repo-url>
is added to thedocopt
spec, the variable isn't currently used for checkout like it is in the Django version.The text was updated successfully, but these errors were encountered: