Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
21 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
13 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 ...
0
votes
0answers
9 views

SyntaxError at /tovars invalid syntax (urls.py, line 5) [on hold]

from django.conf.urls import url, include from . import views urlpatterns = [ url(r'^', views.tovars, name='tovars'), ] проверял все, но где-то находит ошибку check everything but find ...
0
votes
0answers
12 views

fetch http://repository.fit.cvut.cz/mirrors/alpine/v3.8/main/x86_64/APKINDEX.tar.gz is not working in docker

I am using django cookie cutter docker template for my application.But I am unable to build the conatiners as it fails at apk update command always. DNS is also working fine and repositories are also ...
-1
votes
0answers
8 views

while installing django in python on windows 8 getting this error. Kindly help to resolve this issue. Thanks is advance

[enter image description here][1] [1]: https://i.stack.imgur.com/ZMOKz.png. this is error showing.
1
vote
1answer
47 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
41 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
0answers
15 views

how to install boxbilling software in a directory

I have installed boxbilling software in my cpanel mydomain/billing but the strange thing is instead of software homepage being mydomain/billing it is mydomain/billing/index.php?_url= and something ...
0
votes
0answers
30 views

No module named wkhtmltopdf even after installing in Django

I have installed wkhtmltopdf using Pycharm for my Django project. Put 'wkthmltopdf' in settings. Tried the sample code in their documentation but when I run the server, I get this error: File "C:\...
1
vote
0answers
31 views

Django services and websocket deploying in Amazon EC2 [closed]

I have a project with websockets with angular and django, it works fine locally when I have deployed to Amazon EC2. I have attached a screenshot of the server in django in Amazon EC2 that it looks ...
0
votes
0answers
51 views

Django Application Killed unexpectedly in AWS EC2 Instance

I have a Django Project running over AWS EC2 Instance. I am using default Django server to run the application. To make the server running in background I have used screen command as: To open screen: ...
0
votes
0answers
19 views

Add a static site in to django system

Is that possible to add external html site to django system? while requiring user to log-in lets say, I have to include a user manual in to my system and it is a set of (html, css, js) files. the ...
0
votes
1answer
53 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-...
0
votes
0answers
158 views

No such file or directory: mod_wsgi

My Apache seems to be running okay, except for two things. 1) Message in error.log: [wsgi:warn] [pid 1234:tid 12345678] (2)No such file or directory: mod_wsgi (pid=1234): Unable to stat Python ...
0
votes
1answer
173 views

Create thumbnails of video in django using ffmpeg

Currently i am creating a website where users can upload videos and play them back . The video upload method works fine , the problem is i am trying to create a thumbnail for each video . Instead of ...
1
vote
1answer
73 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 ...
0
votes
1answer
245 views

hosting a local website to the public using a vpn?

Is it possible to host a local website to 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 ...
0
votes
1answer
38 views

Setup timezone for server

I have a server on Berlin for example, but i have clients in all over the world for an application that provides APIs for Android and iOS. Now I'm confused how should i save the times in the database ...
0
votes
1answer
84 views

How to install screen on Linux?

I'm trying to install screen on linux without any luck. I tried yum install screen which resulted in: CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf I'm not ...
0
votes
0answers
57 views

Django doesn't run efficiently on Ubuntu Bash on Windows

I installed django on Ubuntu Bash (on Windows) following the normal steps, startproject and runserver The server ran normally at first, but when I tried changing to "LANGUAGE_CODE" and then runserver ...
0
votes
0answers
25 views

Controlling access to video stream

I'm not sure if this is the right forum for this question, but here goes. I have a video stream from a device on the local network that I would like to expose behind some kind of authentication. It's ...
0
votes
1answer
660 views

Using an existing Django project in a new Docker container

I am trying to start a Docker container using a Django project in the same directory. Following this tutorial, https://docs.docker.com/compose/django/#create-a-django-project, it is possible to use ...
0
votes
0answers
194 views

Enable FFMPEG execution under Apache + Django + WSGI on CentOS 7 (SELinux)

I have a website running under Django and Apache (httpd) and inside a view I need to call FFMPEG to convert an image to video. It worked on Ubuntu 12 for years, but now we have to migrate it to CentOS ...
0
votes
0answers
127 views

Password protecting a folder without zipping or hiding

I have a Django app which I need to distribute to other teams for testing, but I don't want to share the code. The structure of a Django project is - parentfolder djangoproject djangoapp db.sqlite3 ...
2
votes
1answer
2k 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 ...
1
vote
2answers
2k views

debian stretch upgrade - mariadb removed libmysqlclient.so.18 - how to get it back?

I upgraded to debian stretch from jessie. My mysql database migrated and I can read it. I have a django project that relies on libmysqlclient.so.18 to access mysql. i have mariadb-server and ...
0
votes
0answers
2k views

Windows CMD cannot use Python Virtualenv or Django commands

