1251240000 / stockvisualization Goto Github PK
View Code? Open in Web Editor NEW基于Django框架的Tushare股票数据可视化平台
基于Django框架的Tushare股票数据可视化平台
难道必须要配nginx吗?
root@13121212:~/StcokVisualization# python3 manage.py collectstatic
You have requested to collect static files at the destination
location as specified in your settings.
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.7/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.7/dist-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 353, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 188, in handle
collected = self.collect()
File "/usr/local/lib/python3.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 114, in collect
handler(path, prefixed_path, storage)
File "/usr/local/lib/python3.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 343, in copy_file
if not self.delete_file(path, prefixed_path, source_storage):
File "/usr/local/lib/python3.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 249, in delete_file
if self.storage.exists(prefixed_path):
File "/usr/local/lib/python3.7/dist-packages/django/core/files/storage.py", line 308, in exists
return os.path.exists(self.path(name))
File "/usr/local/lib/python3.7/dist-packages/django/contrib/staticfiles/storage.py", line 43, in path
raise ImproperlyConfigured("You're using the staticfiles app "
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
能做成前后端分离的吗?
~/StcokVisualization# python3 manage.py refresh_data
Unknown command: 'refresh_data'
Type 'manage.py help' for usage.
这个命令无法运行呢,前面命令都正常
大佬求助,怎么样可以不部署在服务端的前提下启动整个项目呢
tushare有频率限制和请求次数限制的,建议还是不要把token共享了吧,不过不共享整个项目都没数据,会垮,看老哥的取舍吧
NaN了...
When run the command I got follow errors:
Unknown command: 'refresh_data'
Type 'manage.py help' for usage.
root@131:~/StcokVisualization# python3 manage.py refresh_data
[Getting data:]#Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.7/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.7/dist-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 353, in execute
output = self.handle(*args, **options)
File "/root/StcokVisualization/ui/management/commands/refresh_data.py", line 26, in handle
today_all = ts.get_today_all()
File "/usr/local/lib/python3.7/dist-packages/tushare/stock/trading.py", line 317, in get_today_all
df = _parsing_dayprice_json('hs_a', 1)
File "/usr/local/lib/python3.7/dist-packages/tushare/stock/trading.py", line 131, in _parsing_dayprice_json
df = pd.DataFrame(pd.read_json(js, dtype={'code':object}),
File "/usr/local/lib/python3.7/dist-packages/pandas/io/json/_json.py", line 592, in read_json
result = json_reader.read()
File "/usr/local/lib/python3.7/dist-packages/pandas/io/json/_json.py", line 717, in read
obj = self._get_object_parser(self.data)
File "/usr/local/lib/python3.7/dist-packages/pandas/io/json/_json.py", line 739, in _get_object_parser
obj = FrameParser(json, **kwargs).parse()
File "/usr/local/lib/python3.7/dist-packages/pandas/io/json/_json.py", line 849, in parse
self._parse_no_numpy()
File "/usr/local/lib/python3.7/dist-packages/pandas/io/json/_json.py", line 1093, in _parse_no_numpy
loads(json, precise_float=self.precise_float), dtype=None
ValueError: No ':' found when decoding object value
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.