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: I changed like this: However, either way
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’m getting
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 have seen similar questions but their solutions don’t work on mine, so far I have tried these
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 and Pipfile.lock files That’s your
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 answers online and added Require all granted but still no luck. My other sites are up and
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 sudo python3
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 trying to run the following command inside my project: It gives following errors: Following command
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 Exchange site, you can leave a comment to explain where the question
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/MainProcess] beat: Starting… and nothing more after. Do you see what could I make wrong ? My celery.py: some_app/tasks.py: /etc/default/celeryd:
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 Ubuntu PostgreSQL server. When