[Solved]-Is it possible to trick pip install –find-links into using a downloaded sdist for –editable requirements?

4👍 While it doesn’t appear that this is strictly possible using PIP, there is a workaround that accomplishes the same thing. The workaround is to automatically generate a second requirements file from the original requirements file and sdists directory (to be used only for that directory). A simple implementation might look something like this (save … Read more

[Solved]-How did you setup your Django dev environment?

2👍 I have a public repo on GitHub available here: https://github.com/FlipperPA/djangovagrant Instructions from the README.md: Django / Python / MySQL This is a Vagrant project for Django development. This does not yet support berkshelf or librarian; all necessary repos are included in ‘cookbooks’. Prerequisites, all platforms: Virtualbox https://www.virtualbox.org/wiki/Downloads Vagrant http://downloads.vagrantup.com/ Pre-requisites, Windows only: git-bash ruby … Read more

[Solved]-Django session expires at browser close OR after time

4👍 ✅ As Jiaaro suggested in this answer you can use SESSION_EXPIRE_AT_BROWSER_CLOSE and set a timestamp on session at each request and add a custom Middleware to handle the inactivity. 👤Amyth Setting up Django on Google App Engine for DataStore 0👍 From docs https://docs.djangoproject.com/en/1.8/topics/http/sessions/#browser-length-sessions-vs-persistent-sessions Some browsers (Chrome, for example) provide settings that allow users to … Read more

[Solved]-Setting up Django on Google App Engine for DataStore

4👍 The djangae project seems to be what you’re looking for. From their documentation: Djangae (jan-gee) is a Django app that allows you to run Django applications on Google App Engine, including (if you want to) using Django’s models with the App Engine Datastore as the underlying database. It has a Database backend that supports … Read more

[Solved]-Postgres – cannot drop database using psycopg2

4👍 ✅ Here is what happened. One of the imported classes had a decorator that was opening the connection. This is a standard Django decorator transaction.atomic (I actually incorrectly applied it to a class as opposed to a method). Apparently it is executed during the import process, opening a connection to the postgres DB. 👤Nick … Read more

[Solved]-502 Bad Gateway from relocated instance on AWS EC2

3👍 ✅ Effectively … Environment variables were the culprits (and me, for not realizing), they were not configured properly therefore Django crashes when Gunicorn tries to run it. And I solved this problem by checking all environment vars and setup properly according to my instance EC2 … thnks so much to @Serj Zaharchenko for the … Read more

[Solved]-Django ModelSerializer with ImageFIeld and HTTPS

4👍 ✅ Please consider adding proxy_set_header X-Forwarded-Proto https; inside of your Nginx virtual host file i.e conf file located within /etc/nginx/sites-available/. So, in a nutshell, your conf file may look like this: server { listen 443 ssl; server_name example.com www.example.com; root /var/www/html/static_files/; client_max_body_size 4G; proxy_pass_header Server; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto https; proxy_redirect off; proxy_set_header … Read more