-1

I have a small project using Raspberry Pi 3 device and using Django for my application. I follow this tutorial but sadly it can't be used for 16.04. I'm not using apache because of my device, i want to use runserver because of the limitations of my unit.

Thanks

Nethan
  • 1
  • 1

1 Answers1

1

You shouldn't use manage.py runserver for production servers. You should use something like WSGI or Gunicorn: How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 14.04

Nils Werner
  • 34,832
  • 7
  • 76
  • 98
  • Thanks for this Nils. – Nethan Mar 18 '17 at 01:45
  • I follow this [tutorial](https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04), i'm not using virtualenv. In the ExecStart i use `ExecStart=/usr/bin/gunicorn --workers 2 --bind 0.0.0.0.8080 mysite.wsgi:application` but it gets error, /usr/bin/gunicorn: No such file or directory. – Nethan Mar 18 '17 at 05:49
  • I used virtualenv for this. Thanks again. – Nethan Mar 20 '17 at 02:22