Questions tagged [django-dev-server]

django-dev-server refers to lightweight web server provided by Django for development purposes

django-dev-server refers to lightweight web server provided by Django for development purposes.

See documentation.

Also django-dev-server can refer to pluggable django app that replaces Django's built-in runserver command.

51 questions
23
votes
1 answer

What's the meaning of the default output of manage.py runserver?

What's the meaning of the default output of manage.py runserver? Can't find any documentation on it: [25/Jan/2013 07:45:59] "GET / HTTP/1.1" 200 149
htmldrum
  • 2,431
  • 20
  • 20
14
votes
3 answers

Django dev server intermittently fails to serve static files

In my development environment I'm getting intermittent failures for serving static files (js scripts and css). In the error console in Chrome I get 404s. But if I refresh on those items, or visit the URLs directly, they're served up fine. This is…
Joe
  • 46,419
  • 33
  • 155
  • 245
13
votes
3 answers

Django development server and MIME types

Is there anyway of setting MIME types in the django development server? Specifically, I would love to remove this message from the warnings in Chrome dev tools. Resource interpreted as Image but transferred with MIME type image/x-png
9
votes
2 answers

Django - use pdb interactive debug for wsgi running app

If I develop a Django app and use the included testing server, I can just add a import pdb; pdb.set_trace() anywhere in the code and have a breaking point that throws me into an interactive debugger. To make things clear, I dont' mean using any IDE,…
NeuronQ
  • 7,527
  • 9
  • 42
  • 60
5
votes
4 answers

Very slow first request in Django Development server

Whenever I run python manage.py runserver and accesses my website with localhost:8000 in the browser, the first request is VERY slow (around 10 seconds). Following requests are really fast. Is there any way to improve the performance of this? It's…
jhagege
  • 1,486
  • 3
  • 22
  • 36
4
votes
1 answer

django python manage.py runserver RuntimeError: Settings already configured

I am quite new to Django and Python. My environ is Win7 and Python3.4. Now following the tutorial in Django Official Website to build a web app. At first, everything works quite well and output are all expected and correct. But today when I re-run…
X.C.
  • 703
  • 9
  • 18
4
votes
3 answers

Serve different Static files on devel and production in Django

I have a production and local DJANGO development environment. To push things to production we have a deployer which minifies and gzips all CSS and JS files. To serve them on production I need to call them like
4
votes
3 answers

Testing Django project, how can I avoid Errno 10054?

I'm testing a simple django project using its own development server. However every time I close my IE client an error appears in the console. It doesn't cause any failure though. When I open another IE browser client everything is normal. How can I…
kev
  • 41
  • 1
3
votes
1 answer

Django IDE : how to start the devserver in an editor?

I`m trying to develop a simple plugin for the Editra editor for django development. Right now it can create django projects and apps from within the editor. The editor is based on wxPython and I want to start the devserver from within the editor,…
Weholt
  • 1,889
  • 5
  • 22
  • 35
3
votes
0 answers

Django dev server serving css files with wrong mimetype

My browser (firefox) console confirms receiving files with status 200 but firefox gives me this: The stylesheet http://localhost:8000/css/full-width-pics.css was not loaded because its MIME type, "text/html", is not "text/css". localhost:8000 The…
Hauzron
  • 305
  • 1
  • 3
  • 19
3
votes
2 answers

Django serving each app separately in each its port

I've got a very simple project running on Django (no models yet) and I need to do the following: I have created 2 apps, 'Ebony' and 'Ivory' that need to communicate with each other through JSON messages (originally designed to run on different…
stratis
  • 7,750
  • 13
  • 53
  • 94
2
votes
1 answer

Change colors of output log text from Django development server

When running the django test server on a local project, can you make 400/500 errors stand out in a different color in output text?
MikeN
  • 45,039
  • 49
  • 151
  • 227
2
votes
1 answer

Django https with a dev server

I'm trying to use SpeechRecognition/ webkitSpeechRecognition in my website, and thus need to run a dev server in django using https. I've taken the following steps: install and configure runserver_plus from django-extensions add the cert generated…
Preston
  • 7,399
  • 8
  • 54
  • 84
2
votes
0 answers

How to slow down the django debug server

What is a best way to slow down the django runserver in debug mode? I want to emulate the weak server.
Y.N
  • 4,989
  • 7
  • 34
  • 61
2
votes
1 answer

Django test server and development server intermittently having trouble retrieving external resources

I am working on a Django app on Ubuntu 16.04, and recently noticed that functional tests using selenium in the test suite for my Django app will sometimes fail (timeout). These are tests that previously passed, and no code has been changed. When…
elethan
  • 16,408
  • 8
  • 64
  • 87
1
2 3 4