Skip to main content

A web based console for Django's development server built using Tornado

Project description

This is a Tornado server built to run the Django builtin ‘runserver’ command.

Why on earth would one want to do such a crazy thing?

The main reason this was built was for the use case of a team environment where the developers are using Vagrant for local development and want to give the less terminal savvy users an easy way to run and control the Django development server.

How do I use this?

For testing purposes:

  1. Clone this repository.

  2. Create a new virtualenv

  3. Install Django & tornado via pip

  4. Run the fujita.py script with the command to run the testproject (see below)

  5. Visit the Fujita Console in your browser

To distribute a Fujita Console in your project simply list django-fujita in your requirements and then add a fujita.py script to the root.

Running the fujita.py script

You need to tell the script how to run your development server through the --command option.

If you’re following the steps above then you’ll want to use something similar to the following command:

./scripts/fujita.py --command "/home/user/.virtualenvs/fujita/bin/python /home/user/projects/django-fujita/testproject/manage.py runserver 0:8000"

The above command assumes you have a virtualenv named fujita in the .virtualenvs directory in your home. It also assumes that you have a projects directory in your home and the django-fujita repository has been checked out there. Adjust for your setup.

The command is run under /bin/sh so you can set environment variables by prefixing them in front of the command:

./scripts/fujita.py --command "DJANGO_SETTINGS_MODULE=project.settings.dev django-admin.py runserver 0:8000"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-fujita-0.2.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file django-fujita-0.2.tar.gz.

File metadata

  • Download URL: django-fujita-0.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-fujita-0.2.tar.gz
Algorithm Hash digest
SHA256 7f6b7aec9531bb805d0ce9e77f18c554901b80cdbd002b9a47d7d2c7c4a3b5e8
MD5 b279296ea3d6cea171079970a889b5f6
BLAKE2b-256 5c3326462a6d14b9116ac3d072376e94da2b062869f51c5d2113828e21fa2890

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page