Skip to content

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&#8217…

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…