How to make Django's devserver public ? Is it generally possible?

I'm currently trying out the Django framework and I would share/present/show some stuff I've made to my workmate/friends. I work in Ubuntu under Win7 via VMware. So my wish/desire is to send my...

How to add to the PYTHONPATH in Windows, so it finds my modules/packages?

I have a directory which hosts all of my Django apps (C:\My_Projects). I want to add this directory to my PYTHONPATH so I can call the apps directly. I tried adding C:\My_Projects\; to my Windows...

Django Shell No module named settings

I've deployed Django to Apache via mod_wsgi. Django is running fine when hosted from Apache. However, I'm trying to do some maintenance via manage.py, but when I try and run it, I get the...

Get protocol + host name from URL

In my Django app, I need to get the host name from the referrer in request.META.get('HTTP_REFERER') along with its protocol so that from URLs...

Django not collecting static files

Im trying to collect static files on django production hosting website: jumentosemuaresonline.com.br My configuration: DEBUG = False ALLOWED_HOSTS = [".jumentosemuaresonline.com.br"] STATIC_ROOT =...

restrict access to the admin url by ip in django with nginx and gunicorn

I am trying to restrict access to the admin section of my django app by using simple host-based access control in nginx. Unfortunately nginx does not seem to abide by the configuration...

Celery and RabbitMQ timeouts and connection resets

I'm using RabbitMQ 3.6.0 and Celery 3.1.20 on a Windows 10 machine in a Django application. Everything is running on the same computer. I've configured Celery to Acknowledge Late...

what is the difference between vagrant, docker, virtualenv or just a virtual machine?

I develop websites using python with django framework, I like to get things done fast. I used to use virtual machine or in the local host machine, recently went to vagrant, I am not sure if there...

Django wsgi Apache2: 'AH01630: client denied by server configuration'

I've followed this tutorial to deploy my django project : https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-debian-8 Why the static...

Django and AWS Simple Email Service

I'm attempting to get a django site up and running and I'm trying to enable django's standard password reset service. My site is hosted by AWS EC2, so I figured I would use AWS SES for my email...

DRF + CoreAPIClient + psycopg2 throws exception, Interface error: connection already closed

I'm writing some integration tests for a web API I build using Django Rest Framework and Django 1.11. My tests are passing when I use DRF's APIClient to send requests to my API endpoints, but when...

django.db.utils.OperationalError: (2005, "Unknown MySQL server host 'db' (-2)")

I'm trying run django with mysql in docker containers: version: '2' services: db: image: mysql:latest volumes: - ./db:/var/lib/mysql ports: - "3306:3306" ...

OperationalError at /admin/login/ (1698, "Access denied for user 'root'@'localhost'")

Yes, this is a common question in Stack Overflow but my problem is kinda different! I have a server on Digital Ocean. Os: Ubuntu 18.04 I was trying to host my django project on the apache server...

docker in docker localhost networking issue

I have a case where I want to do a quick healthcheck on a docker-compose up -d where I can successfully curl the endpoint being created by the compose file. Here is what the relevant parts of my...

Django Reset PW emails not sending on AWS

Difficult to phrase this question and what I've done as I don't know where the error is occuring. I'm using Django hosted on AWS Elastic Beanstalk and SES to send emails. (Only for password reset)...

React app throws 401 error when accessed through safari, but not otherwise

I have a react app hosted in an s3 bucket behind a cloudfront distribution. This talks to a django server. Login works correctly on all browsers (confirmation that credentials are correct, and no...

Django docker - could not translate host name "db" to address: nodename nor servname provided, or not known

I'm relatively new to Django and Docker and am following a tutorial to build a mini application. However, I'm getting stuck with the following error: django.db.utils.OperationalError: could not...

Django: send email via Office365

What I have: A domain purchased in webs.com (I'll call it contoso.com); An Office 365 account connected to that domain (my email address is something like [email protected]); A Django application...

Does kubectl port-forward ignore loadBalance services?

My Environment: Mac dev machine with latest Minikube/Docker I built (locally) a simple docker image with a simple Django REST API "hello world".I'm running a deployment with 3 replicas. This is my...

Flutter SocketException (SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 51500)

I am Using strapi.io open Source Node.js Headless CMS this is my code for registerpage void _registerUser() async { http.Response response = await...

Docker hyperkit process CPU usage going crazy. How to keep it under control?

Using docker (docker-compose) on macOS. When running the Docker containers and attaching Visual Studio Code (VSCode) to the active app container it can make the hyperkit process go crazy :( the...

Celery with Rabbit MQ Virtual Host not accepting tasks from app.tasks.py in Django

Help needed! PS: I have already created Virtual Hosts using this link Celery and Vhosts settings.py CELERY_BROKER_URL = 'amqp://flash:[email protected]:5672/flash' celery.py import...

Unable to connect to postgres database from django while running pytest

Django project and postgres are in different docker containers. I want to write the unit test cases for this application using pytest. I have implemented test cases using APIClient() along with...

deploy React and Django with Nginx and Docker

I'm trying to deploy my React build and Django API using Nginx and Docker. I'm still really new to deployment and have never hosted a website that would go into production so am a little at a...

Figuring out JSON memory leaks in Django

I am using Python 3 and Django 3.1.4 for a web application hosted on Heroku. I started experiencing R14 and R15 errors related to memory quota exceeding. The application involves a lot of API...

How to host multiple Django Project under sub domains with uWSGI and NGINX on single server?

I've been trying to deploy two Django projects on a single server using uWSGI and Unix socket Nginx, I've cross-checked the configuration it seems fine, but it behaves oddly. Let me give the...

403 Forbidden: AWS S3, Django, S3Boto3Storage, CKEditor

After several days of continuous attempts, I'm nearly ready to give up. I have a popular setup and I see many people have similar issues, but there is no comprehensive (and working!) answer. I get...

Google oAuth 2.0 API Authentication Error: Error 400 - redirect_uri_mismatch (does not comply with policy) DJANGO APP

I am trying to get my google authentication working on a Django app that is requesting Gmail and Calendar data. I have set up the oAuth API in the Google developer console and linked it with my...

Not able to connect to websocket using Nginx and Uvicorn

I built a docker container with Django, Uvicorn, Nginx and Redis, and am using django-channels but when I run this it says it cannot connect to the websocket and this is seen in the browser...

how to resolve (1045, "Access denied for user 'User'@'IP or host' (using password: YES)") when build django docker container?

Well, I have multiple databases in django project. One is default and second istest_dev. i have created docker container. and then everything went well till building the container. after that When...