├── README.mkd ├── lightwrite ├── .local_settings.py.swp ├── .urls.py.swp ├── __init__.py ├── local_settings.py ├── manage.py ├── run.sh ├── settings.py ├── templates │ ├── .light.html.swp │ ├── about.html │ └── light.html ├── texts │ ├── __init__.py │ ├── models.py │ ├── tests.py │ ├── urls.py │ └── views.py └── urls.py └── static ├── clippy.swf ├── favicon.ico ├── favikon.ico ├── gunio.png ├── gunio2.png ├── jquery.textarea.js ├── light.css ├── smoke.css ├── smoke.min.js └── themes └── dark.css /README.mkd: -------------------------------------------------------------------------------- 1 | # [LightWrite](http://gun.io/w/) - by Gun.io 2 | ## A web-based WriteRoom clone 3 | ### Rich Jones - rich@gun.io 4 | 5 | LightWrite is a free and open source web-based clone of [WriteRoom](http://www.hogbaysoftware.com/products/writeroom) by HogBaySoftware. 6 | 7 | LightWrite is built on lots of open source componants, including Python, Django, jQuery, and Smoke.js. 8 | 9 | Are there bugs or features you want for LightWrite? Get in touch! 10 | -------------------------------------------------------------------------------- /lightwrite/.local_settings.py.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Miserlou/LightWrite/2f76420a05d297b77f812300b83488fa3a39e9e2/lightwrite/.local_settings.py.swp -------------------------------------------------------------------------------- /lightwrite/.urls.py.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Miserlou/LightWrite/2f76420a05d297b77f812300b83488fa3a39e9e2/lightwrite/.urls.py.swp -------------------------------------------------------------------------------- /lightwrite/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Miserlou/LightWrite/2f76420a05d297b77f812300b83488fa3a39e9e2/lightwrite/__init__.py -------------------------------------------------------------------------------- /lightwrite/local_settings.py: -------------------------------------------------------------------------------- 1 | MEDIA_ROOT = '/home/tuttle/Projects/LightWrite/static' 2 | SITE_ROOT = '/home/tuttle/Projects/LightWrite/' 3 | STATICFILES_DIRS = ( 4 | '/home/tuttle/Projects/LightWrite/static/', 5 | ) 6 | 7 | -------------------------------------------------------------------------------- /lightwrite/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | from django.core.management import execute_manager 3 | import imp 4 | try: 5 | imp.find_module('settings') # Assumed to be in the same directory. 6 | except ImportError: 7 | import sys 8 | sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__) 9 | sys.exit(1) 10 | 11 | import settings 12 | 13 | if __name__ == "__main__": 14 | execute_manager(settings) 15 | -------------------------------------------------------------------------------- /lightwrite/run.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | python manage.py runserver 3 | -------------------------------------------------------------------------------- /lightwrite/settings.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | # Django settings for lightwrite project. 4 | 5 | DEBUG = True 6 | TEMPLATE_DEBUG = DEBUG 7 | 8 | ADMINS = ( 9 | # ('Your Name', 'your_email@example.com'), 10 | ) 11 | 12 | MANAGERS = ADMINS 13 | 14 | DATABASES = { 15 | 'default': { 16 | 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 17 | 'NAME': 'text_db', # Or path to database file if using sqlite3. 18 | 'USER': '', # Not used with sqlite3. 19 | 'PASSWORD': '', # Not used with sqlite3. 20 | 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 21 | 'PORT': '', # Set to empty string for default. Not used with sqlite3. 22 | } 23 | } 24 | 25 | # Local time zone for this installation. Choices can be found here: 26 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name 27 | # although not all choices may be available on all operating systems. 28 | # On Unix systems, a value of None will cause Django to use the same 29 | # timezone as the operating system. 30 | # If running in a Windows environment this must be set to the same as your 31 | # system time zone. 32 | TIME_ZONE = 'America/Chicago' 33 | 34 | # Language code for this installation. All choices can be found here: 35 | # http://www.i18nguy.com/unicode/language-identifiers.html 36 | LANGUAGE_CODE = 'en-us' 37 | 38 | SITE_ID = 1 39 | 40 | # If you set this to False, Django will make some optimizations so as not 41 | # to load the internationalization machinery. 42 | USE_I18N = True 43 | 44 | # If you set this to False, Django will not format dates, numbers and 45 | # calendars according to the current locale 46 | USE_L10N = True 47 | 48 | # Absolute filesystem path to the directory that will hold user-uploaded files. 49 | # Example: "/home/media/media.lawrence.com/media/" 50 | MEDIA_ROOT = '' 51 | 52 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a 53 | # trailing slash. 54 | # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" 55 | MEDIA_URL = '' 56 | 57 | # Absolute path to the directory static files should be collected to. 58 | # Don't put anything in this directory yourself; store your static files 59 | # in apps' "static/" subdirectories and in STATICFILES_DIRS. 60 | # Example: "/home/media/media.lawrence.com/static/" 61 | STATIC_ROOT = '' 62 | 63 | # URL prefix for static files. 64 | # Example: "http://media.lawrence.com/static/" 65 | STATIC_URL = '/static/' 66 | 67 | # URL prefix for admin static files -- CSS, JavaScript and images. 68 | # Make sure to use a trailing slash. 69 | # Examples: "http://foo.com/static/admin/", "/static/admin/". 70 | ADMIN_MEDIA_PREFIX = '/static/admin/' 71 | 72 | # Additional locations of static files 73 | STATICFILES_DIRS = ( 74 | # Put strings here, like "/home/html/static" or "C:/www/django/static". 75 | # Always use forward slashes, even on Windows. 76 | # Don't forget to use absolute paths, not relative paths. 77 | ) 78 | 79 | # List of finder classes that know how to find static files in 80 | # various locations. 81 | STATICFILES_FINDERS = ( 82 | 'django.contrib.staticfiles.finders.FileSystemFinder', 83 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 84 | # 'django.contrib.staticfiles.finders.DefaultStorageFinder', 85 | ) 86 | 87 | # Make this unique, and don't share it with anybody. 88 | SECRET_KEY = '4!&@ud38$05-t!-8(7nr4u2*tn9p!7yme%wy#lx%fqrgn44=v5' 89 | 90 | # List of callables that know how to import templates from various sources. 91 | TEMPLATE_LOADERS = ( 92 | 'django.template.loaders.filesystem.Loader', 93 | 'django.template.loaders.app_directories.Loader', 94 | # 'django.template.loaders.eggs.Loader', 95 | ) 96 | 97 | TEMPLATE_DIRS = ( 98 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". 99 | # Always use forward slashes, even on Windows. 100 | # Don't forget to use absolute paths, not relative paths. 101 | os.path.join(os.path.dirname(__file__), 'templates'), 102 | ) 103 | 104 | 105 | MIDDLEWARE_CLASSES = ( 106 | 'django.middleware.common.CommonMiddleware', 107 | 'django.contrib.sessions.middleware.SessionMiddleware', 108 | 'django.middleware.csrf.CsrfViewMiddleware', 109 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 110 | 'django.contrib.messages.middleware.MessageMiddleware', 111 | # Uncomment the next line for simple clickjacking protection: 112 | # 'django.middleware.clickjacking.XFrameOptionsMiddleware', 113 | ) 114 | 115 | ROOT_URLCONF = 'lightwrite.urls' 116 | 117 | INSTALLED_APPS = ( 118 | 'django.contrib.auth', 119 | 'django.contrib.contenttypes', 120 | 'django.contrib.sessions', 121 | 'django.contrib.sites', 122 | 'django.contrib.messages', 123 | 'django.contrib.staticfiles', 124 | 'texts' 125 | # Uncomment the next line to enable the admin: 126 | # 'django.contrib.admin', 127 | # Uncomment the next line to enable admin documentation: 128 | # 'django.contrib.admindocs', 129 | ) 130 | 131 | try: 132 | from local_settings import * 133 | except: 134 | pass 135 | 136 | -------------------------------------------------------------------------------- /lightwrite/templates/.light.html.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Miserlou/LightWrite/2f76420a05d297b77f812300b83488fa3a39e9e2/lightwrite/templates/.light.html.swp -------------------------------------------------------------------------------- /lightwrite/templates/about.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |LightWrite is a free and open source web-based clone of WriteRoom by HogBaySoftware. 7 |
The source code is available on GitHub here. 8 |
LightWrite is built on lots of open source componants, including Python, Django, jQuery, and Smoke.js. 9 |
Are there bugs or features you want for LightWrite? Get in touch! 10 | 11 |
LightWrite is written in Django by Rich Jones for Gun.io, a place for independent and open source developers to hire assistance on their projects. 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /lightwrite/templates/light.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |