This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import | |
from __future__ import print_function | |
import os | |
import django | |
import polib | |
from django.conf import settings | |
from django.core.management.base import BaseCommand, CommandError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from socket import (socket, AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_REUSEADDR, | |
SO_BROADCAST) | |
from struct import pack, unpack | |
UDP_IP = "127.0.0.1" | |
UDP_PORT = 6454 |