django-login-history icon indicating copy to clipboard operation
django-login-history copied to clipboard

unable to pass IP_PLACEHOLDER into my testing module

Open drgrubman opened this issue 4 years ago • 0 comments

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!

drgrubman avatar Jan 05 '21 03:01 drgrubman