All Questions

Tagged with
Filter by
Sorted by
Tagged with
61 votes
11 answers
158k views

django development server, how to stop it when it run in background?

I use a Cloud server to test my django small project, I type in manage.py runserver and then I log out my cloud server, I can visit my site normally, but when I reload my cloud server, I don't know ...
bricks's user avatar
  • 727
12 votes
3 answers
15k views

Static files not found with webpack and django

The problem is that I can get access to the app on the browser but not static assets (js, jsx and images). Technologies I am using: django-webpack-loader 0.2.4 React 0.14 Django 1.8.5 Python 2.7 ...
ChesterL's user avatar
  • 347
12 votes
4 answers
10k views

push notifications with django and GCM

I have a android client app, and my server is in django. I want to implement push-notifications in the server, to notify the specific users when changes in data related to them are happening, for ...
Ofek Agmon's user avatar
  • 5,170
11 votes
1 answer
16k views

Django is synchronous or asynchronous?

Django is synchronous or asynchronous? I want to know that the Django Framework is Synchronous or Asynchronous. I have heard about the interview problems they ask about the framework you are using is ...
SUMIT KUMAR's user avatar
11 votes
1 answer
43k views

Running Django server on localhost

I would like to run a Django server locally using a local IP. I have localhost mapped here: $ head -n 1 /etc/hosts 127.0.0.1 localhost I have this chunk of code in my settings.py: import os ...
kaligne's user avatar
  • 3,198
11 votes
1 answer
5k views

Enabling internal routing in uWSGI

I have a Django app working with uWSGI. My uWSGI config is: [uwsgi] http = 127.0.0.1:8000 env = DJANGO_SETTINGS_MODULE=my_django_app.settings module = my_django_app.wsgi:application home = /var/www/...
Andrii Rusanov's user avatar
10 votes
1 answer
5k views

How can I serve my django website from multiple machines, that is how can I make it distributed?

I have my django website, which I want to make distributed, I know all the concept of system design and distributed system but still cannot figure out how can I serve it using multiple server. I am ...
user avatar
9 votes
2 answers
32k views

Gunicorn not starting throwing gunicorn.service: Failed with result 'exit-code'. error

I'm trying a deploy simple Django application on Digital Ocean by following this link I follow every work step by step and successfully run that project via python manage.py runserver where it's not ...
Antu's user avatar
  • 2,253
8 votes
1 answer
2k views

Nginx 502 Bad gateway - gcp

