Questions tagged [django-runserver]

runserver is the Django built-in development web server

Docs: manage.py runserver

32 questions
0
votes
1 answer

Windows Django: Error: You don't have permission to access that port

I am trying to run a Django project in Windows but I am getting Error: You don't have permission to access that port. Running python manage.py runserver and python manage.py runserver "IP":"PORT" returned same result/error. I searched for answers…
Ricky Aguilar
  • 329
  • 1
  • 8
  • 19
0
votes
0 answers

Update default port for Django server

I would like to make the website built on Django server (hosted on AWS EC2 instance) as public. As a first step, I would want to update the default port from 0.0.0.0:8000 to 0.0.0.0:80 or 0.0.0.0. Every time I change port and run server, it gives me…
0
votes
0 answers

define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings

I originally installed Python 3.10.4 on my windows 11 OS. I then installed virtualenv, via pip, ran the virutalenv worked fine. I then Installed Django with the env open. I tried... Restarted my computer and got this error when I try to run…
0
votes
1 answer

Django liveserver displays as plain text

I ran my server with python manage.py runserver and for some reason it started displaying as plain text. When I run it as a live server it comes out normal. I have no idea what I changed that messed it up. Seems like a longshot but if anyone has…
aids
  • 19
  • 3
0
votes
1 answer

How to Deploy Django App on Centos server having domain secured With SSL?

I have a Django App which I want to deploy on a Centos Linux server having a global/public IP which is assigned to a domain and is secured with SSL. The System configuration is as: centos-release-6-10.el6.centos.12.3.x86_64 Apache/2.2.15…
0
votes
2 answers

Python Can not found - Django, runserver err

I can't run my Django project, can you help? While py can run any py file in the terminal as py_any_project_name.py, when I type py manage.py runserver or python manage.py runserver, I get python not found error. Any ideas on the cause and solution?…
0
votes
3 answers

How to run the django-admin manage.py runserver

I just want to call this command : django-admin manage.py runserver but it always fails and it gives me this message instead: (No Django settings specified. Unknown command: 'manage.py') what can I do ?
0
votes
0 answers

Syntax error while running python3 manage.py runserver

Im facing the below issue on my mac when I run 'python3 manage.py runserver' command THE HOST IS ===>SHEEKRIS-M-V6GG File "/Users/sheekris/DjangoDeveloperProject/django_api/gve-api/app/manage.py", line 16 ) from exc ^ SyntaxError: invalid…
0
votes
0 answers

I have installed mysqlclient , but not able to run server

I am a beginner in python and Django. I would like to connect my Django project to MySQL database,I have installed mysqlclient brew install mysql pipenv install mysqlclient but after changing the settings to: DATABASES = { 'default': { …
Nilou99
  • 1
  • 2
0
votes
1 answer

Django runserver - Can you output the connecting IP to the console?

I am trying to capture the IP address of incoming connections to the console using the development webserver that comes with django (manage.py runserver 0.0.0.0:8000). Right now, I get the following output on requests: [24/Feb/2022 13:03:38] "GET…
jonesy19
  • 139
  • 1
  • 16
0
votes
0 answers

Django: django.db.migrations.exceptions.NodeNotFoundError

I was making new project and app. Then when I have typed 'python3 manage.py runserver' django.db.migrations.exceptions.NodeNotFoundError: Migration auth.0013_auto_20210902_0542 dependencies reference nonexistent parent node ('auth',…
kimhaju
  • 19
  • 6
0
votes
0 answers

Django application run without command line like php web application

I want to launch Django application without giving command "python manage.py runserver". Like how php works, when hit the index file it will launch the application but in django/python i didn't find any way to do that in windows OS except run the…
user15422497
-1
votes
1 answer

manage.py runserver python not found

I'm trying to learn django and I'm almost completely new to python, I'm using pycharm btw. My problem is that when i try to type python manage.py runserver in the PyCharm terminal it just tells me that Python was not found. I have already tried to…
-1
votes
2 answers

why is django server not working? (connection refused error)

I am doing a course : cs50 web programming with python and in project 2 Commerce while using python manage.py runserver I am getting this error: This site can’t be reached 127.0.0.1 refused to connect. this is project 2 commerce.…
-2
votes
2 answers

I can't run the command : python manage.py runserver

I can't run the command 'python manage.py reunserver' on my terminal. I dont know why, here is what the terminal shows me : enter image description here Can please someone help me ? I tried to execute the django dev server but it didn't worked.…