You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive errors because of importing TOKEN and admin_chat to notify_admins.py and loader.py (from environment import X) and then running the script from main.py. The errors derive from having these values set to None, though running the files with imports separately and not from main is fine. Thus a stupid question: is django-environ only for django projects and cannot be adapted for other projects in any way?
Thank you for reporting this issue. I'm trying to understand the nature of the problem you're facing, but I could use a bit more information to reproduce it accurately.
Would you be able to provide a minimal code sample that reproduces the issue? Ideally, something that can be run in a clean virtual machine with only Python installed would be most helpful.
No matter how I write the environment.py file:
or
I receive errors because of importing TOKEN and admin_chat to notify_admins.py and loader.py (from environment import X) and then running the script from main.py. The errors derive from having these values set to None, though running the files with imports separately and not from main is fine. Thus a stupid question: is django-environ only for django projects and cannot be adapted for other projects in any way?
My project's structure:
Ready to provide the contents of other files if needed.
The text was updated successfully, but these errors were encountered: