in your class where you defined your 'private' link, you just redirects him 
everytime he clicks on it, or you make and if-else that is bound to the IP 
of the admin, so everytime the user clicks on it, he gets a 404 thinking 
that the link dont exist, else, the admin gets the right page.

Le vendredi 10 octobre 2014 13:09:12 UTC+1, robert brook a écrit :
>
> If I have 2 urls coded in the file for example
>
> url(r'^abc/$', views.abc),
> url( r'^abc/def/$', views.def),
>
> And the first url should be accessible by typing it into the browser.
>
> The 2nd url should only be accessible from the application, not by virtue 
> of a user typing it into the browser.
>
> How do I accomplish that?
> How do I capture that and reroute it to a valid page?
>
> Thanks is advance
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4e1bd857-b655-45e9-bcab-9805fdadf199%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to