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
10 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
29 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
0answers
8 views

Deploying Django to EC2

I tried deploying my django project on an AWS EC2 instance, but when I try to access the instance through its public DNS, I do not get anything back. Things I have already done: Setup the NACL to ...
0
votes
1answer
16 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 ...
0
votes
0answers
14 views

django storage path doesnt exist error - but definetly exists

i get this error ImproperlyConfigured at / The session storage path '/var/tmp/webbefunde/sessions' doesn't exist. Please set your SESSION_FILE_PATH setting to an existing directory in which Django ...
1
vote
0answers
621 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....
0
votes
0answers
68 views

NSSM - Install windows service to run daphne server for django channels

I run the commands on a windows machine as shown below to start my server, D:\django_channels> django_channels_env\Scripts\activate (django_channels_env) D:\django_channels\djanog_project> ...
0
votes
0answers
15 views

send_email returns 1 but no email sent django

I am trying to send email with django and an aws ses that we have, the code runs ok and there is no errors of any kind but no email goes. There is a way I can debug this? using some aws service or ...
0
votes
0answers
31 views

UWSGI cannot load app

I'm getting this message when I run uwsgi service *** no app loaded. going in full dynamic mode *** My uwsgi.ini file is: [uwsgi] chdir=/opt/openwisp2 uid=nginx master=True pidfile=/opt/openwisp2/...
0
votes
0answers
82 views

Django,os.system execute ping command, result is not same with python shell

My environment is nginx + uwsgi + Django. We use ping command to check whether a virtual machine can reach, using os.system("ping %s -c 1 -W 1" % ip_address).When the application is started normally(...
0
votes
0answers
246 views

command not found: django-admin on MacOS

I am using Python version 3.7.4 (latest version) and Django version 2.2.4. I am currently trying to create my first project after the installation of Django using django-admin startproject projectname ...
1
vote
0answers
76 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
0answers
21 views

Django debugging with pycharm

I have a problem debugging Django project, specifically a template. I am using Pycharm IDE. When I set a break point on the template code, by default it becomes Jinja2 line break point and I think ...
0
votes
0answers
16 views

Apache2 mod_ssl and Graphql

On my Server (Ubuntu 18.04) I'm running Apache2, Django and GraphQL and presenting the service with WSGI over Apache. I'm able to work (query/mutate) with graphql and the graphiql webinterface when ...
0
votes
0answers
12 views

Disk IO peaking randomly on VPS

I am renting a VPS with Arch Linux on it, which hosts a website that I programmed with Django. This website doesn't require a lot of memory and isn't used by many users. Because of my limited time, ...
0
votes
0answers
15 views

Deploying Django and Nginx by Ansible

I have followed this tutorial to deploy django, nginx and gunicorn. and now I have a django website on nginx. Now I want to do these things by Ansible. I searched alot but I have no idea where should ...
0
votes
0answers
15 views

Django website hosting:Page not found error

I am new to django hosting, and trying to host a django website using hositnger vps and domain with virtualmin/webmin.i uploaded my django project in virtualmin's public_html folder. And i am trying ...
0
votes
2answers
17 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
47 views

Django inside a subdirectory in apache2 with WSGIScriptAlias redirects without the subdirectory

I have an apache configure with: WSGIPythonHome /envpath/venv WSGIPythonPath /app_path/app_directory <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ...
0
votes
0answers
30 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 ...
0
votes
0answers
50 views

configuring Gunicorn with django env

I have deployed Django project with gunicorn & Ngnix. Once I made the changes to add .env file. I added the following to /etc/systemd/system/gunicorn.service [Service] ..... EnvironmentFile=/...
2
votes
0answers
111 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
33 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
11 views

Can't change local development server host in Ubuntu

In /etc there is supposed to be file named hosts, which wasn't the case for me. I created one using touch command and added 127.0.0.1 my-website.com and restarted my machine. It doesn't seem to take ...
0
votes
0answers
17 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
48 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 ...
0
votes
0answers
17 views

Schedule excel.csv upload to database via Django

Hope you can help me out I have a Class called Errors which is being displayed on the webpage using {% for instance in object_list %} & {{ instance.service_order_number }} inside the html table ...
1
vote
0answers
32 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
13 views

What would prevent glyph\icon CSS references to break?

After deployment today, for some reason, the project no longer shows style from items that would have been collected during the collectstatic process. I have full access to the files from any browser....
0
votes
0answers
47 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
690 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
1answer
423 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 ...
0
votes
0answers
177 views

uwsgi and django in pipenv environment with nginx as reverse proxy

I have a Django application, that is served by uwsgi through a reverse-proxy nginx. Plus, I want uwsgi to be started via systemd (systemctl enable uwsgi). I used pipenv to set up the virtual ...
0
votes
0answers
9 views

how to redirect a user to a form page which keeps user input value in a form when an error occurs

Hi I'm a newcomer to Stack Overflow, I'm currently working on django and facing a problem. I'm using a form and it redirects a user to the form page when the input value is not valid. it works fine ...
1
vote
1answer
928 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
53 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
3k 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
0answers
27 views

Multiple php sites and a Python app using NGINX

I've been trying to deploy two PHP sites and one Python app to a single server with a single domain separated by url using NGINX, e.g: devwiki.company.com/ --> Doku Wiki PHP 7.5 - ...
0
votes
0answers
76 views

Apache + Django LAN

I have a freshly installed Apache server on Ubuntu 18.04. A Django project (myserver) is connected via mod_wsgi. Since I have zero experience with Apache and very little with Django, I basically ...
0
votes
0answers
408 views

ImportError: No module named Courses.wsgi

I have a problem with gunicorn binding. Now I am firstly using this tool. And have this error message: ImportError: No module named Courses.wsgi Import is correctly from my working directory? If ...
0
votes
0answers
160 views

ImportError: No module named 'dal'

I tried to include autocomplete to my app, but my docker keeps failing. I did use pip3 install django-autocomplete-light. enter image description here
0
votes
0answers
30 views

Installing Jasmine on Django

I'm trying to set up the Jasmine JavaScript testing framework on my Django app. I activated the environment that I use, I definitely have Jasmine, node and npm installed in my environment. But every ...
0
votes
0answers
88 views

Is it OK to use daphne as a production server in this situation?

I need to deploy a server with django rest framework, django-channels. It is used in-house and distributed for the Windows OS. It is a small-scale server with about 10~20 users. Is it OK to use ...
0
votes
1answer
117 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 ...
0
votes
0answers
112 views

Django 2.0 error importing module

I installed django 2.0.5 on ubuntu 18.04 without error. But after creating a new project I cannot load the module, the error reads: .../python3.6/site-packages/django/utils/module_loading.py", line ...
1
vote
0answers
180 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
28 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 ...
0
votes
0answers
74 views

ModuleNotFoundError: No module named 'sekizaifiler'

I am trying to install django-cms by hand on my Windows 10. I followed the steps in http://docs.django-cms.org/en/latest/how_to/install.html until installing Django Filler, but once done and after ...
0
votes
0answers
13 views

Inability to get django running on android

I installed Termux, Python, Django, pipenv to create a webapp using Django. Then I started the server after creating a project only for me to get "Error: Port request not allowed" in my browser, ...
0
votes
0answers
31 views

Local DNS server delays locally hosted site

I've hosted a django site using apache in 192.168.1.20 There are 2 networks inside the company (192.168.1.x , 192.168.2.x) Where 2.x has Internet access and 1.x doesn't DNS server's address 192....