Questions tagged [django-runserver]

runserver is the Django built-in development web server

Docs: manage.py runserver

32 questions
2
votes
1 answer

ModuleNotFoundError: No module named 'django.contrib.staticfilesbase'

Every time I try to run my program using python manage.py runserver, this same error comes up: "ModuleNotFoundError: No module named 'django.contrib.staticfilesbase'"
2
votes
1 answer

Django runserver_plus Werkzeug not installed error, although it is

I am trying to run my Django application using runserver_plus as I am using an SSL certificate to create HTTPS connections to the backend. In order to do so, I have done the following: pip install django_extensions Installed Django extensions to…
1
vote
1 answer

New to django, django server not loading home page

I started a Django project and went through the regular setup process: I used the "startproject" command to create a project named "social_clone_project", and I used "startapp" to create an app named "accounts". Then I created a "views.py" file and…
pyJude
  • 11
  • 1
1
vote
3 answers

Django REST Framework making a request to itself

I have a question that might have a very simple answer. Everywhere I look it says that the Django development server (manage.py runserver) is multithreaded (https://docs.djangoproject.com/en/3.2/ref/django-admin/) but this is not what I am…
1
vote
0 answers

CSS acting differently in localhost

I'm working on a project. So first, i started with front-end. And then after finishing that, i loaded all the files in django app and started the localhost. But suddenly everything seems to be bigger. Most of the padding, margin, font-size, changes…
1
vote
5 answers

Django: Avoid clash of port 8000 (runserver)

I develop on serveral projects at once. If I run the runserver twice, I get this error: System check identified no issues (0 silenced). September 10, 2021 - 10:44:26 Django version 3.1.4, using settings 'mysite.settings' Starting development server…
guettli
  • 25,042
  • 81
  • 346
  • 663
0
votes
1 answer

Django 'python manage.py runserver' has stopped working. How can I fix this?

I'm attempting to use Django to create a website builder. I have created a development webserver with "python manage.py runserver" and it worked initially. I created a Products app and added code in the views module and the url module under this…
0
votes
1 answer

Can't access Django server from browser

I am working on a centOS7 server, I created a project and used python manage.py runserver command. From a browser on my local machine, I cannot access the localhost:8000 address. I tried precising the address like python manage.py runserver…
Geek2.0
  • 3
  • 2
0
votes
0 answers

https forced in development by django. Problem with DJANGO_SECURE_HSTS_SECONDS?

Something in my Django code is forcing development server (runserver) redirection from http to https. I get these logs by docker web container after running docker compose up -d --build and trying to access my website development server: 2023-07-04…
0
votes
0 answers

Run development server using django exe

I have been trying to run the exe file(created using pyInstaller) of my Django project on the development server so that I can verify whether it is working properly or not. Tried some commands and also asked Chatgpt but could find any suitable…
0
votes
2 answers

Pycharm: python manage.py runserver returns nothing

I am struggling to get the http link from pycharm. I must say I am pretty new to software engineering and I am only following tutorials. I am currently stuck on this problem and I can't find any answer. Henter image description hereope someone can…
Andrew
  • 1
  • 1
0
votes
0 answers

getting this Error: "You don't have permission to access that port" for all the ports I have tried

Getting this Error: "You don't have permission to access that port" for every solution I have tried to run the server python3 manage.py runserver enter image description here sudo python3 manage.py runserver 80 enter image description…
0
votes
0 answers

how to successfully start the server in django?

Whenever I put the command python manage.py runserver and it throws an error. from django.utils.encoding import python_2_unicode_compatible ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding'…
0
votes
0 answers

run automatically Nginx and Python script

I have a Django application that's lunched in Windows server 2016. using Nginx so my problem is I should start the application manually every time the server is rebooted. First I should open CMD and start Nginx.exe then I must run a python script…
tibas
  • 139
  • 13
0
votes
0 answers

How to monitor if the django sslserver is down

We are starting our server using django using the below command and it works fine. Python3 ./manage.py runsslserver www.abc.com:8443 —certificate abc.vet —key abc.pem But sometimes it automatically crashes . I would like to understand about how to…
user2256825
  • 594
  • 6
  • 22
1
2 3