Whatsapp 云 API 提供的访问令牌将在 24 小时后过期。有没有办法获得永久访问令牌?
Whatsapp 网站上有一个获取永久令牌的官方链接:了解如何创建永久令牌,但它是另一个兔子洞,没有说明如何获取永久访问令牌。
如果有人成功地做到了这一点,请帮助我和其他沮丧的开发人员:)
我正在使用django-registration app.我正在尝试创建一个社交网站.我是网站开发的新手.这是我得到的错误:
环境:
请求方法:POST请求URL:127.0.0.1:8000/accounts/register/
Django版本:1.4.2 Python版本:2.7.2
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'registration_defaults',
'django.contrib.admin',
'registration',
'polls')
Installed Middleware:
('django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/Library/Python/2.7/site-packages/registration/views.py" in register
187. new_user = backend.register(request, **form.cleaned_data)
File "/Library/Python/2.7/site-packages/registration/backends/default/__init__.py" in register
79. password, site)
File "/Library/Python/2.7/site-packages/django/db/transaction.py" in inner
209. return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/registration/models.py" in create_inactive_user
78. new_user = User.objects.create_user(username, email, password)
File "/Library/Python/2.7/site-packages/django/contrib/auth/models.py" in create_user
160. user.save(using=self._db)
File "/Library/Python/2.7/site-packages/django/db/models/base.py" …Run Code Online (Sandbox Code Playgroud) 我知道Kotlin从数据类继承有一些限制.在进行这次讨论时,我学到了更多.
因为Kotlin中的数据类与Java中的POJO类似.我们是否应该不遵循Java POJO类中的继承?总结一下,是不是因为Kotlin的限制我们不允许从数据类继承,或者如果你这样做,设计中存在缺陷.
把它分解成一个更简单的问题.从Java中的POJO类继承是错误的吗?