Did you use the login_required decorator on your view? Authentication is
something you have to specify you want for a page, it is not assumed.

https://docs.djangoproject.com/en/1.9/topics/auth/default/#the-login-required-decorator

On Thu, Jun 2, 2016 at 3:54 AM, prabhat jha <prabhat.jha....@gmail.com>
wrote:

>  i have created a login page in django,where user will authenticate
> through c++ server i.e running in background.
> i made communication between c++ server and python server through name
> pipe(ipc).everything is working fine.
> but if user will type link of homepage without authentication of login
> page,this page is open.
>
> --
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6234c1fe-f1f6-4056-b9b5-3219c85ccebe%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/6234c1fe-f1f6-4056-b9b5-3219c85ccebe%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD4ANxU2rV48aQqFsqpL162J4s3bVh1P3wdBp%2B9EfAT4ww6LJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to