My environment OS: AWS linux python 3.7 psql (PostgreSQL) 13.3 I am trying to use PostgreSQL with Django. I changed setting.py like below: I created a password for PostgreSQL and I successfully logged in as this user. However, when I tried to execute this: I got this error: pg_hba.conf looked like this first:…
Tag: django
Django – can’t run server as sudo
I’m creating a soft AP in order to configure my raspberry wireless from it. I alread have an script to create a hotspot, a dhcp server and now i need to run a django app using sudo. (Yes, using sudo. I’m waking up my django server from my python script, and the script needs to run as sudo) I’…
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-xaum7z8f/supervisor/
I’m setting up an existing project and when I am running pip install -r requirements.txt After every dependency is installed it gives this error: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-d0j9czw9/supervisor/ This is the list of complete installation I h…
gunicorn command not found, but it’s in my requirements.txt
I am deploying a Django app on Heroku , which is successfully deploying, but I am getting the following error when I want to view the app on the provided http link. gunicorn is in my requirements.txt file. Here is my requirements.txt file: I also have Pipfile and Pipfile.lock files. Answer I also have Pipfile…
AH01630: client denied by server configuration in Django
My website is working but it is not displaying static files present in my project folder. I am getting this error AH01630: client denied by server configuration: /home/ubuntu/project/static/js/homepage.js, referer: http://test.com/home/ Here is the configuration for static in my .conf file: I have followed an…
Could not run Ec2-server on port 80
I could run the server on port 8000 but when i try to use 80 with python manage.py runserver myip:80 I get: You don’t have permission to access that port. If I use sudo python manage.py runserver myip:80 I get: If I write python in the console I get version 3.5.5 and my env is activated. EDIT: Using sud…
Startup with Django runserver error
I am starting up with Python-Django in Ubuntu 18.04. I have python3 installed. python3 –version says Python 3.5.2 After installing Python, I installed Django as below: I also have Django installed. django-admin –version says 2.0.5 In my project, startproject worked successfully, but when I am tryi…
What is the best way to give a Linux command from one machine to a different machine? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Django – Celery 4.1 with django-celery-beat/rabbitmq : Nothing?
I followed the tutorial on http://docs.celeryproject.org/en/latest/ and I am on virtualbox (Xubuntu 16.XX TLS), Django 1.11.3, Celery 4.1 . rabbitmq 3.6.14, Python 2.7 . and when I started the daemonization with the init-script: celerybeat (with /etc/default/celeryd config file) [2017-11-19 01:13:00,912: INFO…
Create PostgreSQL Database on another Server using Django
I have a working local environment using Django 1.11 with a PostgreSQL 10 database running on Linux Mint. I am trying to take a copy of this environment and install it on two Ubuntu 16.04 development servers: one for the web server and the other for the SQL server. The problem is running Django with the Ubunt…