-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Separate version to avoid circular import
This patch allows importing the version from settings.py without suffering exceptions which are caused by circular imports.
- Loading branch information
1 parent
55507bc
commit 65f2497
Showing
3 changed files
with
20 additions
and
5 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
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,7 +1,8 @@ | ||
from .celery import app as celery_app | ||
from .version import __openwisp_version__, __openwisp_installation_method__ | ||
|
||
__all__ = ['celery_app'] | ||
__openwisp_version__ = '24.11.1' | ||
__openwisp_installation_method__ = ( | ||
'{{ openwisp2_installation_method | default("ansible-openwisp2") }}' | ||
) | ||
__all__ = [ | ||
'celery_app', | ||
'__openwisp_version__', | ||
'__openwisp_installation_method__' | ||
] |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
__openwisp_version__ = '24.11.1' | ||
__openwisp_installation_method__ = ( | ||
'{{ openwisp2_installation_method | default("ansible-openwisp2") }}' | ||
) |