gunerguner / stockmanager Goto Github PK
View Code? Open in Web Editor NEWAn easy way to manage your stock information
An easy way to manage your stock information
我在数据库里面加了用户名密码,还是无法登陆?
前端http://127.0.0.1/ 必须用这个访问,不能用localhost, 否则获取用户信息时将由于没有写携带cookie而返回302
如题,比如通达信的交割单可以批量导入么?
通过 python3 manage.py makemigrations
创建stockmeta 表
可以通过 python3 manage.py createsuperuser
设置用户密码
建议加入 README
你好,首先感谢你开发的记录网页。
在使用的时候遇到一些问题,想请教一下应怎么fix。
在登录之后出现
且在命令行中有
[ERROR][2021-10-02 10:34:46,995][log.py:230]Internal Server Error: /api/
Traceback (most recent call last):
File "/Users/linzehui/.local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/Users/linzehui/.local/lib/python3.7/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/linzehui/Desktop/stockManager/stockManager/backend/stockViews.py", line 27, in show_stocks
merged_data = stock_caculator.caculate_target()
File "/Users/linzehui/Desktop/stockManager/stockManager/backend/caculator.py", line 26, in caculate_target
to_return["overall"] = self.__caculate_overall_target(stock_list)
File "/Users/linzehui/Desktop/stockManager/stockManager/backend/caculator.py", line 332, in __caculate_overall_target
origin_cash = float(Info.objects.get(key="originCash").value)
File "/Users/linzehui/.local/lib/python3.7/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/Users/linzehui/.local/lib/python3.7/site-packages/django/db/models/query.py", line 437, in get
self.model._meta.object_name
backend.models.Info.DoesNotExist: Info matching query does not exist.
[02/Oct/2021 10:34:46] "GET /api/ HTTP/1.1" 500 82030
不知道作者是否遇到过,可否提示一下应怎么解决?
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.