Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!
Python Zone is brought to you in partnership with:

As the founder and software architect of subzin.com, Luis drives the development of subzin search. Luis is a DZone MVB and is not an employee of DZone and has posted 3 posts at DZone. You can read more from them at their website. View Full User Profile

Django-IDE

02.22.2012
Email
Views: 2430
  • submit to reddit
This content is part of the Python Zone, which is presented to you by DZone and New Relic. Visit the Python Zone for news, tips, and tutorials on the Python programming language.  New Relic provides the resources and best practices to help you monitor these applications.

The Django-IDE is a web based IDE made with HTML5 and JavaScript.

Currently, the following features have been written and are working:

  • Local storage: When you open a file once, this is copied to browser local storage,
    so the next times you open this file, if it has not changed, it will open intantaneusly
    from browser storage instead of getting it from server.
  • Offline mode: When you lose your connection, as it uses the local storage to save data on your browser,
    you can continue working in the open files and the changes generated offline will be sent
    to the server the next time the ide detects a connection.
  • Sync changes: If you are editing a file and, at the same time, other person edits it, the ide notify you
    of these changes and proposes you to get external changes or override with yours.
  • Resources filter
  • Source code color syntax
  • Source code formatting

Installation


  • From pypi:
    $pip install django-ide
  • From source:
    $python setup.py install
    

Configuration

The Django-IDE has two settings that can be set in settings.py:

  1. Add djide to your INSTALLED_APPS in your settings.py project:

    INSTALLED_APPS = (

    ‘djide’,

  2. Include djide urls in your urls.py project:

    urlpatterns = patterns(

    (r’^djide/’, include(‘djide.urls’)),


RUN

$python manage.py runserver
That’s it, the last command should start a local server on port 8000, now you can
open your browser and go to 127.0.0.1:8000/djide to edit your projects apps.

TODOs and BUGS

See: https://github.com/lusob/django-ide/issues


Source: http://lusob.com/2012/01/django-ide/

Published at DZone with permission of Luis Sobrecueva, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Python is a fast, powerful, dynamic, and versatile programming language that is being used in a variety of application domains. It has flourished as a beginner-friendly language that is penetrating more and more industries. The Python Zone is a community that features a diverse collection of news, tutorials, advice, and opinions about Python and Django. The Python Zone is sponsored by New Relic, the all-in-one web application performance tool that lets you see performance from the end user experience, through servers, and down to the line of application code.