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 <cherngyo...@gmail.com> kirjoitti:

> 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 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, with different port
>>
>>
>> As far from what i know, i can change the port number in the settings.py
>> database section.
>>
>> DATABASES = {
>>     'default': {
>>         'ENGINE': 'django.db.backends.postgresql',
>>         'NAME': 'Project',
>>         'USER': 'admin',
>>         'PASSWORD': 'pass1234',
>>         'HOST': 'localhost',
>>         'PORT': '',
>>     }
>> }
>>
>> Do i change the port number here ? As default is http://127.0.0.1:8000/
>>
>> So i change the 'PORT': '8001', but got this error instead:
>> could not connect to server: Connection refused (0x0000274D/10061)
>>         Is the server running on host "localhost" (127.0.0.1) and
>> accepting
>>         TCP/IP connections on port 8001?
>>
>> Is there a way to set it up so i can run 2 different django project with
>> different port number ?
>>
> --
> 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.
> 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/5fff95a9-b8c7-4943-a1c2-d761dedca4f0%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5fff95a9-b8c7-4943-a1c2-d761dedca4f0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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

Reply via email to