Django-How to deny access to a logged user directly to a specific URL -


We need some sort of system to allow / deny access to some of my URLs.

For example, we want to make some kind of magician.

The user inputs the first item (one screen) on the first screen, and then press "continue" Now we get the data And redirect to a second screen (B screen), where we should enter the second object to the user. The wizard goes ... The problem is that if we do this, then the user can write a B URL on the browser and B can access the screen. The user has made a login, but still, we do not want him to go there without going through a screen.

We do not know how to achieve it or to find it in the internet. We only know about the user session to do this.

Is there any other way? Some help?

Thanks in advance.

I think the foreign key solution is you get 'A' as the foreign key of 'B' And the 'A' id in the 'B' URL in the form of the argument 'code' url (r '^ a / (? P & lt); a_id & gt; [0- 9] +) In this way the first user data will be stored in the database in 'A', then 'B' will be available through ID. foreign key.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -