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.

66 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
308 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 ...
user2905256's user avatar
2 votes
0 answers
338 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 ...
Nix's user avatar
  • 51
2 votes
1 answer
8k 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, ...
Smock's user avatar
  • 31
2 votes
1 answer
4k views

Install mod_wsgi on Ubuntu with Python 3.6, Apache 2.4, and Django 1.11

How do I get mod_wsgi for Apache2 that was compiled for Python 3.6.1? (or any future Python version) I am using a Python 3.6.1 virtual environment with Django 1.11 and Everything is working ...
JxAxMxIxN's user avatar
  • 131
2 votes
1 answer
2k views

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-sTRicb-build/

I am trying to install Django and I get the following error, please let me know what seems to be the issue. Thanks, (ENV) AP-MacBook-Pro:bin $ sudo -H pip install django/ Processing ./django ...
user698048's user avatar
2 votes
0 answers
434 views

How to add existing django project to Aptana Studio 3 without modifying files?

I have created a new Django project using django-admin startproject mysite on C:\tuts\ The initial file structure is as shown in the official documentation where the root folder of the project ...
SaidbakR's user avatar
  • 308
2 votes
3 answers
651 views

To install and use Django 1.4.1 without sudo access

I want to install this software to a server where I have no sudo access. They have Django 1.2.x installed there, but the software needs Django 1.4.1. The server has the adapter between Python and ...
Léo Léopold Hertz 준영's user avatar
2 votes
2 answers
5k views

Installing libssl-dev, libffi-dev on OS X?

I tried using command brew install libssl-dev libffi-dev but it's not working for me. Does anyone know how to install it on Mac?
jack lucky's user avatar
2 votes
1 answer
3k views

Can't reach Django web dev server from Host OS using VirtualBox

I'm having trouble trying to reach my Django web dev server inside VirtualBox (4.2.8). What I'm trying to do is connect through the web browser in my Host OS to the web dev server running in the Guest ...
David Barreto's user avatar
1 vote
0 answers
58 views

Where is "erd" and "dot" program?

I have problem in vscode ERD diagram preview. (As seen above print-screen my VSCode) Have tried: https://marketplace.visualstudio.com/items?itemName=kaishuu0123.vscode-erd-preview#configuration What ...
parmer_110's user avatar
1 vote
0 answers
850 views

Python manage.py permission denied in Windows

I created a Python project and then tried to run the command python manage.py runserver in VS Code terminal but it keeps on displaying permission denied.
abi's user avatar
  • 11
1 vote
0 answers
7k 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: ...
Anibal Cardozo's user avatar
1 vote
0 answers
1k 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....
CampFireMan's user avatar
1 vote
0 answers
387 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 ...
dalex1's user avatar
  • 11
1 vote
0 answers
112 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 ...
Tazo's user avatar
  • 11
1 vote
0 answers
40 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 ...
user1080655's user avatar
1 vote
0 answers
72 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 ...
Bharadwaj's user avatar
1 vote
0 answers
1k 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 ...
Felipe Oliveira's user avatar
1 vote
0 answers
87 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 ...
Danny Blaker's user avatar
1 vote
0 answers
791 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 ...
mike26's user avatar
  • 11
1 vote
1 answer
329 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 ...
RubyJ's user avatar
  • 111
1 vote
1 answer
205 views

When does ec2 switch between public DNS and public IP?

I have an application using Django, in Django config there is a list of ALLOWED_HOSTS. The application was working fine with the IP xxx.xxx.xxx.xxx in the ALLOWED_HOSTS list. It then threw the ...
cryanbhu's user avatar
  • 111
1 vote
1 answer
5k views

Hosting a local website to the public using a VPN?

Is it possible to host a local website for a select number of people who I give access to my VPN address? My thought process is this. I will get a Windows computer to host a VPN network, and with the ...
vee's user avatar
  • 111
1 vote
0 answers
378 views

Local Django Server Runs from Windows Command Prompt but not Windows Subsystem for Linux

I can start my local Django server from Windows cmd prompt and Windows Subsystem for Linux (WSL) from the same directory using python manage.py runserver. The website works fine when I start the ...
Rory Flast's user avatar
1 vote
0 answers
410 views

Apache Server Running Django Project showing only "Index of /" and the names of project files instead of running the site

When I navigate to the site, it only shows 'Index Of /' and then the files I have inserted in my htdocs. I've looked at a lot of people with this same error but haven't found a solution yet. I'm using ...
Johnny W.'s user avatar
1 vote
0 answers
99 views

Apache and MySql datbase memory consumption issue with Django

I'm writing a relatively simple web-application as a learning project to learn Django, Apache, Mysql etc. in practice. It consists of a web flash/html5 client which makes two API-calls to Django Rest-...
Tumetsu's user avatar
  • 111
1 vote
0 answers
29 views

What does .mp_1374940675 file extension mean in my django project?

My manage.py command does not only make .py files but each .py file comes with a .py.mp_1374940675 pair. Why is that? Do I need those files?
Barney Szabolcs's user avatar
1 vote
1 answer
1k views

Is it possible to delete unused media from the file system in Django, systematically?

I have a django project in which the admins are able to upload media. As items sell, they are deleted from the site, thus removing their entry in the MySQL database. The images associated with the ...
fildred13's user avatar
  • 111
1 vote
0 answers
2k views

httpd.exe: Could not reliably determine the server's fully qualified domain name

Please help I'm new to this and I was trying to learn django but got stuck at this for last 24 hrs C:\Apache\bin>httpd.exe httpd.exe: Could not reliably determine the server's fully qualified domain ...
user233825's user avatar
1 vote
0 answers
857 views

installing Django on a remote server not working

I am attempting to install Django on a remote server. I have yum installed the following: apache mod_wsgi Django mysql (python is already installed) I have uploaded my project to the directory: /...
Buffernet's user avatar
  • 163
0 votes
0 answers
391 views

Weird requests to home server and possible security breaches

I am trying my hands on hosting a Django web app on my home server. I never fail to get weird requests from unknown IPs all around the world, such as the ones below: Not Found: /ecp/Current/exporttool/...
Sati's user avatar
  • 111
0 votes
0 answers
107 views

Django cant find the temporary folder when it try to save a big file

I am trying to save big images in my Django project, but when Django does it I get this stack traceback: Traceback (most recent call last): File "/Users/sokov/PycharmProjects/4utra/venv/lib/...
Sergei Sokov's user avatar
0 votes
1 answer
148 views

Installation of Tandoor on shared webhoster (no root access)

I'm trying to install Tandoor (https://tandoor.dev) on my uberspace (https://uberspace.de - shared webhoster). Docker is not supported by uberspace, so I tried the manual installation guide: https://...
Nico's user avatar
  • 1
0 votes
1 answer
1k views

Is there a way of knowing if a Django server is running in DEBUG mode?

Given a third party project running Django on a cloud platform behind NGINX or Apache, is there a way of knowing: the project is indeed using Django as a framework whether DEBUG is set to True or ...
merc1er's user avatar
  • 151
0 votes
1 answer
2k views

Start Django App When Windows Starts

I would like to start a Django App automatically when Windows starts. I created a .bat file (that I intend to execute using Task Scheduler) containing the following: C:\Users\HP\project-name\Scripts\...
Mounir Benhalima's user avatar
0 votes
1 answer
114 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) ...
whitebear's user avatar
  • 705
0 votes
1 answer
170 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?
rajeevpunna's user avatar
0 votes
1 answer
4k 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 ...
flixphotos's user avatar
0 votes
0 answers
343 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 ...
artiest's user avatar
  • 101
0 votes
1 answer
260 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 ...
Kenan's user avatar
  • 1
0 votes
0 answers
85 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 ...
Misor's user avatar
  • 1
0 votes
0 answers
88 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 ...
JDKabangu's user avatar
0 votes
1 answer
84 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 ...
user1082173's user avatar
0 votes
2 answers
1k 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 ...
William Tran's user avatar
0 votes
1 answer
347 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 ...
deevs_hari's user avatar
0 votes
0 answers
244 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-...
user2439278's user avatar
0 votes
0 answers
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 ...
G B's user avatar
  • 81
0 votes
1 answer
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) ...
martin's user avatar
  • 101
0 votes
1 answer
778 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 '...
user994192's user avatar
0 votes
0 answers
533 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" ...
Niklas's user avatar
  • 1