By ololololo
So I’ve spent the whole night to get my existing django project to work with this image. Some problems remained:
django_project?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/syslog as 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][0]['addr'])
return ip_list
# Discover our IP address
ALLOWED_HOSTS = ip_addresses()
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Honestly the “one click” Django droplet does not really work, and it’s definitely not one click, I was trying to get it working all day, and in the end just started a fresh ubuntu install and set it up myself. I DON’T RECOMMEND using this droplet… Here is a pretty straight forward tutorial http://rahmonov.me/posts/deploy-a-django-app-to-digitalocean/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.