Dear MH,
I also stuck here.
When I run *~*# python3 -m pip install mod-wsgi
I got the same error message: RuntimeError: The 'apxs' command appears not
to be installed or is not executable. Please check the list of
prerequisites in the documentation for this package and install any missing
Apa
Reach out to me privately, I'll assist you further.
On Fri, Mar 6, 2020 at 12:32 AM 'MH' via Django users <
django-users@googlegroups.com> wrote:
> Dear Omar
>
> Finally I figured out, which of my gunicorn versions belonged to the right
> python3 that I invoked earlier. Now it seems to start. I w
Dear Omar
Finally I figured out, which of my gunicorn versions belonged to the right
python3 that I invoked earlier. Now it seems to start. I write seems
because in the browser it now immediately gives me an error that it cannot
find a certain module "docx". I will come back to that in a differ
Zdravím vás, myslíme že přístup byl udělen jen pár lidem kteří odvádí dobrou práci, jelikož by bylo dost nebezpečné udělit přístup všem, tak pokud vas mohu poprosit obraťte se s žádostí na ně. A pokud uznaji za vhodné že je to potřeba, provedou opravu, nebo doplnění. Pokud se mýlím, tak mě kontaktu
If I am not totally mistaken it could be that gunicorn wants to work with
python2.7 while I did everything with python3. But how could I direct
gunicorn to take python3?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
Make sure you're in the root of the project and run:
gunicorn -w 4 project.wsgi:application
you dont need to change anything.
On Thu, Mar 5, 2020, 10:51 PM 'MH' via Django users <
django-users@googlegroups.com> wrote:
> Is there anything particular hat I have to write into that wsgi.py file?
>
Is there anything particular hat I have to write into that wsgi.py file?
--
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+unsubscr...@googlegroups.co
Dear Omar
but would that help me right now? Besides the problem of finding the right
pip, I mean? As you can see, even now my gunicorn won't work :(
On Thursday, March 5, 2020 at 4:04:46 PM UTC+1, Omar Abou Mrad wrote:
>
> As of Python 3.3 virtual environments are builtin, it would be wise to
gunicorn -w 4 wsgi:application
[2020-03-05 15:55:51 +] [4472] [INFO] Starting gunicorn 19.9.0
[2020-03-05 15:55:51 +] [4472] [INFO] Listening at: http://127.0.0.1:8000
(4472)
[2020-03-05 15:55:51 +] [4472] [INFO] Using worker: sync
[2020-03-05 15:55:51 +] [4483] [INFO] Booting wor
As of Python 3.3 virtual environments are builtin, it would be wise to get
used to them.
https://docs.python.org/3/library/venv.html
On Thu, Mar 5, 2020 at 4:57 PM 'MH' via Django users <
django-users@googlegroups.com> wrote:
> /volume1/@appstore/py3k/usr/local/bin$ ./pip install gunicorn
> Defa
/volume1/@appstore/py3k/usr/local/bin$ ./pip install gunicorn
Defaulting to user installation because normal site-packages is not
writeable
Requirement already satisfied: gunicorn in /volume1/homes/admin/.local/lib/
python3.5/site-packages (20.0.4)
Requirement already satisfied: setuptools>=3.0 in
To be quite honest, this is really challenging for me, because the synology
OS drove me nuts. I am under the impression that I have multiple
installations of python and pip running now.
In order to get an overview, I will now try to find every pip on my system
and to install gunicorn everywher
gunicorn is yielding the same error as the standard python command I gave
you,
whereas you use python3 to fire up the django development server. I'll
venture
a guess and say the problem is due to the environment.
Are you using any virtual environment or installing system wide?
How did you install
Dear Omar
python -c "import django.core.wsgi" && echo "Yup, works!"
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named django.core.wsgi
but
python3 manage.py runserver 0:8000
Watching for file changes with StatReloader
Performing system checks...
System check
Is django installed properly?
Are you still able to use runserver?
What happens when you run the following?
python -c "import django.core.wsgi" && echo "Yup, works!"
also, looking further into your error log, make sure you're in the proper
directory.
(i may have given you the wrong one earlier, r
Somehow I cannot write everything into one post that I wanted to reply.
Here comes the rest of my original post.
gunicorn -w 4 wsgi:application
[... continued ...]
Traceback (most recent call last):
File "/opt/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583, in
spawn_worker
File
Thanks Omar,
but do I have to write something into that wsgi file?
gunicorn -w 4 wsgi:application
[2020-03-05 12:55:09 +] [29297] [INFO] Starting gunicorn 19.9.0
[2020-03-05 12:55:09 +] [29297] [INFO] Listening at: http://127.0.0.1:8000
(29297)
[2020-03-05 12:55:09 +] [29297] [INFO]
Thanks Omar,
but do I have to write something into that wsgi file?
gunicorn -w 4 wsgi:application
[2020-03-05 12:55:09 +] [29297] [INFO] Starting gunicorn 19.9.0
[2020-03-05 12:55:09 +] [29297] [INFO] Listening at: http://127.0.0.1:8000
(29297)
[2020-03-05 12:55:09 +] [29297] [INFO]
Change your working directory to "project" (the directory containing
wsgi.py) and use:
gunicorn -w 4 wsgi:application
It should work.
On Thu, Mar 5, 2020 at 10:14 AM 'MH' via Django users <
django-users@googlegroups.com> wrote:
> Could anyone tell me how to start correctly the unicorn (integra
Could anyone tell me how to start correctly the unicorn (integration)?
--
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+unsubscr...@googlegroups.com.
Hi Omar
Actually I do not know why apache is better than the development webserver
from django or gunicorn, but I wanted to give it a try. The installation
worked.
Now I am not sure what I am doing wrong:
gunicorn project/wsgi.py:application
[2020-03-04 13:46:26 +] [28939] [INFO] Starting
[Alternative] While this shouldn't be considered as a way to circumvent
learning how to
configure apache or nginx to serve/proxy python apps, you can also consider
sticking
to pure python dependencies (if this is for personal use). you can ignore
the webserver
completely and simply opt for [1] guni
Dear Andreas
I want to build a little system, which consists of several django apps that
help me in my daily life. But I don't want to upload documents about
insurances and stuff to any cloud. Therefore I wanted a solution on premise
and the NAS seemed to be a good choice. Could be wrong about
Dear nitish
Thanks for your reply. I guess it is kind of a linux that Synology uses,
but it is different from other distros. So many advice on the internet
builds upon the ability to install packages via apt-get or ipkg, but both
are not available here. Somehow (really only somehow) I got entwa
Hi,
I don't think this is actually possible. Django runs python and not only
simple html. Nginx and apache are simple webservers. So unless you can get
good access to the terminal on the diskstation - I wouldn't even try this.
Why do you want to have the application running on a disk station?
Reg
Hi MH,
what flavour of Linux you are using. if it is centos/redhat you can use
below steps.
$sudo yum install httpd24-devel.x86_64 gcc git
$sudo python3.5 -m pip install mod-wsgi
once installed you need to add site configuration and permissions to your
Django code.
$ cd ~/django_a
Hi there
I am rather a newbie, but after some problems I got django installed on my
Synology Diskstation. So, I ignored many other problems and am very happy
that I built my very first, very simple app. And now I would like to move
it from the development stage to the production stage. Obviousl
27 matches
Mail list logo