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 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/path/to/resource
> http://companyname.com/django-app-2/path/to/resource
>
> where /path/to/resource could be identical but would actually hit 
> different projects deployed based in the django-app-[1,2] bit in the URL.
>
> AVOID USING DEVSERVER FOR ANYTHING IN PRODUCTION
>

-- 
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/96d392d5-a3db-4d33-9e4f-5318402038a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to