Questions tagged [django]

Django is an open source server-side web application framework, written in Python. It is designed to reduce the effort required to create complex data-driven websites and web applications, with a special focus on less code, no-redundancy and being more explicit than implicit.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

Is Heroku using Dedicated Servers

Is Heroku using Dedicated Servers? I am using Django and I want to know whether Heroku is using Dedicated servers or not, and what Django Deploy platforms use Dedicated Servers, Thanks.
0
votes
1answer
12 views

multiple django + reactjs, two web server setting?

I have multiple project set )WebApp_A Django_A + ReactJs_A )WebApp_B Django_B + ReactJs_B For now I am using apache for ReactJS_B and use nginx for Django_A mydomain.com comes to Apache(ReactJS_A) ...
0
votes
0answers
70 views

How do I fix PYTHONPATH to run Django in virtual environment?

I can run Django and start a project in my base (C drive). However, I cannot get Django to work in a virtual environment (venv) created from an anaconda3 prompt. When I open Python in the venvu and ...
0
votes
0answers
482 views

gunicorn.service: Failed to determine user credentials: No such process

I keep getting an error when trying to set gunicorn with my django project ● gunicorn.service - gunicorn daemon Loaded: loaded (/etc/systemd/system/gunicorn.service; disabled; vendor preset: ...
0
votes
0answers
28 views

How to configure firewall to allow outgoing traffic to port 587 TCP

I have recently deployed a site that I developed in Django onto a production server running Ubuntu and Apache. The site functioning in every respect with the exception of sending emails wherever I ...
0
votes
0answers
11 views

Django project not work after change of Windows OS

I was creating a project using Django. And I wanted to change the OS from 64 bit to 32 bit. On the new system, I installed a 32-bit version of Python, and when I ran the local server, I got this error:...
0
votes
1answer
15 views

How to kill running Ports using Linux Console?

In my scenario I am try to run Django code using ~$ python manage.py runserver command. While running it, I get: port 8000 already running How can I kill the running process of port number?
0
votes
1answer
1k views

gunicorn.service: Failed at step EXEC spawning {PATH}/env/bin/gunicorn: Permission denied

After creating my gunicorn.service file, I ran sudo systemctl enable gunicorn.service sudo systemctl start gunicorn.service However, I receive the following error below. This is the log returned ...
0
votes
1answer
32 views

How can I handle a sensitive settings file during deployment?

I am deploying a Django application to AWS using the following steps: Push updates to GIT Log into my server. Pull updates from GIT The issue I am having is my settings production.py file. I have it ...
0
votes
0answers
69 views

can not connect to my vps server vis ssh , Permission denied

i've looked similar question but none of them worked in my case 've build a website using django and apache but today it suddenly raised an error when i try to open my website it show only Apache2 ...
0
votes
1answer
64 views

Transferring django app to server through scp?

Firstly I want to note that I am both beginner in deploying Django app and Linux overall. I saw that it's possible to transfer Django app to the server through SCP in one of Corey Schafer's videos ...
1
vote
0answers
957 views

Django Invalid HTTP_HOST header from suspicous domain

I am getting warnings on my Django deployment server. To be precise: Invalid HTTP_HOST header: 'ip.ws.126.net:443'. The WHOIS entry for this domain is pretty opaque just as the domain: https://www....
1
vote
0answers
159 views

I can't connect to django in a Docker container (but doing the same thing works for Apache)

I have been going around and around trying to run a simple Django application in a container and then access it from a browser. I googled and read dozens of postings explaining how to to do it and ...
0
votes
2answers
20 views

Opening a .py file directly

While working with Django, I have to modify views.py and a variety of other files. What's bugging me is that I have to open these .py files through the python IDLE application every time and then ...
0
votes
0answers
41 views

after installing Python3 and Django in Windows 7, problems with web page display

I have some trouble after installing django in Windows. The admin page, "http://127.0.0.1:8000/admin/" displays in text mode. I suspect this is a problem with the environment variables, but I can't ...
2
votes
0answers
154 views

django + uwsgi + nginx, python files download instead of parse/execute

I am trying to get a new webserver up and running. php files will parse correctly but python files will not. I changed the file to +x, an this has no effect. I am not getting any errors in my logs ...
1
vote
0answers
35 views

Django apache2, & wsgi without vitrualenv (global installation)

I'm running django app globally on Ubuntu server running apache2. Below is my configuration file: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ...
0
votes
0answers
30 views

isplaying data of an existing database in Django admin site

I'm struggling with displaying data of an existing database in Django admin site. I created a model reflecting the table in an existing database, register in admin.py, run the makemigrations and ...
0
votes
1answer
63 views

Django HoneyPot Change Password Issue

I would appreciate if you could give me any clue! As I don't have experience in this, probably I've misunderstood smth. I'm using honeypot, more specifically honeypot.middleware.HoneypotMiddleware ...
1
vote
0answers
36 views

Run Django cause Pycharm behave unexpectedly

After running python manage.py runserver in terminal, PyCharm behave unexpectedly. Code analysis stop working and after restart PyCharm it hangs and only compute reboot fix issue. PyCharm ...
0
votes
0answers
90 views

How to use custom domains without specifying A records or Nameserver

I have a Django website hosted on Heroku and I want to host to use a custom domain bought on GoDaddy. Heroku does not provide any free A records or free Nameservers, so how am I supposed to use my ...
1
vote
1answer
960 views

pipenv ModuleNotFoundError: “No module named 'datetime'” after reinstalling Python

I had recently tried reinstalling Python, and after Python was installed successfully, after activating my virtual environment using pipenv shell whenever I try to run python manage.py I get the ...
0
votes
2answers
736 views

How do I get a channel layer from Django-Channels lib to communicate with Redis in Oracle VM using Docker Toolbox?

I am using Django Channels and am trying to make sure that a channel layer can communicate with Redis. However, I have Windows 10 Home edition which means I had to use Docker Toolbox to create an ...
1
vote
1answer
2k views

Apache2 (reverse proxy) + Django + Gunicorn

I have a problem with my Apache2 web server as reverse proxy server. The simplified server setup with my domain "example.com" looks like this: If clients now go to the page https://example.com/...
1
vote
0answers
58 views

I am unable to find Django while creating a project in Pycharm

I tried uninstalling and installing it and also tried with older versions but I still have same issues. I have manually created a virtual environment before and tried but didn't work but I can see ...
1
vote
1answer
5k views

Could not find a version that satisfies the requirement Django==2.0.6 (from versions: )

I am following a tutorial on https://djangogirls.org/ and I am frustratingly running into issues installing django or any other package. Per the tutorial, after creating and activating a Virtual Env, ...
0
votes
1answer
191 views

Django on Ubuntu Linux: “Could not find a version that satisfies the requirement”

Trying to install django on Linux Ubuntu (via virtual machine). Python3, pip3 successfully installed (because I can successfully verify the version of each on my machine). > sudo apt-get ...
1
vote
0answers
892 views

Docker is not reading static files from Django

I am facing a problem that has consumed a chunk of my time already. I am trying to deploy an application using docker and django but I cannot read the static files once it says it cannot be found. I ...
0
votes
1answer
36 views

All browsers load local CSS but not applying it

All browsers in my computer doesn't apply local CSS but it loads it if it was from website. Here as you see it loads CSS, but does not apply it: But if I changed one character at least, then it is ...
1
vote
0answers
52 views

Django compressor issue - media assets from the forms.py won't update in the front-end django template

We are currently experiencing an issue with the Django compressor: We have an app that has forms.py and its media assets from the forms.py won't update in the frontend django template (only stuff ...
0
votes
0answers
142 views

LDAP Authentication not working in Graphite

I have Installed Graphite in RHEL7 server. I have done the LDAP configuration in Graphite local_settings.py ## LDAP / ActiveDirectory authentication setup USE_LDAP_AUTH = True LDAP_SERVER = "ldap-...
0
votes
0answers
3k views

Permission denied accessing volume in docker-compose

I've followed this tutorial for deploying a web application using django, gunicorn, nginx and postgresql. When working with the empty application in the tutorial, everything seems ok, but then I ...
0
votes
1answer
7k views

Django gunicorn service not working, Got error failed at step EXEC spawning {PATH}/env/bin/gunicorn: No such file or directory

I am trying to setup a django project in local machine with gunicorn, nginx. I did setup gunicorn /etc/systemd/system/gunicorn.service by following this tutorial https://www.digitalocean.com/...
4
votes
3answers
9k views

Where does django look for SQLite instance? (SQLite 3.8.3 or later is required (found 3.7.17))

I've cloned a django project to a vps and I'm trying to run it now, but I get this error when trying to migrate: $ python manage.py migrate django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 ...
0
votes
1answer
781 views

AWS ACCESS KEY ISSUE

I accidentally pushed my access keys up to github and amazon contacted me with instructions on "fixing" the issue. I messed up and accidentally deleted the access key, thinking thats what i was ...
0
votes
2answers
426 views

Incoming Host Header Doubled

I'm using an Nginx webserver on an Ubuntu 18.04 server with Gunicorn and Django. My server is currently down because the incoming host header is always duplicated. When I make a request to the ...
0
votes
1answer
78 views

After renewing letsencrypt SSL certifications, server only returns response code 400

I recently tried to renew my letsencrypt ssl certificate, but once I did that, I’ve been coming down with 400 server responses whenever I try to connect to my website. I’ve tried absolutely everything ...
0
votes
1answer
432 views

Nginx gives 404 for some files

Getting 404 for /static/js/admin-extra.js but not for other files, like /static/admin/js/core.js All static files are copied by Django to the static file directory from both my app, and third party ...
3
votes
0answers
171 views

Why is my Django server still serving old files after changing filenames and clearing cache?

I have made some changes to my Ubuntu server running Django with Apache. I modified some HTML, JS and CSS files, but nothing has changed. Things I have tried: Clearing browser cache Renaming files ...
0
votes
1answer
1k views

django 2.1.7 installation failed on python 3.4

Downloading Django-2.1.7-py3-none-any.whl (7.3MB): 4.3MB downloaded Downloading/unpacking Django Requirement already up-to-date: pytz in /usr/local/lib/python3.4/dist-packages (from Django) ...
1
vote
0answers
657 views

Could not send email with password reset using SendGrid with Django on PythonAnywhere

Could someone point me in the right direction on how the password reset, that is built-in with Django admin, is going to send an email for the password reset. I am using the following: PythonAnywhere ...
0
votes
1answer
354 views

Django CMS: 'NoneType' object has no attribute 'subject_location' after deleting an image plugin

Im exploring Django CMS on Divio for one of my sites. Running into an issue when I delete an image that is being used by a picture plugin. Getting: """ 'NoneType' object has no attribute '...
1
vote
1answer
235 views

Django + Daphne + Caddy + File Upload = 413 Error

I have a Django web application that is deployed, production, with Caddy. IN production, I use Caddy as a reverse proxy pointing to daphne which is pointing to my Django app. However, when I try to ...
0
votes
1answer
775 views

cannot curl on localhost, django server

I make a draft django website with django-admin startproject mysite I go into the directory and run the server python manage.py runserver I check localhost:8000 with my browser and it shows the ...
1
vote
1answer
314 views

How to connect Django running in a container with datadog agent running in host

I followed all the instructions in datadog but can't get it to work. Steps I have done so far: I followed the instructions in Tracing Docker Applications, and configured my Django with something like:...
0
votes
0answers
376 views

How do I get my Django + React Application running in production mode on apache2 with Pipenv?

I am doing a group project with Django and React and each of us has been given its own VM to run it on. At the moment we are only able to start a development server for Django with the "runserver" ...
0
votes
0answers
1k views

python manage.py runserver long start time

I have the latest version of pip, Python and Django, yet when I run 'python manage.py runserver' it takes at least 20 minutes before doing any system checks. I've looked on the task manage and the ...
2
votes
1answer
2k views

“python” points to Python 2.7 under macOS Homebrew

I'm trying to setup and run server through Django, but I can't seem to make Python 3.7.2 replace Python 2.7.14.
0
votes
2answers
85 views

Postgres Authentication Fails When Starting Dajngo

I am in the process of restoring my Django development server to another virtual machine. I have set up Django, Postgres, installed the GIS extensions and restored the database. When I run the server,...
0
votes
1answer
58 views

Firefox 62.0.3 (64-bit) overrides address typed into address bar (OS X 10.12.6)

I'm working on a Django website project and have come across peculiar behavior in Firefox that I need a work-around for. I'm attempting to reach http://127.0.0.1:8000/ in order to reach a locally-...