The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [django]

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

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

i used pip install requirment.txt command and it showing this

(myenv1) root@p-VirtualBox:~/online-exam/onlineexam# pip install requirements.txt Collecting requirements.txt Exception: Traceback (most recent call last): File "/root/online-exam/myenv1/lib/...
0
votes
0answers
10 views

Postgresql v11 ssl letsencrypt

I have followed Corey Schafer's youtube vid course on Django (blog). I have set up SSL & the sites work OK, but I cannot get Postgresql to work with SSL. Any ideas appreciated
0
votes
0answers
24 views

Is it possible to install a nginx-only domain in a server running Vesta (apache + nginx)?

Hi I have a Cloud Server in a local hosting company with Ubuntu Server 18.04 installed. I've already successfully installed Vesta Control Panel with these settings: Web: nginx + apache FTP: vsftpd ...
0
votes
1answer
141 views

pam_unix(sudo:auth): authentication failure - Restarting apache2

I am deploying my website on a Linux Virtual Machine (Ubuntu 19) on Linode. My deployment worked when allowed: xx.xx.xx.xx:8000 To allow HTTP/TCP traffic I did: sudo delete allow 8000 sudo allow ...
-1
votes
2answers
80 views

Visual studio code extensions

Now, i'm trying to install some extensions from vscode, but i have this problem : Failed to install 'batisteo.vscode-django'. Download Manually
0
votes
1answer
438 views

PyCharm Pro ImportError (Disco Dingo) Django 2.0

Issue was found in chat, I am using the wrong version of virtualenv which requires uninstallation. While I was trying to set-up a Django Project. On the manage.py: ImportError("Couldn't import ...
0
votes
1answer
57 views

write a complex text into file(include double quotation and single quotation)

I want write a complex string into a file in python but the problem is my text itself have a command and double quotation and single quotation too so python can't write it and assume its a command too....
1
vote
1answer
73 views

systemctl .service can't read the environment variable

I'm using django and now trying to configure server with nginx and uwsi. now i'm running nginx+socket+uwsgi_emperor well . for running uwsgi i use below command in terminal: /usr/local/bin/uwsgi --...
0
votes
1answer
116 views

Access python os.environ var in virtualenv with sudo?

I am working on a django project where I have to keep secrete information to python's os.environ. by following below link http://barkas.com/2016/set-environment-variables-activating-virtualenv/ code ...
0
votes
0answers
14 views

Error during installing virtualenv using pip3 [duplicate]

I'm trying to install virtualenv using pip3 , and i face this problem : WARNING: The directory '/home/mohammed/.cache/pip/http' or its parent directory is not owned by the current user and the cache ...
0
votes
1answer
716 views

Mkvirtualenv: command not found 19.04

Trying to install Django Framework. This when I am trying to activate an virtual environment for the very first time: mkvirtualenv test mkvirtualenv: command not found Location of the ...
0
votes
0answers
70 views

Django web is down after SSL certificate from let's encrypt in apache2 server

I am running my web in apache2 server, my web is built in django and I am using postgresql as a database. however after creating a certificate my web is not showing any longer ( I am getting server ...
0
votes
0answers
112 views

SSSD and Realmd AD integration on ubuntu and Django

So I have been looking for a little while, and I haven't been able to find working instructions. I am currently trying to integrate Ubuntu 16.04 desktop with an Active Directory. I have a windows ...
0
votes
0answers
64 views

Django SQLITE database not getting updated for CRON tasks

I'm using SQLITE database with a Django app. A CRON job is set to run every 5 minutes and after every successfull execution, a model field should be updated. The tasks executes successfully but the ...
0
votes
0answers
59 views

Moving Django site with Gunicorn to a new user on Ubuntu 16.04

I was handed a broken Django server for the 2019 high school cyber defense competition, and I am having a bit of trouble moving it out of the root directory to prevent red team from executing scripts ...
0
votes
0answers
18 views

i use django+nginx+uwsgi,but i can not Visit website when i input my IP

I deployed a django project with nginx and uwsgi, but now I can't access the page after I type ip in the browser. What is the reason for this? Please help me, or tell me how to configure nginx [uwsgi]...
1
vote
0answers
71 views

Not being able to install the latest version of Django

I tried installing the latest version of django using the following command:sudo apt-get install Django==2.0.5 But this is giving an error saying that the system requirements allow me to install only ...
2
votes
1answer
1k views

How to run Django cron in crontab?

I have a Django application which uses django-cron (https://django-cron.readthedocs.io/en/latest/installation.html), and I need to execute python manage.py runcrons every 5 mins in AWS EC2 running on ...
0
votes
0answers
304 views

Ubuntu 18.04 LTS, Apache2, Django Channels with WebSocket Issue 404

I am now following the Django Channels tutorial to set up a django(2+) project. The link is this https://channels.readthedocs.io/en/latest/tutorial/part_1.html. I stopped before Integrate the ...
1
vote
0answers
343 views

facing issue Couldn't import Django. Are you sure it's installed and after installing docker

I continuously get this message: Couldn't import Django. Are you sure it's installed on running this command: python manage.py runserver after installing docker in my ubuntu 16.04. Done with Below ...
0
votes
1answer
81 views

django app deployment without subdomain

I have deployed a django app to the server i have. Let say its ip is 192.168.1.1. So i was able to access the any site there with 192.168.1.1/my_site. I have now deployed the Django App which is a ...
0
votes
1answer
1k views

Unmet dependencies while trying to install python3-pip in Ubuntu 18.04

lokesh@lokesh-pc:~$ python3 --version Python 3.6.5 lokesh@lokesh-pc:~$ pip3 --version bash: pip3: command not found lokesh@lokesh-pc:~$ sudo apt-get install python3-pip [sudo] password for lokesh: ...
0
votes
1answer
1k views

Cannot install Django using pip

I'm trying to install Django 1.11 on ubuntu 16.04 using pip (python 2.7) I ran the following command: sudo pip install Django but I get: Could not find a version that satisfies the requirement ...
0
votes
1answer
53 views

Advice about installing Django

I have installed Ubuntu Desktop within VMware. Python 3 is working OK. I am starting to feel comfortable working with Spyder IDE. Very soon I would like to install Django. Some Python novice must ...
0
votes
0answers
5k views

I'm getting an “ERROR (spawn error)” when I try to start my celery/supervisor instance

I've gone through how to use celery on my django production server using supervisor. However when I try to start supervisor with sudo supervisorctl start app-celery - it returns: app-celery: ERROR ...
1
vote
0answers
2k views

Permission Denied - Django Deployment on Ubuntu 16.04 with web server Nginx

I am trying to deploy a django website on a Ubuntu 16.04 system using nginx but I am having issues. ERRORS Error I get from my nginx error.log file: connect() to unix:/home/teddycrepineau/...
1
vote
1answer
643 views

The package “software-properties-gtk” needs to be reinstalled, but I can't find an archive for it

I'm using ubuntu 16.04. Whenever I tried to install new package, "The package software-properties-gtk needs to be reinstalled, but I can't find an archive for it." this error is occurred: Thanks....
0
votes
2answers
452 views

source command not working in Bash on Ubuntu 17.10

I am use Ubuntu 17.04 and the following code is not working, although it worked for me in the past. #!/bin/bash APP=personalBlog USER=root cd /opt/src/personalblog/conf/ source /opt/venv/ecomex/...
0
votes
0answers
402 views

nginx+uwsgi+django: why socket doesn't switch on?

I am trying to deploy django with nginx and uwsgi. Nothing works on socket. I tried to change privileges but fruitless. Err_connection_refused. In error.log nothing. How can I solve this problem? ...
0
votes
2answers
952 views

How to install pip? [duplicate]

The error: sudo apt-get install python-pip E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is ...
0
votes
2answers
375 views

while creating module getting error

used this command to create module - python manage.py startapp todos getting this error: Traceback (most recent call last): File "manage.py", line 17, in "Couldn't import Django. Are ...
0
votes
1answer
1k views

Using update-alternatives to assign 'Python' to Python version 3.6

I am trying to use update-alternatives to assign python 3.6 ; Instead it is using python 3.52. update-alternatives --install /usr/bin/python python /usr/bin/python3 1 Any idea what I have to do ...
0
votes
0answers
547 views

Why is my crontab task (python script) not executing periodically?

I need to to execute a python script for periodically for my django project.So I'm using django_crontab. This is what crontab -e has */1 * * * * /home/myvenv/bin/python /home/user/myproj/manage.py ...
0
votes
2answers
2k views

different pip version conflicts how can I solve this

$ sudo -H pip3 install django~=1.11.0 Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 666, in _build_master ws.require(...
0
votes
3answers
1k views

Django and uWSGI in a Docker container

I'am trying to run a project that uses Django and uWSGI in a Docker container. But I'm new to Docker and uWSGI so I'm not quite sure how I'm supposed to do it. First I built the project with this ...
0
votes
1answer
60 views

Do I need Django-2.0.checksum.txt to check if the downloaded tar.gz is not malware ?

I am a newbie in Ubuntu and bash. I want to install Django on my Ubuntu 14.04 by typing bash commands in the terminal. I downloaded Django latest release from here https://www.djangoproject.com/...
0
votes
1answer
476 views

pip install is stuck at cloning - is it possible to download the package separately, store it and install it from that?

I am trying to install and configure a Django/MongoDB setup. I'm using these instructions These commands worked fine: pip install git+https://github.com/django-nonrel/djangotoolbox pip install git+...
0
votes
1answer
361 views

What are the differences between mod-wsgi and libapache2-mod-wsgi-py3?

I am learning about virtual hosting. I have a Django project and need WSGI module. Reading multiple tutorials, I see that people install different packages of mod-wsgi, for example mod-wsgi and ...
7
votes
3answers
19k views

Failed building wheel for twisted

I made virtualenv, new blank django project and I want to install Channels. I use Python 3.6.3. I typed pip install -U channels and this is OUTPUT: ... Failed building wheel for twisted ... Command "/...
0
votes
1answer
1k views

403 forbidden for django + gunicorn + systemd + apache?

I have followed this guide and this to deploy my django with guniconrn and apache. But I dont quite get what this guide it says: (You still need to specify Alias and for the static and media ...
-1
votes
1answer
73 views

Add keybinding in Vim

I am using vim pretty often with my work. I am a web developer in Django. I would like to build a keybinding so that each time it is executed it will print the line import ipdb; ipdb.set_trace(). ...
1
vote
1answer
1k views

Crontab executes Django command, but nothing happens

(x-posted from StackOverflow) I have set up cron to execute the following command for django-cron (django 1.10.5, python 3.5, anaconda 4.2.0) in ubuntu 16.04: PATH=/user/project/projectname/website *...
1
vote
0answers
540 views

Pip Error while installing: virtualenv, django and upgrading pip

I'm trying to start a Django project, don't know what I'm doing to be honest. I started following the tutorial. Installed python 3.6 (altough this shows 2.7, probably came with ubuntu). And then ...
1
vote
1answer
1k views

celery django daemonization

I'm trying to use celery with Django, and I was able to set them up so, that I can start celery with (virtualenv)$ celery -A dbbs worker -l info and it does tasks sent by Django server. Now I was ...
0
votes
0answers
494 views

cron tab not working in ubuntu 16.04

I want to automate my application to run on server reboot, following my code for adding shell script to crontab. # m h dom mon dow command @reboot sh ~/start.sh start.sh contains running the ...
1
vote
0answers
3k views

PYTHONPATH environment variable, not found

I have recently updated ubuntu from 14.04 to 16.04 and my PYTHONPATH has apparently been spoiled, Traceback (most recent call last): File "./manage.py", line 17, in <module> "Couldn't import ...
1
vote
1answer
268 views

Why do I need to install every Django dependency after upgrade to Ubuntu 16.04 (Xenial Xerus)?

I upgraded from Ubuntu 14.04 (Trusty Tahr) to 16.04 (Xenial Xerus), and I installed Python 3.4 and Django 1.9.2. Now when I run a Django Project with: python3.4 manage.py runserver I get import ...
0
votes
0answers
4k views

NGINX sometimes has (No such file or directory) error

After sometime my nginx server will have an error regarding static files, I'm using NGINX in one server that serve static files and as proxy for Django app on another server. I copies the static ...
0
votes
1answer
394 views

Run both Apache with mod_wsgi and Nginx with Gunicorn on same server?

I have a droplet on Digital Ocean that I'm using to host projects and learn about different technology. I already have a couple of things running using Apache2 and mod_wsgi running a Flask app. I'm ...
1
vote
0answers
665 views

Trying to setup Django site, but always getting the Apache default page

I am moving my Django site to a new server and I cannot get it running on the new server. I had it running previously, but I fumbled through that a year ago and don't really remember the details. ...