Thanks. I got it working by adding
On Sunday, 7 May 2017 20:17:32 UTC+10, Tim Graham wrote:
-- from django.test.testcases import LiveServerThread
class FixedPortServerThread(LiveServerThread):
def _create_server(self, port):
return super(FixedPortServerThread, self)._create_server(port=8001)
class MyStaticLiveServerTestCase(StaticLiveServerTestCase):
server_thread_class = FixedPortServerThread
class TestGoogleLogin(MyStaticLiveServerTestCase):
...
On Sunday, 7 May 2017 20:17:32 UTC+10, Tim Graham wrote:
No. This is discussed in more detail on django-developers: https://groups.google.com/d/topic/django-developers/ J2nPccK9kT8/discussion
On Sunday, May 7, 2017 at 12:18:06 AM UTC-4, Simon McConnell wrote:Hi,
Is it possible to define the port for LiveServerTestCase in Django 1.11? Google requires a static address for OAuth authentication.
from docs:
Changed in Django 1.11:
In older versions, Django tried a predefined port range which could be customized in various ways including the DJANGO_LIVE_TEST_SERVER_
ADDRESS environment variable. This is removed in favor of the simpler "bind to port 0" technique.
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+unsubscribe@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/0877ef1c-25ce-4870-9bcd-863b78fa9487%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment