django-uwsgi-0.1.3/ 0000775 0001750 0001750 00000000000 12516642453 016055 5 ustar mechanism mechanism 0000000 0000000 django-uwsgi-0.1.3/setup.py 0000775 0001750 0001750 00000003222 12516641220 017560 0 ustar mechanism mechanism 0000000 0000000 import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
from django_uwsgi import __version__
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-uwsgi',
version=__version__,
description='uWSGI stuff for Django projects',
long_description=open('README.rst').read(),
url='http://github.com/unbit/django-uwsgi',
author='Eugene MechanisM',
author_email='eugene@mechanism.name',
license='MIT',
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Site Management",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Code Generators",
'Topic :: Communications :: Email',
'Framework :: Django',
],
keywords='uwsgi, django, mail, cache, template',
packages=find_packages(),
include_package_data=True,
install_requires=[],
extras_require={
'uwsgi': ['uwsgi'],
},
)
django-uwsgi-0.1.3/README.rst 0000775 0001750 0001750 00000001456 12516642110 017543 0 ustar mechanism mechanism 0000000 0000000 django-uwsgi
~~~~~~~~~~~~
Django related examples/tricks/modules for uWSGI
Screenshots
~~~~~~~~~~~
`django-debug-toolbar `_ panel
.. image:: https://github.com/unbit/django-uwsgi/raw/master/docs/screenshots/screenshot1.png
`Wagtail `_ admin interface:
.. image:: https://github.com/unbit/django-uwsgi/raw/master/docs/screenshots/screenshot2.png
.. image:: https://github.com/unbit/django-uwsgi/raw/master/docs/screenshots/screenshot3.png
Documentation
~~~~~~~~~~~~~
`Read the documentation at rtfd.org `_
Contributors
~~~~~~~~~~~~
See `CONTRIBUTORS `_
License
~~~~~~~
`MIT `_
django-uwsgi-0.1.3/LICENSE 0000775 0001750 0001750 00000002060 12516641220 017052 0 ustar mechanism mechanism 0000000 0000000 The MIT License (MIT)
Copyright (c) 2014 unbit
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
django-uwsgi-0.1.3/docs/ 0000775 0001750 0001750 00000000000 12516642453 017005 5 ustar mechanism mechanism 0000000 0000000 django-uwsgi-0.1.3/docs/requirements-docs.txt 0000775 0001750 0001750 00000000041 12516641220 023204 0 ustar mechanism mechanism 0000000 0000000 sphinx
releases
sphinx_rtd_theme
django-uwsgi-0.1.3/docs/cache.rst 0000664 0001750 0001750 00000001163 12516641220 020572 0 ustar mechanism mechanism 0000000 0000000 Cache Backend
=============
Installation
------------
change settings to:
.. code-block:: py
CACHES = {
'default': {
'BACKEND': 'django_uwsgi.cache.UwsgiCache',
# and optionally, if you use a different cache name
'LOCATION': 'foobar'
}
}
Settings
--------
``UWSGI_CACHE_FALLBACK``
- ``False`` - raises Exception if ``uwsgi`` cannot be imported.
- ``True`` (default) - if uwsgi is not importable this cache backend will alias
to LocMemCache. Note that south or other mangement commands might try to load
the cache backend so this is why it's the default. django-uwsgi-0.1.3/docs/todo.rst 0000775 0001750 0001750 00000000751 12516641220 020501 0 ustar mechanism mechanism 0000000 0000000 Todo
====
* Tests
* uWSGI config generator
* Improve `Docs `_
* Translations?
Some code is borrowed from projects I did earlier and some code is still not added yet, but does exists in my projects.
.. _PostgreSQL: http://uwsgi-docs.readthedocs.org/en/latest/ImperialMonitors.html#pg-scan-a-postgresql-table-for-configuration
.. _MongoDB: http://uwsgi-docs.readthedocs.org/en/latest/ImperialMonitors.html#mongodb-scan-mongodb-collections-for-configuration
django-uwsgi-0.1.3/docs/changelog.rst 0000775 0001750 0001750 00000000151 12516641220 021455 0 ustar mechanism mechanism 0000000 0000000 :orphan:
=========
Changelog
=========
* :release:`0.1.1 <2015-04-22>`
* :release:`0.1.0 <2014-04-10>` django-uwsgi-0.1.3/docs/features.rst 0000775 0001750 0001750 00000001516 12516641220 021352 0 ustar mechanism mechanism 0000000 0000000 Features
========
* Admin page with `uWSGI`_ stats (options to reload/stop uWSGI, clear uWSGI cache)
* uWSGI :doc:`cache` for Django
* uWSGI :doc:`email` for Django(send emails via uWSGI's `spooler`_)
* Debug Panel for `django-debug-toolbar`_ (offers same functions as admin page)
* Django template loader for `embedded`_ into uWSGI files
* Django :doc:`command` ``runuwsgi`` (with live autoreload when DEBUG is True)
* uWSGI config generator
* Django CBV Mixins based on uWSGI decorators
Some features are not added into repo or not yet implemented(See :doc:`todo`)
.. _uWSGI: http://uwsgi-docs.readthedocs.org/en/latest/
.. _django-debug-toolbar: http://django-debug-toolbar.readthedocs.org/en/latest/
.. _spooler: http://uwsgi-docs.readthedocs.org/en/latest/Spooler.html
.. _embedded: http://uwsgi-docs.readthedocs.org/en/latest/Embed.html django-uwsgi-0.1.3/docs/conf.py 0000775 0001750 0001750 00000002546 12516641220 020305 0 ustar mechanism mechanism 0000000 0000000 # -*- coding: utf-8 -*-
import sys
import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
sys.path.insert(0, os.path.abspath('..'))
from django_uwsgi import __version__
extensions = [
'sphinx.ext.intersphinx',
'releases',
]
releases_issue_uri = "https://github.com/unbit/django-uwsgi/issues/%s"
releases_release_uri = "https://github.com/unbit/django-uwsgi/tree/%s"
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'django-uwsgi'
copyright = u'2014, Eugene MechanisM'
version = __version__
release = __version__
exclude_patterns = ['_build']
pygments_style = 'sphinx'
html_static_path = ['_static']
htmlhelp_basename = 'django-uwsgidoc'
latex_elements = {
}
latex_documents = [
('index', 'django-uwsgi.tex', u'django-uwsgi Documentation',
u'Eugene MechanisM', 'manual'),
]
man_pages = [
('index', 'django-uwsgi', u'django-uwsgi Documentation',
[u'Eugene MechanisM'], 1)
]
texinfo_documents = [
('index', 'django-uwsgi', u'django-uwsgi Documentation',
u'Eugene MechanisM', 'django-uwsgi', 'One line description of project.',
'Miscellaneous'),
]
intersphinx_mapping = {'uwsgi': ('http://uwsgi-docs.readthedocs.org/en/latest/', None)}
django-uwsgi-0.1.3/docs/integrations.rst 0000664 0001750 0001750 00000001227 12516641220 022236 0 ustar mechanism mechanism 0000000 0000000 Integrations
============
Django-Debug-Toolbar
--------------------
If you're using `django-debug-toolbar`_, you can add:
.. code-block:: py
DEBUG_TOOLBAR_PANELS += ('django_uwsgi.panels.UwsgiPanel',)
.. _django-debug-toolbar: http://django-debug-toolbar.readthedocs.org/en/latest/
.. image:: screenshots/screenshot1.png
Wagtail
-------
If you're using `Wagtail`_:
There is `wagtail_hooks.py` file available and `Wagtail`_ will read it automatically
And you don't have to add `django_uwsgi` into urls.py
`Wagtail`_ admin interface:
.. image:: screenshots/screenshot2.png
.. image:: screenshots/screenshot3.png
.. _Wagtail: http://wagtail.io django-uwsgi-0.1.3/docs/screenshots/ 0000775 0001750 0001750 00000000000 12516642453 021345 5 ustar mechanism mechanism 0000000 0000000 django-uwsgi-0.1.3/docs/screenshots/screenshot3.png 0000664 0001750 0001750 00000144232 12516641220 024310 0 ustar mechanism mechanism 0000000 0000000 PNG
IHDR M Օ zTXtRaw profile type exif xU
0C"#gHtPڴ @hۂIuyT(9k+n*%C]1pc..SfTZ5'I K,!
iTXtXML:com.adobe.xmp
?P sBITO IDATx}tT?Of=OٓyȐL!b"B(zkAzPU{lxZo{{sp;H`%(
Ab 3B&L13O{@L&Ʉ$KfL}[bd
P$I
tBeAP&