Comments (2)
@enguerran
Je suis en train de plancher sur le système de votes et étant donné qu'ils seront tous anonymes, je compte enregistrer dans l'API l'adresse IP et un cookie pour déterminer si l'utilisateur a déjà voté.
Je me pose une question car je ne suis pas sûr d'un truc:
L'adresse que je vais récupérer via la variable REMOTE_ADDR sera celle du serveur où se trouvera le front, et pas celle de l'utilisateur qui clique exact ? Si c'est le cas je ne vois pas comment faire…
from dicodigital-api.
@harmo
C'est une variable Django ça, REMOTE_ADDR
?
J'imagine que cette réponse conviendra pour récupérer l'adresse IP du end user : https://stackoverflow.com/questions/4581789/how-do-i-get-user-ip-address-in-django
from dicodigital-api.
Related Issues (14)
- Put the project on Travis
- Deployment script
- Data import HOT 1
- Word's slug related links | MultipleObjectsReturned exception HOT 3
- Index for word resource HOT 2
- Random word
- Random definition HOT 1
- 403 sur /docs
- Random word | ValueError
- Modération de l'ajout
- Top words
- Ajout d'un Dockerfile HOT 1
- Rechercher sur un label
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 dicodigital-api.