{ "info": { "author": "Eric Florenzano", "author_email": "floguy@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "django-simplestatic\n===================\n\nDjango SimpleStatic is an opinionated Django app which makes it very simple to\ndeal with static media, with extremely minimal configuration, as long as:\n\n* You store your static media in one directory, rather than alongside each app.\n* You want your files served from S3, rather from your own servers.\n* You want to use Google Closure Compiler to compress your JavaScript.\n* You want to compress your javascript ahead of time, rather than during the\n request.\n* You don't use any of those fancy CSS precompilers like LESS or SCSS. (This\n may change someday as my personal preferences change.)\n\nIf any of the above don't hold true, then this library probably won't work for\nyou. That said, if all of the above do hold true for you, then this app will\nlikely be the simplest and best way to handle your static media.\n\n\nInstallation\n------------\n\n1. pip install django-simplestatic\n\n2. Add 'simplestatic' to your INSTALLED_APPS:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.sites',\n 'django.contrib.admin',\n\n # ... all your installed apps\n\n 'simplestatic',\n )\n\n3. In your settings file, set the following values:\n\n.. code-block:: python\n\n SIMPLESTATIC_DIR = '/path/to/your/static/media/directory'\n\n AWS_ACCESS_KEY_ID = 'YOUR_ACCESS_KEY_HERE'\n AWS_SECRET_ACCESS_KEY = 'YOUR_SECRET_KEY_HERE'\n AWS_STORAGE_BUCKET_NAME = 'YOUR_STATIC_BUCKET_HERE'\n\n4. In your urls.py, import the simplestatic_debug_urls function and execute it\n to the end of your urlpatterns:\n\n.. code-block:: python\n\n from simplestatic.urls import simplestatic_debug_urls\n\n urlpatterns = patterns('',\n # ... all of your url patterns right here\n ) + simplestatic_debug_urls()\n\n5. In your template (or templates) import and use the simplestatic template\n tags, which might look something like this:\n\n.. code-block:: html+django\n\n {% load simplestatic_tags %}\n\n
\n