allow only registered users to see content function
 

Hello,

I have this option ticked from the settings: "allow only registered users to see content" so as to it a closed site.

Now, on registration page, i wrote code to send user a consent form by using django send_mail function. Here is the problem, if i have that option above ticked, when this new code tried to send email, i was redirected to the login page (it returns me please login page after POST). Is there any way i can by-pass this option once so i can successfully send the email?

Thanks.

-Lidya

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
lidyaagustina's avatar
11
lidyaagustina
asked 10 years ago

Comments

see more comments