I am trying to deploy my Django website on google cloud using tutorial (https://cloud.google.com/python/django/appengine#cloud-console) My website is working smoothly on local host as well on Heroku (...
akshat priyadarshan's user avatar
8 votes
2 answers
3k views

How to make centralized Login server with Django?

Where I work currently there are many Django projects, each running on their own VPS, and each is running under their own subdomain (foo.example.com, bar.example.com, ...) as shown in the following ...
c0x6a's user avatar
  • 427
8 votes
0 answers
6k views

How to start Gunicorn server from python script

I've built a Django project that works, even after I freeze it using Cx_Freeze and Py2exe. Now I'm trying to set up the project for distribution, which requires a real webserver. I'm going for ...
mrj's user avatar
  • 619
7 votes
1 answer
7k views

@method_decorator(csrf_exempt) NameError: name 'method_decorator' is not defined

I was following the following guide (https://abhaykashyap.com/blog/post/tutorial-how-build-facebook-messenger-bot-using-django-ngrok) on how to create a chatbot, until the part where I updated the ...
iteong's user avatar
  • 725
7 votes
1 answer
11k views

Error: client intended to send too large body

I am using django-resto to upload my media files to remote server. However when I tried to upload, it gives me django_resto.storage: Failed on create. And Log generated below messages, open() "/var/...
Ahsan's user avatar
  • 726
7 votes
1 answer
5k views

What is "Application startup file" option on Cpanel python application?

I'm trying to deploy my django project to my host using cpanel, but there are some new options in Create python applications tab. What should i set for the following items: "Application startup file" ...
Overlord's user avatar
  • 152
7 votes
1 answer
4k views

Why not use "runserver" for production at Django?

Everywhere i see that uWSGI and Gunicorn are recommended for production mode from everyone. However, there is a lot more suffering to operate with it, the python manage.py runserver is more faster, ...
TrivialGirator's user avatar
6 votes
4 answers
9k views

How to get liveserver to render django templates?

I've been messing around with a tutorial site, and I found that my VS Code LiveServer plugin doesn't work properly when I try to open Django templates. The CSS I applied is missing (although ...
KyleR's user avatar
  • 149
6 votes
2 answers
5k views

Separate server for Memcache/Redis?

I am using Django for my project and I ll be hosting it on Linode or any other hosting service. Plus if I want to use memcache will I require a new Linode for it? Means just one server will be ok or I ...
user avatar
6 votes
3 answers
2k views

Django: Execute code only for `manage.py runserver`, not for `migrate`, `help` etc

We are using Django as backend for a website that provides various things, among others using a Neural Network using Tensorflow to answer to certain requests. For that, we created an AppConfig and ...
Chris Stenkamp's user avatar
6 votes
1 answer
2k views

How Can i use Nuxt and Django for production at the same time?

I have a background in Django and a some experience in Vue. I have used Vue for almost a year now, but since I need an SSR I have to use Nuxt.However, I am still very confused with how to deploy it in ...
C LALHMANGAIHA's user avatar
6 votes
1 answer
2k views

Should I use attach-daemon or smart-attach daemon to autostart celery with UWSGI (and easily update the tasks)

First off - I am aware UWSGI suggest using smart-attach-daemon from: http://uwsgi-docs.readthedocs.io/en/latest/AttachingDaemons.html Managing celery: [uwsgi] master = true socket = :3031 smart-...
Chozabu's user avatar
  • 1,023
5 votes
4 answers
8k views

Keep Django runserver alive when SSH is closed

I haven't yet been able to get Apache working with my Django app, so until I do get it working, I'm using runserver on my Linux server in order to demo the app. The problem is that whenever I close ...
Daniel's user avatar
  • 1,794
5 votes
7 answers
15k views

django server code not updating

I have an extensive program that is running on my server. The line with the error looks like the following: result[0].update(dictionary) result[0] looks like ("label",{key:value,...}) so I got an ...
Ryan Saxe's user avatar
  • 17.5k
5 votes
1 answer
9k views

how to config Django and how to run Gunicorn workers with cpu performance?

Im using, gunicorn django_project.wsgi:application --bind=127.0.0.1:8866 --daemon as command line to run my django on server with 6 processors and 14gb ram, but I did not setup workers, I am using 2 ...
Softsofter's user avatar
5 votes
1 answer
12k views

django site ERR_SSL_PROTOCOL_ERROR after https setting

So I am trying to deploy my site and basically tried python manage.py check --deploy and followed what ever it told me: WARNINGS: ?: (security.W004) You have not set a value for the ...
Hansong Li's user avatar
5 votes
1 answer
5k views

413 Request Entity Too Large uploading files with Django Admin and Nginx Configuration

Whenever I upload a small file, such as an image, the data is saved successfully. However, when I upload an audio file I get this error: 413 Request Entity Too Large. The file sizes are around 8MB. ...
mike-gallego's user avatar
5 votes
3 answers
6k views

Which server Django is using?

After we installed the Django, we use the command: python manage.py runserver we can run a server, but I don't know the server is which server, and I searched the django directory, find the server ...
aircraft's user avatar
  • 26.1k
5 votes
1 answer
3k views

How to deploy Angular with SSR and Django Rest Framework separately but on the same server

Most of the tutorials say that you have to integrate Angular into Django but I do not want to do that. I want to deploy both on the same server with Angular using Node.js Express and Django using ...
user9714967's user avatar
  • 1,704
5 votes
1 answer
3k views

How to run multiple Django App Gunicorn systemd?

I have two django projects running on different ports in same ec2 instance, One I have configured with gunicorn system as follows by creating gunicorn.service file at /etc/systemd/system/ which is ...
Piyush S. Wanare's user avatar
5 votes
4 answers
4k views

Setting up a Django development server that can be accessed by other devices on my network

I want to set up a Django development server that both my computers and smart phones can access whilst on my network via Wi-Fi. I've already set up a development server that my computer can access on ...
Mark's user avatar
  • 425
4 votes
3 answers
3k views

Django: handler403 doesn't work, but 404 does

Here is content of MyProj/urls.py: from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include('general.urls')), #...
AivanF.'s user avatar
  • 1,176
4 votes
2 answers
3k views

how to set sentry timezone?

I am getting this Feb 21, 2017 1:55:04 AM UTC showing in sentry.io but then I want the timezone showing America/Vancouver so the issue showing in sentry.io would match my timezone correctly. But ...
Dora's user avatar
  • 6,886
4 votes
3 answers
5k views

How can I setup my Django server on LAN

I have made a Django employee portal which will be accessed by LAN only. It works when another employee opens it by typing the IP address of the server on their web browser. However I don't have much ...
Rushikesh Mokashi's user avatar
4 votes
3 answers
6k views

connection error between two devices: ImportError: libmariadb.so.3: cannot open shared object file: No such file or directory

I have two devices that I use as MySql server and Django server. My system, which works on my development device, becomes inoperable when it switches to other devices. Settings on 192.168.3.60: ...
ZeQ's user avatar
  • 61
4 votes
2 answers
10k views

How to send captured webcam image and save to server via input field

I was working on a project where a user can change his profile pic by using his webcam. I successfully capture the image by webcam but I cannot append that capture image to my form here is my HTML ...
Antu's user avatar
  • 2,253
4 votes
1 answer
11k views

Custom systemd service to run Gunicorn not working

I am trying to deploy my Django website to a Ubuntu server. I am following this tutorial: linuxhint.com/create_django_app_ubuntu/. However, the Gunicorn service doesn't work. I have my site at /home/...
xedc's user avatar
  • 91
4 votes
0 answers
773 views

How to properly setup systemctl service with gunicorn?

I have a Django project that I run with gunicorn. My manage.py file is in /home/Projects/myproject/myproject. My virtualenv is in /home/myproject. In /lib/systemd/system I created a myproject....
Saša Kalaba's user avatar
  • 4,351
4 votes
1 answer
3k views

Django(Python) AttributeError: 'NoneType' object has no attribute 'split'

I get strange error when I visit post page. I make web application where you can post images and videos. With images it work fine, but when I post video and go to its page, server give me following ...
Slavko Ilic's user avatar
3 votes
3 answers
9k views

Django - CSS File Not Loading In Production (Debug: False) [duplicate]

Current error (Debug=False) "[16/Jan/2018 15:18:42] "GET /static/style.css HTTP/1.1" 404 90" Web site loads but broken formatting because CSS file not loaded Logging: On the CMD prompt it says "[...
math_is_for_nerds's user avatar
3 votes
1 answer
4k views

Could not install packages due to an EnvironmentError in ec2 server

i'm typing the following in my working amazon ec2 linux server. (with ENV activated) pip install pillow getting this error: Could not install packages due to an EnvironmentError: [Errno 13] ...
Dev9977's user avatar
  • 1,201
3 votes
2 answers
5k views

How to allow others to connect to my Django website?

Now that I have created a website, I wish the users can connect to my website within a local network. However my website now can only be accessible from the localhost (my pc), the others are not able ...
T08's user avatar
  • 83
3 votes
1 answer
3k views

simple django channels app not running with daphne

I’m trying to get django channels running with daphne but I always end up with this x8/backback/mysite » daphne mysite.asgi:application ...
Lily H.'s user avatar
  • 174
3 votes
1 answer
3k views

Azure web app service Django server log

I have been working with Azure's web app service using Resource Manager to deploy a Django app. It has been working in fits and starts. I really like the auto-deployment from GitHub but I have been ...
Declan's user avatar
  • 480
3 votes
2 answers
858 views

Run EmberJS and Django on the same server and port

I want to run EmberJS and Django on the same server for avoid to have cross-domain requests. So, for exemple, I want to run EmberJS on exemple.com:80 and Django REST API on exemple.com:80/...
Simoyw's user avatar
  • 691
3 votes
2 answers
962 views

Django Server Does not affect view changes

I m using Nginx, and Gunicorn on Ubuntu 18.04 to serve my Django project. I configured everything ( like here ) properly and working so well, but I noticed that changes in my views doesn't affect my ...
mevaka's user avatar
  • 2,000
3 votes
2 answers
2k views

Developer workflow: Does it matter which port is used during development?

Are there any differences between choosing this or that port? Are there any standards for picking a port? I'm just looking for the "why" a particular port was picked to be used. There doesn't appear ...
The cows are in the Meadow's user avatar
3 votes
1 answer
1k views

taking a django site down for maintenance?

I am running django with nginx/gunicorn. I am not deeply familiar with how nginx and gunicorn work, but suppose that I want to take my django site down for maintenance. I assume I would be wanting ...
Joff's user avatar
  • 11.7k
3 votes
1 answer
440 views

Python manage.py runserver doesn't work on a project (Django)

So I made my own project it worked with python manage.py runserver but when I tried with a new project, it's a challenge project and the challenge is to improve the django app. I use Python 3.8.1 (64-...
Mikael Kolehmainen's user avatar
3 votes
2 answers
1k views

Does load balancing make sense on a single hardware server?

This might be a case of not actually understanding how load balancing works, but bear with me... I'm currently in the process of designing a web app, and have a single hardware server available to me. ...
Raph117's user avatar
  • 3,591
3 votes
1 answer
192 views

Trying to access database from my local server

I want to access a database from Zoho Creator using their REST API (https://www.zoho.com/creator/help/api/rest-api/rest-api-add-records.html) I read that I cannot do that from the client side (because ...
Erik Ahlund Helguera's user avatar
3 votes
1 answer
3k views

Django runserver error: unsupported operand type(s) for +=: 'NoneType' and 'str'

I'm running a local dev project made with Django. But I cannot have the dev server to start: (Gaia_database_env)FakeComputer:gaia_database_proj FakeUser$ python manage.py runserver Traceback (most ...
Bakaburg's user avatar
  • 3,221

1
2 3 4 5
11