manage.py

Electron Problem runing manage.py runserver

Electron Problem runing manage.py runserver Question: I’m developing a web app, but just yesterday when i try to run manage.py wiht runserver appeared to me this error "(electron) Sending uncompressed crash reports is deprecated and will be removed in a future version of Electron. Set { compress: true } to opt-in to the new behavior. …

Total answers: 2

How to execute code in the Django shell by an external python script?

How to execute code in the Django shell by an external python script? Question: What I want to achieve: I would like to create a python script to deactivate Django users in the database from the CLI. I came up with this: $ sudo python manage.py shell >>> user = User.objects.get(username=FooBar) >>> user.is_active = False …

Total answers: 7

django change default runserver port

django change default runserver port Question: I would like to make the default port that manage.py runserver listens on specifiable in an extraneous config.ini. Is there an easier fix than parsing sys.argv inside manage.py and inserting the configured port? The goal is to run ./manage.py runserver without having to specify address and port every time …

Total answers: 18