Thursday, December 28, 2017

Re: how to install django on cpanel

Hi Sakkhar,

Django can "run" in any directory. You need to install it somewhere on your system (we use /usr/local/<company> here) and then wrap the code around a WSGI exposer (like uwsgi or gunicorn). Then you "plug" your webserver to the wsgi exposer via socket or http port.

It's not like any PHP-like frameworks, which you give the files directly to the webserver and it does whatever it is needed (unless you're using mod_wsgi, which was deprecated years ago towards the use of uwsgi/gunicorn.

On Thu, Dec 28, 2017 at 11:06 AM, sakkhar saha <sakkhar.saha2010@gmail.com> wrote:
What directory do I need to put the files in?
I tried public_html but when I put the files there and clicked on setup.py, it didn't start the script.

--
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/dff9485d-477a-41a1-93b7-f41b6a2324f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Julio Biason, Sofware Engineer
AZION  |  Deliver. Accelerate. Protect.
Office: +55 51 3083 8101  |  Mobile: +55 51 99907 0554

--
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/CAEM7gE1wqF1RGBinJRLmWCmyUaBhGfz8Ji%3DHCSeN4Z-R%3Dg7RNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment