Questions tagged [django]

The tag has no usage guidance.

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

Setting up multiple instances on a single server [closed]

I've made a business management software. It runs on Django - Gunicorn - PostgreSQL - Debian - Nginx - Amazon Lightsail. I want to move it to a server I am setting up in my basement on Dell R620. I ...
user avatar
  • 101
0 votes
0 answers
14 views

core error - Script timed out before returning headers: wsgi.py

I'm running a Django app on Apache/2.4.6 (CentOS) with mod_wsgi. When I visit my domain, after few minutes I get "Internal Server Error". The log file shows the following error - [core:error]...
user avatar
  • 1
0 votes
0 answers
559 views

I've ValueError: Unable to configure handler 'file' on pycharm and also on vscode

I have a bit strange situation with logging in python, django. There are python,django in one docker container and postgres in other, everything runs on Linux machine. When I start server on 0.0.0.0:...
user avatar
0 votes
1 answer
135 views

How to export a list of IP addresses as a single local variable?

In Django, one has to specify the environment variable ALLOWED_HOSTS to define a list of server's IP addresses that are allowed to host a Django website. For example: ALLOWED_HOSTS=['localhost', '127....
user avatar
  • 251
0 votes
0 answers
12 views

Can one run wordpress and a python WSGI website on the same server?

I have 2 websites on different ubuntu / Debian machines. 1st runs apache2 mysql php stack -> Wordpress website 2nd runs python django + WSGI + lsws -> Python REST API Naturally I am paying my ...
user avatar
1 vote
1 answer
2k views

How to resolve (40: Too many levels of symbolic links) on Ubuntu 10.04 AWS EC2 Instance

In my EC2 Ubuntu 18.04 instance, I have created an django.conf file at /etc/nginx/sites-available The .conf file looks like so : server { listen 80; server_name *[url_name]*; ...
user avatar
1 vote
1 answer
1k views

TypeError: __init__() missing 1 required positional argument: 'get_response ,Making Dajngo API endpoints & exposing it?

File "/home/Desktop/booklib/env/lib/python3.8/site-packages/rest_framework/authentication.py", line 126, in authenticate self.enforce_csrf(request) File "/home/Desktop/booklib/env/...
user avatar
0 votes
1 answer
810 views

E: Unable to locate package postgresql-server-dev-10 in Ubuntu 18.04

I am writing a Django app with postgresql, using Docker. However, for some reason building returns the error "E: Unable to locate package postgresql-server-dev-10 The command '/bin/sh -c apt-get ...
user avatar
0 votes
1 answer
16 views

How can I put Django's settings.py in source control, while still making local adjustments?

In a Django project, the configuration is kept in a file called settings.py. Deployments will generally need to make local tweaks (such as setting LOCAL_HOSTS). These tweaks cannot live in the local ...
user avatar
0 votes
0 answers
1k views

Why the .sock file not getting generated for uwsgi?

I have already banged my head for last 6 hours, and nothing seems to be working for me. I am trying to host Django through nginx and uwsgi. As per the best of my understanding and study I have ...
user avatar
0 votes
1 answer
975 views

Adding directory to PATH -- Ubuntu

I realize that there are several similar questions out there and I'm unsure if I'm simply misunderstanding the solutions. I only recently began using Ubuntu, so I'm still familiarizing myself with ...
user avatar
1 vote
1 answer
51k views

Python "SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/docutils/"

PROBLEM Whatever I try to install from terminal with pip (macOS 10.12) I get this error message I may have installed and fully deleted homebrew before but I am not sure how to solve this Installs ...
user avatar
  • 111
0 votes
0 answers
60 views

nginx fails while the website somehow still works

Description I have built my Django3, gunicorn, nginx, Ubuntu 18.04, Digital Ocean project based on this guide. I only had 1 problem that it does not shows the CSS and all other static files like ...
user avatar
  • 111
2 votes
0 answers
8k views

No such file or directory when trying to COPY file in docker container

This question was asked before. However I can't seem to fix this. I am trying to COPY a file to my docker container, but it keeps telling me that the directory doesn't exist, even though it does. I ...
user avatar
0 votes
0 answers
18 views

which directory is unsafe for deployment?

I'm going to deploy a Django web-application, with Nginx as the webserver And I wanna deploy it on /opt/ directory. My question is: Which permissions should I set to /opt/ and which I shouldn't. In ...
user avatar
0 votes
1 answer
3k views

connect() to unix:///tmp/uwsgi_dev.sock failed (2: No such file or directory) while connecting to upstream

I tried to run django application using uwsgi+nginx and the cronjob command is,* * * * * /usr/local/bin/lockrun --lockfile /path/to/lock_file -- uwsgi --close-on-exec -s /path/to/socket_file --chdir /...
user avatar
1 vote
0 answers
164 views

How to run Django on Unix server (MobaXterm)?

While server (127.0.0.1) works just fine on PC using Pycharm which uses the Django 'GUI' framework, I've tried to execute the command on unix server (MobaXterm) but it just says that 10.1...1..69 (my ...
user avatar
2 votes
2 answers
354 views

Debian: What is Best Practice when a question from a dpkg install must be asked on every install/upgrade?

I have a .deb installer for a Django system and there are questions I need to ask the person installing the software. I can see a few ways to do this, and I want to know what constitutes best practice ...
user avatar
0 votes
1 answer
181 views

Error in Deploying Application to Test Server?

I am having a problem to deploy my django application on a CentOS 7 test server. Initially install the miniconda, through the root profile on the server, then perform the copy of the application and ...
user avatar
  • 101
0 votes
1 answer
648 views

Domain Name Routing on Ubuntu Server [closed]

I am trying to route my domain name on my DigitalOcean Ubuntu Droplet. I was curious if there is a default location where I can go to route this or if it is not that simple. The server is running ...
user avatar
1 vote
0 answers
155 views

Really stuck serving django project with gunicorn

I am on Ubuntu 16.04 trying to serve a django2 weblog. I keep getting an error of an old syntax mistake('Unitt'), that I have corrected and saved. It may have to do with file permissions. On digital ...
user avatar
1 vote
1 answer
12k views

CentOS7 nginx permission denied for media and static

Hello I have tried to deploy django web server for a week and finally I did it, but now I have a permission denied problem with nginx /var/log/nginx/errors.log /2016-07-12_1.png HTTP/1.0", host: &...
user avatar
1 vote
0 answers
205 views

setup mysql with django

I am trying to setup mysql server with my django application but I am having trouble installing it correctly. I used brew install mysql to install mysql server Then I used pip install mysqlclient ...
user avatar
1 vote
0 answers
2k views

AttributeError: 'module' object has no attribute 'INotifyWrapper'

I have installed python(2.7.9) and Django package(1.10.5). But when i execute the Django commands, i am getting below error. Command: python -m django --version Error: Traceback (most recent call ...
user avatar
  • 292
0 votes
0 answers
479 views

Problem with pyLoad: Fatal Python error: Couldn't create autoTLSkey mapping [closed]

After running pyload on my Debian 3.14 shared server, I get this error: Fatal Python error: Couldn't create autoTLSkey mapping Here is the full log: python pyLoadCore.py 17.01.2017 22:20:56 INFO ...
user avatar
  • 83
7 votes
1 answer
16k views

CentOS 7 | python3: error while loading shared libraries: libpython3.5m.so.1.0

I am deploying a django server. I've already installed python 3.5 without errors, but for some problems when I tried to compile mod_wsgi (so I could share the django app in an intranet environment ...
user avatar
0 votes
1 answer
372 views

Adding a Django site breaks my virtual hosts on CentOS 7

I have a CentOS 7 server with about 20 domains all managed automatically with a vhosts file in /etc/httpd/conf.d. I am trying to learn Django and wanted to set up a single domain using it, so I added ...
user avatar
0 votes
1 answer
972 views

CentOS: How to force pip to install Django with latest Python 3.5

I'm running CentOS, and it has pre-installed Python 2.6.6. But I want to use Python 3.5, the latest version. So I have installed Python 3.5 on my server. It's working properly. I just compile Python ...
user avatar
3 votes
1 answer
974 views

Ubuntu: Process vfs-worker taking all CPU resources

My Cloud9 (Ubuntu-based cloud IDE) began to be unresponsive after I tried to save some files (they didn't save to my cloud workspace). It shows 100% CPU utilization and a process that takes all CPU ...
user avatar
  • 1,182
2 votes
0 answers
2k views

Best practice for django app deploy location?

I would like to hear from other developers where they deploy their django (python web-app) app code on the filesystem (own server)- not django itself, but the project custom app code. I'm on Ubuntu ...
user avatar
0 votes
1 answer
174 views

Where do I put the information for Django in Apache2 in Ubuntu

The Django documentation tell me to put WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py WSGIPythonPath /path/to/mysite.com <Directory /path/to/mysite.com/mysite> <Files wsgi.py> ...
user avatar
  • 173
1 vote
0 answers
171 views

What folders should I exclude / not exclude when migrating a server using rsync

I've got a requirement to migrate a web server onto a fresh server (both 32 bit and Fedora 15). I'm using this guide as I've very little experience with linux, coming from a windows background. So ...
user avatar
2 votes
1 answer
305 views

Resizing Xterm window kills Django running in it

I have a Django instance running in a terminal window. Any time I resize the window, the Django process dies ungracefully, leaving no record of it in the error_log file. I tested it within ratpoison, ...
user avatar
  • 377
3 votes
1 answer
1k views

How Do I Package a Django Website for Debian (Not a Python Package or Egg)?

I have been searching for the last two weeks and chased myself into multiple dead ends trying to figure out the path that takes me where I want to go. However I finally have to admit that my answer ...
user avatar
0 votes
1 answer
2k views

Django can not connect to MySQL database over ubuntu 10.04

I got a simple Django 1.3.* project, i would like to run it over my localhost. I installed all necessary modules like: python-mysqldb, rptz etc... I have ubuntu 10.04 installed with python 2.7.2. ...
user avatar
1 vote
1 answer
1k views

How would I run Django and LAMP on different subdomains, but on the same Apache server?

I am currently working on a development project where I need to run four different PHP programs (both with MySQL backends) and one Django project. Current Plan: XenForo (forums.domain.com) [PHP ...
user avatar
  • 485
3 votes
1 answer
1k views

No default output device -9996: playing sound through Django

I'm facing a problem with my Raspberry Pi while playing a sound through a web page. The page is built in with Django and is quite simple: you push on a button and a sound is played (a Python script is ...
user avatar
2 votes
1 answer
2k views

Where are Python dist-packages stored in FreeBSD?

I am trying to find this path on FreeBSD but it is not working: /usr/local/lib/python2.7/dist-packages This same path is working on Ubuntu. Can please some tell me where I can find Python dist-...
user avatar
1 vote
1 answer
1k views

gcc not found when installing mysqldb for django 1.4

I am trying to install the python module mysqldb which is the python interface for mysql. I need this module because I am creating a Django development server (Django 1.4, OpenSUSE) and the database ...
user avatar
  • 165
0 votes
1 answer
478 views

Django not installing with pip because of mismatched hash

I have a virtual machine set up with a directory created with virtualenv (env2). I am inside this directory and have it activated and want to instal django 1.4. This is my command: $ pip install ...
user avatar
  • 165
1 vote
2 answers
15k views

What is symlinking and how can learn I how to to do this?

From the Django-Documentation: The django-admin.py script should be on your system path if you installed Django via its setup.py utility. If it’s not on your path, you can find it in site-packages/...
user avatar
  • 113
1 vote
0 answers
104 views

How do I fix my FastCGI Pinax / Django deployment?

I'm running OSX Lion (posted here because this is a Unix-specific question), and am trying to deploy a Pinax project via FCGI. I have the FastCGI daemon running: $ ps wwaux | grep fcgi jonathan ...
user avatar
1 vote
0 answers
336 views

How do I satisfy the "warnings" Pinax requirement?

I'm trying to build a Pinax virtualenv. I get, on Precise Penguin with 0.7: jonathan@ubuntu:~/Downloads/Pinax-0.7-bundle/scripts$ ./pinax-boot.py ~/virtual New python executable in /home/jonathan/...
user avatar
6 votes
1 answer
2k views

What are the differences between runit and supervisord?

I'm looking into changing our Django deployments and was reading the deploy page for gunicorn and it talks about both supervisord which I was aware of and planning on using and runit that I don't ...
user avatar
  • 4,184
2 votes
2 answers
5k views

FreeBSD: How to install Django with mod_wsgi?

Using FreeBSD 8.2-RELEASE. I want to mess around with Django and I want a working setup on my freebsd system. My understanding is I need to install python, apache, mod_wsgi, and django. The ...
user avatar
  • 1,997