django-devserver icon indicating copy to clipboard operation
django-devserver copied to clipboard

Make devserver run on Python 3

Open bkabrda opened this issue 11 years ago • 15 comments

Hi, since Django can run on Python 3 now, I thought it would be nice if devserver could, too. I didn't use six library for compatibility, because I think the modifications are easy enough to keep them as they are...

bkabrda avatar Mar 27 '13 10:03 bkabrda

+1 as I was also needing/wanting this today.

scottwoodall avatar Nov 17 '13 13:11 scottwoodall

Should probably just use self.stdout.write() and self.stderr.write() instead of print() as suggest in the docs.

lithammer avatar Nov 29 '13 12:11 lithammer

What the status of this issue? Does django-devserver support Python 3 now?

keimlink avatar Sep 10 '14 08:09 keimlink

+1 for this one - I've been using coagulant's fork

gone avatar Mar 15 '15 17:03 gone

+1, this project seems very interesting and I'd love to use it, but unfortunately I am on Python 3 !

ALenfant avatar Mar 30 '15 15:03 ALenfant

+1

mikaelengstrom avatar Aug 02 '15 13:08 mikaelengstrom

Our organization is running on Python 3 exclusively now as well. Shall we start a branch and collaborate if there's enough interest?

FlipperPA avatar Aug 03 '15 14:08 FlipperPA

@FlipperPA I´m interested and could help out.

mikaelengstrom avatar Aug 05 '15 10:08 mikaelengstrom

Is there a fork anyone is using?

rattrayalex avatar May 04 '16 06:05 rattrayalex

I know someone that is using this branch for python 3. https://github.com/alexryabtsev/django-devserver/commits/master

egrubbs avatar May 04 '16 16:05 egrubbs

@egrubbs why is Python 3 support not wanted?

Ismael-VC avatar Feb 27 '17 01:02 Ismael-VC

@dcramer Are you there?

ebertti avatar Apr 25 '17 16:04 ebertti

@ebertti Unless you're his boss I don't think you should ask questions in that tone. If you want to help develop a project, perhaps test the outstanding pull request(s) and report your results.

acdha avatar Apr 25 '17 17:04 acdha

I'm guessing the maintainer probably doesn't have much time to give to this project, as he's the founder and CEO of Sentry, which has exploded over the past few years (congrats to you, @dcramer!). If you look at his commit history, it is pretty clear that's where his attention is, and should be. I wonder if he'd be amenable to someone taking this project over as maintainer, especially since Django 2.0 (coming in ~December) will only support Python 3 going forward.

Also worth considering, most of the features of this package can be accomplished in Django or are covered nicely in Django Debug Toolbar, for example:

  • Setting up logging to file is possible.
  • As of Django 1.8 (IIRC the version correctly), runserver is multithreaded by default (as I found out when running a single-threaded DB driver, hehe). The --no-threading option was introduced.
  • Django Debug Toolbar has awesome SQL parsing, explain syntax, and more
  • Using IPython's embed() is amazing for interactive debugging with Django's runserver

Has this project become redundant? If not, can any of the features be pushed upstream to Django's runserver or Django Debug Toolbar?

FlipperPA avatar Apr 25 '17 21:04 FlipperPA

@FlipperPA The main reason I still use devserver is for speed & AJAX: I often want is the query count/time info for API requests. I've been wondering whether it might be better to basically do a modern Django fork which would add only that information and forgo everything else since it's also much easier: hook the database, cache, etc. calls on startup and then turn control over to the stock WSGI app.

acdha avatar Apr 26 '17 17:04 acdha