Comments (3)
You are correct, the example is wrong. Please use timedelta, the doc shall be corrected.
from django-rest-knox.
Please update the documentation.
REST_KNOX = {
...
'TOKEN_TTL': datetime.timedelta(days=10)
...
}
from django-rest-knox.
this was fixed in c928368 and will be in the upcoming bugfix release
from django-rest-knox.
Related Issues (20)
- Better automated schema generation? HOT 1
- support for auto-refresh, up to a maximum? HOT 2
- Hash algorithm from example docs raises error HOT 2
- Next release for this package HOT 9
- Documentation includes mention of deleted token salting HOT 3
- TOKEN_LIMIT_PER_USER not taken into account HOT 2
- Can we filter AuthToken on token_key and digest in authenticate_credentials? HOT 5
- Doc Question: Where is 'urls(r'api/auth/', include('knox.urls'))'? HOT 2
- Query Regarding Stable Branch for Production Use HOT 1
- Social auth support #NotAnIssue HOT 1
- Issuing Token outside of LoginView HOT 1
- BasicAuthentication not working in Django Rest HOT 1
- Need maintainer access to put back master in a correct state 😇 HOT 1
- Return custom response when invalid token is given HOT 1
- Python 3.12 and django 5.0 compatibility HOT 1
- Unable to read timezone specified in settings.py HOT 1
- Overall project health improvements HOT 9
- Make sure to mention that old tokens no longer work when releasing! HOT 1
- AttributeError: 'Settings' object has no attribute 'KNOX_TOKEN_MODEL' HOT 6
- AttributeError: 'SHA512' object has no attribute 'update' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rest-knox.