S
S
Sergey Nizhny Novgorod2015-12-04 13:13:15
Django
Sergey Nizhny Novgorod, 2015-12-04 13:13:15

How to implement access to paid content in django?

Guys, hello everyone. I need help with the selection of a technology stack and logic for the project.
Concept:
There is a service where people are offered educational articles in the form of courses. People can watch a certain amount for free, and for everything else you need to register and pay for access. In general, the functionality repeats netology.ru partially, of course.
Here, I'm writing this whole thing on django and I have a question:
I want to bind this whole thing to the status of the client and throw it into the database. Tasks:
1) How to throw a person into the database and assign rights to him.
2) How to hide content and give it to those who have it.
3) How to send a payment so that it changes the status of the client?
Perhaps the questions are stupid, but something I'm at a loss now. Please point me in the right direction.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2015-12-04
@syschel

1. Django
2. Django
3. Django + payment system API.

I
IvanOne, 2015-12-04
@IvanOne

Permission mixins appeared in Django 1.9, if I'm not mistaken they will help you in restricting access to content, well, you can limit it even without it, the last question depends on the payment system you have chosen, usually payment systems send a request to the server indicating the payment status and all that, for example, there is even an application for django for robokassa.

V
Vladimir, 2015-12-04
@vintello

I would start digging towards decorators.
very well this topic is covered for login required - often pops up
for example, you can do something like this , but the function will be for your task

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question