defnngj / guest Goto Github PK
View Code? Open in Web Editor NEW发布会签到系统
发布会签到系统
https://github.com/defnngj/guest/blob/master/sign/views_if_sec.py
auth_parts = base64.b64decode(auth[1]).decode('utf-8').partition(':')
应该是
auth_parts = base64.b64decode(auth[1]).decode('utf-8').split(':')
第90页。
In guest/sign/templates/sign_index.html, lost {% csrf_token%} cause the exception.
很感谢您写的书,很详实,功能都能重现。
能提供你的电子邮箱么?我在网上找了很久,都没有找到你的邮箱。
我的电子邮箱是: [email protected]
Traceback (most recent call last):
File "G:/PycharmProjects/Django/guest-master/tests/interface_AES_test.py", line 39, in test_aes_interface
result = r.json()
File "D:\Anaconda3\lib\site-packages\requests\models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "D:\Anaconda3\lib\json_init_.py", line 354, in loads
return _default_decoder.decode(s)
File "D:\Anaconda3\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "D:\Anaconda3\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
不知道问题出在哪里,代码都比对过了,就是不行
views.py中的event_manage函数的Event.objects.all()提示错误。
Unresolved attribute reference 'objects' for class 'Event' less... (Ctrl+F1)
Inspection info: This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items.
event_manage.html中的{% load bootstrap3 %}直接在页面显示了{% load bootstrap3 %}
if server_sign != client_sign:
return "sign fail"
else:
return "sign sucess"
格式有问题,if应该有空格。
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.