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
2
votes
1 answer

The logs of POST/GET requests from Django application on Apache

Django development server is really nice, it shows the log of all POST/GET requests as well as other events in real time. Example of logs from Django dev server: [04/Jul/2012 19:23:27] "GET /static/images/sprites/submit_url_hover.png HTTP/1.1" 200…
Arman
  • 1,074
  • 3
  • 20
  • 40
1
vote
1 answer

Serving static files in development with django-devserver

I finally got around to trying out django-devserver. It's installed and working but static files refuse to load (Django 1.3). (Note: static files work fine with the standard runserver management command, before switching to django-devserver, so all…
Chris Pratt
  • 232,153
  • 36
  • 385
  • 444
1
vote
2 answers

Getting error with Django while requesting any url

I am running django on django's development server. It was working fine before but from yesterday i keep getting this error on the linux command line where server was running. Exception happened during processing of request from ('57.xx.xx.123',…
Mirage
  • 30,868
  • 62
  • 166
  • 261
1
vote
2 answers

Django development server shutdown on error

I am running a dev server on localhost to test a django app. About a week ago the dev server started exiting on error- which is not ideal. To give you an instance, imagine I want to create a new view, I make my template, then I add the following in…
Preston
  • 7,399
  • 8
  • 54
  • 84
1
vote
1 answer

Django Development server displaying wrong project data

I am able to access the django development server 127.0.0.1:8000 even without running "python manage.py runserver". It is displaying the previously created project website. Even when I run manage.py runserver from a different project it still show…
Vishal S
  • 23
  • 2
1
vote
2 answers

In Django 1.3 alpha 1, does the built-in web server cache pages (or database results) more aggressively than before?

I’m using Django version 1.3 alpha 1 (SVN-14750) to build a Django site. I’ve got a couple of pages which display data, and allow me to edit that data. However, I seem to have to restart the built-in Django web server to see the updated data. I…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
1
vote
0 answers

Cookieless domains for static in Django + Nginx

I've found a tip of using cookieless domains for serving static files. My experiments have shown seriuos drop in request time (django-debug-toolbar) that is pretty much what I wanted to get. The problem is that I want to add…
1
vote
3 answers

Why can't I import modules in a Django project?

I am trying to pick up an old Django project and my immediate goal is to see what I can get running on my computer on the development server. I get: Inner Sanctum ~/pragmatometer $ python manage.py runserver Traceback (most recent call last): …
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
1
vote
1 answer

Can a development server buffer HTTP requests while reloading?

We all love that Django's development server (manage.py runserver) notices file changes and reloads. But I find that I often beat the dev server to the punch - I hit reload in my browser while the project is still reloading. This results in an…
Shimon Rura
  • 439
  • 4
  • 13
1
vote
1 answer

Django development server. CSS files being served as 'text/html'

I'm using Django 1.8. I get status 200 for both of my css files but the firefox says: 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 stylesheet…
Hauzron
  • 305
  • 1
  • 3
  • 19
1
vote
1 answer

How to restart a Django development web server in virtual machine on file modification?

I have a VirtualBox machine managed by Vagrant. On this machine I run a Django development web server: ./manage.py runserver 0.0.0.0:8080 The codebase is big so for faster code reload I installed pyinotify. Django supports it since 1.7. I'm using…
Burnash
  • 3,181
  • 2
  • 31
  • 35
1
vote
0 answers

Getting Error NoReverseMatch error in Django. (It works at local but doesn't work at server)

I have project and i must to deploy my project to server. In local, my project can work properly. But, when i try to run in server. Why appears this error Environment: Request Method: GET Request URL:…
1
vote
0 answers

Django development server not returning JSON responses

Or rather, it's returning them as text, which is really odd. So I have this line of code in my javascript to test this that's $.get('/static/js/categories.json', function(response){ console.log(response); }); I can verify that the actual location…
Jared Joke
  • 1,226
  • 2
  • 18
  • 29
1
vote
1 answer

how to set django development server

I am stuck on this step: i have a page, which i am developing in django. the page is ready to test. i deployed it. running well and it is online. but now i want to setup a new project in server as the testing version of what is online now. I went…
doniyor
  • 36,596
  • 57
  • 175
  • 260
1
vote
1 answer

Turning off model validation on Django dev-server

Stage of models validation is most longest in Django dev-server startup. And in my case it mostly waste of time, since my models сhanging infrequently. Is there way to turn off this?
Gill Bates
  • 14,330
  • 23
  • 70
  • 138