-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed __all__ variable in __init__.py files
Both because it's fairly hard to remember that they're there, which also makes it harder to maintain (like updating the `__all__` list of files), and because doing things like this is mainly appropriate when creating a library. This also fixes an issue where the settings were being referenced (through importing `make_queue.views.stream.stream.StreamConsumer` in `asgi.py`) before the environment variable had been set (in `asgi.py`), when running the `runworker` management command.
- Loading branch information
Showing
7 changed files
with
40 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
__all__ = ['course', 'machine', 'reservation'] | ||
|
||
for _import in __all__: | ||
__import__(f"{__package__}.{_import}") | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
__all__ = ["admin", "api", "quota", "reservation", "stream"] | ||
|
||
for _import in __all__: | ||
__import__(f"{__package__}.{_import}") | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
__all__ = ["course", "quota", "reservation"] | ||
|
||
for _import in __all__: | ||
__import__(f"{__package__}.{_import}") | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
__all__ = ["reservation", "user_info", "calendar"] | ||
|
||
for _import in __all__: | ||
__import__(f"{__package__}.{_import}") | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
__all__ = ["user"] | ||
|
||
for _import in __all__: | ||
__import__(f"{__package__}.{_import}") | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
__all__ = ["calendar", "machine", "reservation", "rules"] | ||
|
||
for _import in __all__: | ||
__import__(f"{__package__}.{_import}") | ||