remove Django dependencies as they are not used

- move settings to gvafile.settings
- use gvafile.settings directly without Django support
- initialize Celery without Django
- remove Django requirements
This commit is contained in:
Jan Dittberner 2015-01-26 17:07:31 +01:00
parent af5fb4c773
commit ea3164b762
17 changed files with 53 additions and 522 deletions

View file

@ -1,6 +1,8 @@
Changelog
=========
* :support:`-` remove unneeded Django dependencies
* :release:`0.3.0 <2015-01-19>`
* :support:`-` refactor osusers.tasks, move to fileservertasks.tasks

View file

@ -2,11 +2,8 @@
Code documentation
==================
.. index:: Django
gvafile is implemented as a set of `Celery`_ tasks.
gvafile is implemented as `Django`_ project and provides some `Celery`_ tasks.
.. _Django: https://www.djangoproject.com/
.. _Celery: http://www.celeryproject.org/
@ -23,57 +20,25 @@ The project module :py:mod:`gvafile`
:members:
:py:mod:`urls <gvafile.urls>`
-----------------------------
.. automodule:: gvafile.urls
:py:mod:`exceptions <gvafile.exceptions>`
-----------------------------------------
.. automodule:: gvafile.exceptions
:py:mod:`wsgi <gvafile.wsgi>`
-----------------------------
.. automodule:: gvafile.wsgi
:members:
:py:mod:`settings <gvafile.settings>`
-------------------------------------
.. automodule:: gvafile.settings
:py:mod:`base <gvafile.settings.base>`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. automodule:: gvafile.settings.base
:members:
:py:mod:`local <gvafile.settings.local>`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. automodule:: gvafile.settings.local
:py:mod:`production <gvafile.settings.production>`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. automodule:: gvafile.settings.production
:py:mod:`test <gvafile.settings.test>`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. automodule:: gvafile.settings.test
:py:mod:`filservertasks` app
============================
.. automodule:: fileservertasks
:py:mod:`tasks <fileservertasks.tasks>`
---------------------------------------

View file

@ -14,7 +14,6 @@
import sys
import os
import django
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@ -26,8 +25,6 @@ os.environ['GVAFILE_SERVER_EMAIL'] = 'root@localhost'
os.environ['GVAFILE_SFTP_DIRECTORY'] = '/home/www'
os.environ['GVAFILE_MAIL_DIRECTORY'] = '/home/mail'
django.setup()
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.

View file

@ -28,8 +28,7 @@ your virtualenv:
.. _virtualenv: https://virtualenv.pypa.io/en/latest/
You will also need to ensure that the virtualenv has the project directory
added to the path. Adding the project directory will allow `django-admin.py` to
be able to change settings using the `--settings` flag.
added to the path.
.. index:: virtualenvwrapper