equal
deleted
inserted
replaced
1190 validate() |
1190 validate() |
1191 print "\nDjango version %s, using settings %r" % (get_version(), settings.SETTINGS_MODULE) |
1191 print "\nDjango version %s, using settings %r" % (get_version(), settings.SETTINGS_MODULE) |
1192 print "Development server is running at http://%s:%s/" % (addr, port) |
1192 print "Development server is running at http://%s:%s/" % (addr, port) |
1193 print "Quit the server with %s." % quit_command |
1193 print "Quit the server with %s." % quit_command |
1194 try: |
1194 try: |
1195 import django |
1195 handler = AdminMediaHandler(WSGIHandler(), admin_media_path) |
1196 path = admin_media_dir or django.__path__[0] + '/contrib/admin/media' |
|
1197 handler = AdminMediaHandler(WSGIHandler(), path) |
|
1198 run(addr, int(port), handler) |
1196 run(addr, int(port), handler) |
1199 except WSGIServerException, e: |
1197 except WSGIServerException, e: |
1200 # Use helpful error messages instead of ugly tracebacks. |
1198 # Use helpful error messages instead of ugly tracebacks. |
1201 ERRORS = { |
1199 ERRORS = { |
1202 13: "You don't have permission to access that port.", |
1200 13: "You don't have permission to access that port.", |