Noted, thanks
On Tuesday, January 16, 2018 at 1:31:20 PM UTC+9, chern...@gmail.com wrote:
>
> As what the title said, is it possible to run 2 django project at the same
> time ?
>
> My task is this:
> Integration of django 1 api and django 2 api, to setup two django app, on
> same server / PC,
Hi,
You shouldn't use the runserver command in production - THAT is bad. There
are several reasons for this, see here:
https://docs.djangoproject.com/en/2.0/ref/django-admin/#runserver.
The main reasons are that there are no security checks, it reloads if
changes are made in the code and it is n
wait, i configure the manage.py by inserting this
# Override default port for `runserver` command
from django.core.management.commands.runserver import Command as runserver
runserver.default_port = "8001"
Is this bad ?
On Tuesday, January 16, 2018 at 8:29:44 PM UTC+9, Jason wrote:
>
> you need
you need to configure your server to handle that pass through from web
request to django. With apache + mod_wsgi, it would be defined as a
virtualhost in the conf files. Nginx and gunicorn would be done in nginx
configuration.
You could set it up such that
http://companyname.com/django-app-1
Hi.
Please note that runserver command is only meant to ease developing your
site with Django. In development you can run development server like:
./manage.py runserver 127.0.0.1:8000
./manage.py runserver 127.0.0.2:8001
But when deploying your site(s) to production procedure is different and
de
Define ip and port number is this link right :
https://docs.djangoproject.com/en/dev/ref/django-admin/#examples-of-using-different-ports-and-addresses
Where i have to enter this :django-admin runserver 1.2.3.4:8000
to change its port number and ip ?
On Tuesday, January 16, 2018 at 4:12:50 PM UTC
Then what must i do if i wanted to do it for production side? Is there any
link/guide about how to change it ?
On Tuesday, January 16, 2018 at 4:00:37 PM UTC+9, Antonis Christofides
wrote:
>
> Hello,
>
> DATABASES['...']['PORT'] is the port to which the database server is
> listening (your djan
Hello,
DATABASES['...']['PORT'] is the port to which the database server is listening
(your django app is a client of the database, and it connects to that port in
order to access the database); it has nothing to do with what you want.
AFAIK specifying the port number in "runserver" is the only w
No. Development server is not meant to be final serving solution and it
doesn't have any configuration besides the command line.
16.1.2018 6.37 kirjoitti:
> I found another solution which is running this command
>
> manage.py runserver 8005
>
> But is it possible to do it without writing the com
Hi.
If you want to run two devservers just define ip and port number when
launching devserver.
16.1.2018 6.32 kirjoitti:
> As what the title said, is it possible to run 2 django project at the same
> time ?
>
> My task is this:
> Integration of django 1 api and django 2 api, to setup two djan
I found another solution which is running this command
manage.py runserver 8005
But is it possible to do it without writing the command and just do it in
the settings.py or other file ?
On Tuesday, January 16, 2018 at 1:31:20 PM UTC+9, chern...@gmail.com wrote:
>
> As what the title said, is it
11 matches
Mail list logo