# echo "127.0.0.1 shop_slug.localhost" >> /etc/hosts
server {
listen 27796;
server_name myurl.com;
root /home/ucwsri/webapps/static_media_ucwsri_nginx;
location / {
autoindex on;
}
location ^~ /protected/ {
internal;
}
response = HttpResponse()
url = "/protected/some-file.pdf"
response['X-Accel-Redirect'] = url
return response
cd projects/site
virtualenv virtalenv --no-site-packages
. virtualenv/bin/activate
pip install -r requirements.txt
pip freeze
pip freeze > requirements.txt
как-то так лучше "разворачивать" Накинул еще денег
урод
как мне быть?перестать задавать вопросы тут не по теме