So I’ve spent the whole night to get my existing django project to work with this image. Some problems remained:
Some solutions I’ve found. Probably they will help others:
/var/log/syslog. I did it this way:
7z a /var/log/syslog.7z /var/log/syslogas root and then downloaded
/var/log/syslog.7z. You have to install 7zip first.
/home/django/django_project. I’ve worked as root. Fixed it with
# cd /home # chown -R django:django django
import netifaces def ip_addresses(): ip_list =  for interface in netifaces.interfaces(): addrs = netifaces.ifaddresses(interface) for x in (netifaces.AF_INET, netifaces.AF_INET6): if x in addrs: ip_list.append(addrs[x]['addr']) return ip_list # Discover our IP address ALLOWED_HOSTS = ip_addresses()
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.