Skip to content
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

dashboard 可以分享下吗 #1

Closed
chanwoood opened this issue Oct 30, 2023 · 3 comments
Closed

dashboard 可以分享下吗 #1

chanwoood opened this issue Oct 30, 2023 · 3 comments

Comments

@chanwoood
Copy link

安装好依赖后,我尝试使用 python trader/main.py 运行程序,结果报错:

Traceback (most recent call last):
  File "/root/trader-master/trader/main.py", line 27, in <module>
    django.setup()
  File "/root/trader-master/lib/python3.11/site-packages/django/__init__.py", line 19, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
                      ^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/trader-master/lib/python3.11/site-packages/django/conf/__init__.py", line 102, in __getattr__
    self._setup(name)
  File "/root/trader-master/lib/python3.11/site-packages/django/conf/__init__.py", line 89, in _setup
    self._wrapped = Settings(settings_module)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/trader-master/lib/python3.11/site-packages/django/conf/__init__.py", line 217, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/imvolte/py3113/py/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'dashboard'

No module named 'dashboard',我留意到似乎需要这个文件夹:
image

@timercrack
Copy link
Contributor

这是trader模块,只负责交易逻辑,dashboard是单独的一个模块:https://github.com/BigBrotherTrade/dashboard

@ylsaker
Copy link

ylsaker commented Mar 18, 2024

dashboard.settings以及一些django的配置可以分享一下吗?

@timercrack
Copy link
Contributor

dashboard的repo里面有

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants