Git Product home page Git Product logo

guest's Issues

执行interface_AES_test.py的时候result = r.json()会报错

ERROR: test_aes_interface (main.AESTest)
test aes interface

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)

不知道问题出在哪里,代码都比对过了,就是不行

P189 代码有问题

if server_sign != client_sign:
   return "sign fail" 
   else:
         return "sign sucess"

格式有问题,if应该有空格。

views.py中的event_manage函数的Event.objects.all()提示错误

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.

sign_index.html lost {% csrf_token%}

第90页。
In guest/sign/templates/sign_index.html, lost {% csrf_token%} cause the exception.

很感谢您写的书,很详实,功能都能重现。

能提供你的电子邮箱么?我在网上找了很久,都没有找到你的邮箱。
我的电子邮箱是: [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.