-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Version 0.8.0 generates "Invalid line" error on blank lines in file #340
Comments
Looks like the feature that displays invalid lines, a nice one, doesn't take in account the fact that there are also empty or commented lines. An invalid line is skipped anyway, so those lines where treated as invalid, now just annoyingly shown. https://github.com/joke2k/django-environ/blob/main/environ/environ.py#L825 |
Is there an "official" opinion as to whether those types of lines are -
|
This was a feature that got into the release without proper attention. I'll fix this in the next release. |
Fixed in |
A blank line in an env file causes Django's manage.py to show "Invalid line" messages. This occurs even if no sub-command is specified.
An error is also thrown on a line beginning with an octothorpe ("#") - something that we use to comment those files.
The Usage docs don't specifically state that these are legal lines. However, the example further down on that page uses them within the example.
The text was updated successfully, but these errors were encountered: