Log in

have user automatically logged in

  • 23 Mar

hi thanks in advance!
I wanted to direct users to spirit forum from another website, and once they proceed to spirit from my other website, I want them to be automatically logged in and a response from the previous website posted in the forum.

Can you give some pointers on how to do this?

Thanks!!

nitelyEsteban Castro Borsani
  • 1
  • 23 Mar

I wanted to direct users to spirit forum from another website

From another domain or same domain?
Is the other website using Django?
Do they both share the same database?

  • 24 Mar

yeah, the other website is using Django, and i can run them on the same domain with different ports, but currently they're using different databases, should i make them use the same database?

nitelyEsteban Castro Borsani
  • 24 Mar

should i make them use the same database?

It would be way easier that way. However, both Django versions must match. It would be even better if you can run everything in the same Django instance. Having Spirit on a sub-path (i.e mysite.com/forum/). Check the example app urls.py.

Once you have all of that setup, then you would just have to integrate the comment view into whatever view you have now. Or just add a reply button if possible that redirects to the Spirit response view. Not sure exactly what's the use-case, though.

Reply