I'm trying to use python Virtualenv and Django. I have successfully installed both using Pip. On every tutorial I've found, it tells me to open CMD and type in a command. For example: C:\Users\USER\...
2
votes
1answer
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 ...
0
votes
0answers
92 views

Access pycharm server from anywhere on the internet

I am working on a django project and want to show current state of project quickly to the client. Currently i can access develpement sever using the following URL. http://localhost:42333/my_project ...
1
vote
0answers
226 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 ...
1
vote
1answer
658 views

Django development server on Raspberry Pi refuses connection

I have a simple web service running on my Raspberry Pi, using the Django development server (manage.py runserver). I know it's working, because when I run curl localhost:8000 on the Pi, I get the HTML ...
1
vote
2answers
1k views

FreeNAS working - WebGUI non existant - services refuse to start

I've had a FreeNAS box (at home) running for a few months now, everything's been fine but it doesn't have a UPS and recently after it was hard shutdown there have been issues. I can't access the ...
0
votes
0answers
160 views

Amazon EC2 suddenly remove access control headers from my packets?

I have a django server on EC2 instance that serve lots of customers via REST API. I put a middleware in django to allow access control from anywhere by automatically adding access control headers on ...
0
votes
0answers
415 views

Apache/Django slow first response after idle period

I am running Apache 2.4/mod_wsgi 4.5.3/python 3.4/Django 1.9 on RaspbianJessie on a Pi Zero. I have just a couple pages of my own that are pretty small (a few buttons and some CSS). If I have made a ...
0
votes
1answer
6k views

sslv3 alert handshake failure (_ssl.c:590)?

this is my code: def test(request): paypalrestsdk.configure({ "mode": "security-test-sandbox", "client_id": "XXXXXXX-XXXX-XXXX-XXXX", "client_secret": "XXXXXXX-XXXX-XXXX-XXXX" }) payment ...
1
vote
1answer
2k 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?
3
votes
1answer
3k views

How do I get Docker to write into a local directory?

I'm trying to set up a wagtail (a django extension, http://wagtail.io/) site using Docker, and it seems to have worked, but as far as I can tell it has hidden the site away from me somewhere in the ...
1
vote
0answers
207 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 ...
0
votes
1answer
135 views

Configuring askbot with apache

I am new to Askbot and Apache. Am getting the following error when I start my Apache: [Tue Mar 15 10:25:42.367470 2016] [:info] [pid 6748:tid 139731953211264] mod_wsgi (pid=6748): Attach interpreter '...
1
vote
3answers
4k views

Apache virtual host shows “index of” page instead of website

Typing in the domain name in a brower shows the "index of /" page, instead of the content of my website. I'm using django, mod-wsgi and apache on ec2. My apache conf file looks like this: <...
0
votes
2answers
388 views

virtualenv cannot create environment

System used= ubuntu 14.04 , python = 2.7.6 . I'm trying to setup virtualenvironment using virtualenv to setup django1.8 . I installed pip and virtualenv using below commands apt-get install python-...
0
votes
1answer
383 views

Deploying Django using Phusion Passenger - file upload failure

I have a Django app deployed using Passenger (I did not choose mod_wsgi because mod_passenger is already there and being used). When I uploaded an MP3 file (900 kB), Google Chrome displays upload % ...
1
vote
1answer
3k views

URLField in django models allowing users to submit blank records, why? [closed]

This is what my models.py file looks like: from django.db import models class AccountModel(models.Model): url = models.URLField(max_length=200, blank=False) The database is still allowing blank ...
0
votes
1answer
2k views

Install apache2-dev for mod_wsgi

I'm completely new to linux but have developed a Python3 Django application that I've been asked to deploy to an apache web server running on Debian 7.8. To do that I'm following Django guideline ...
1
vote
1answer
50 views

Ensure that Gunicorn restarts when the old process dies

A server process can die for example by a small error in the coding or from other reasons. Has anybody experience with Gunicorn (+Django) and how solid it runs? Is there an easy way to ensure that ...
2
votes
0answers
414 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 ...
3
votes
2answers
17k views

Can't use pip after download?

This is how I downloaded pip: I installed https://bootstrap.pypa.io/get-pip.py and placed it in the scripts subdirectory of Python. Then I ensured that the scripts subdirectory was a part of my ...
0
votes
1answer
2k views

I am not able to send post request properly with 'curl' command

I am very new to django programming.After reading some basic curl command, I am sent the following post request to python server using curl curl --data "system_uuid=b28964bf-3e9e-47d7-af5e-...
0
votes
0answers
540 views

Keeping the backend code hidden from frontend developers

Working on a middle-sized web-based project, we need a way to reasonably manage the source code among backend and frontend developers. I’m wondering if there are some good practices for effective ...
0
votes
1answer
172 views

Creating virtual host with Apache2

I'm trying to get Apache2 to host my Django project located in /var/www/tbg/. I get an Internal Server Error (500). I have already installed libapache2-mod-wsgi and My files are as follows: project....