How to change project url in django -


i want deploy project in base url www.example.com/project_name. how can achieve this? can deploy www.example.com, need deploy in first way.

edit:
i'm using gunicorn production , running following command
gunicorn project_name.wsgi:application --timeout 600 --workers 10 --log-level=debug --reload --bind=0.0.0.0:9090

nginx entry is:

location /project_name {             proxy_pass http://192.168.0.101:9090;             proxy_set_header host $http_host;             proxy_set_header remote_addr $remote_addr;     } 

i solved problem setting script_name in nginx directives.

location /project_name {     proxy_pass http://192.168.0.101:9090;     proxy_set_header host $http_host;     proxy_set_header script_name /project_name;     proxy_set_header path_info /project_name;     proxy_set_header remote_addr $remote_addr; } 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -