django-login-history
django-login-history copied to clipboard
unable to pass IP_PLACEHOLDER into my testing module
Love the project guys!
I'm unable to test without it giving the error message:
from django.test import Client, TestCase
self.client = Client()
user_login = self.client.login(username=self.user.username, password="test3")
self.assertTrue(user_login)
ValueError: None does not appear to be an IPv4 or IPv6 address
I have the IP_PLACEHOLDER in my settings.py and test_settings.py but it doesn't feel like it's picking it up. I can't pass in the IP address to the Client object either.
Thank you!