A replacement of django.contrib.admin
Project description
==============
django-backend
==============
|pypi-badge| |build-status|
.. note::
This module can be imported in python with the name ``django_backend``. The
PyPI package is called `django-admin-backend`_ though. We had to use a
different name as ``django-backend`` was already registered on PyPI. It's a
little unfortunate this way, but a necessary workaround for now.
.. _django-admin-backend: https://pypi.python.org/pypi/django-admin-backend
Installation
============
Add the following apps to your ``INSTALLED_APPS`` settings:
.. code-block:: python
INSTALLED_APPS = (
...
'django.contrib.auth',
'django.contrib.sites',
'django.contrib.staticfiles',
...
'django_backend',
'floppyforms',
)
Make sure ``SITE_ID`` is set:
.. code-block:: python
SITE_ID = 1
Make sure ``LANGUAGE_CODE`` is valid:
.. code-block:: python
LANGUAGE_CODE = 'en'
**Warning:** Django's default language code is *not* valid, as "en-us" is not included in settings.LANGUAGES.
Add the following line to your ``urls.py``:
.. code-block:: python
url(r'^backend/', include(django_backend.site.get_urls(), namespace='django_backend')),
TODO: continue, propably not complete yet
Development
===========
Run tests
---------
.. code-block:: bash
# Set everything up. You want to do this in a virtualenv.
pip install -r tests/requirements.txt
python setup.py develop
# Run the tests. Should be executed in the root of the project.
py.test
.. |build-status| image:: https://travis-ci.org/team23/django_backend.svg
:target: https://travis-ci.org/team23/django_backend
.. |pypi-badge| image:: https://img.shields.io/pypi/v/django-admin-backend.svg
:target: https://pypi.python.org/pypi/django-admin-backend
Build static assets
-------------------
.. code-block:: bash
npm install
gulp build
# Use gulp watch to continuously build on source file changes.
gulp watch
Or to create a development build that includes source maps, execute the ``dev`` task first, like:
.. code-block:: bash
gulp dev build
0.2.0 (not released yet)
------------------------
* Adjusted multiple imports:
- Forms, formfields and widgets should be now always imported from
``django_backend.forms``. Example::
# OLD import, will no longer work
from django_backend.backend.base.formfields import SelectRelatedField
# NEW import
from django_backend.forms import SelectRelatedField
* Add ``ManageRelatedField`` that can inline a list page of a related model
in the change view.
* Add ``GenericRelationListField`` that can show a reorderable list related
by a intermediary model with a generic foreign key.
0.1.0
-----
* Initial release.
django-backend
==============
|pypi-badge| |build-status|
.. note::
This module can be imported in python with the name ``django_backend``. The
PyPI package is called `django-admin-backend`_ though. We had to use a
different name as ``django-backend`` was already registered on PyPI. It's a
little unfortunate this way, but a necessary workaround for now.
.. _django-admin-backend: https://pypi.python.org/pypi/django-admin-backend
Installation
============
Add the following apps to your ``INSTALLED_APPS`` settings:
.. code-block:: python
INSTALLED_APPS = (
...
'django.contrib.auth',
'django.contrib.sites',
'django.contrib.staticfiles',
...
'django_backend',
'floppyforms',
)
Make sure ``SITE_ID`` is set:
.. code-block:: python
SITE_ID = 1
Make sure ``LANGUAGE_CODE`` is valid:
.. code-block:: python
LANGUAGE_CODE = 'en'
**Warning:** Django's default language code is *not* valid, as "en-us" is not included in settings.LANGUAGES.
Add the following line to your ``urls.py``:
.. code-block:: python
url(r'^backend/', include(django_backend.site.get_urls(), namespace='django_backend')),
TODO: continue, propably not complete yet
Development
===========
Run tests
---------
.. code-block:: bash
# Set everything up. You want to do this in a virtualenv.
pip install -r tests/requirements.txt
python setup.py develop
# Run the tests. Should be executed in the root of the project.
py.test
.. |build-status| image:: https://travis-ci.org/team23/django_backend.svg
:target: https://travis-ci.org/team23/django_backend
.. |pypi-badge| image:: https://img.shields.io/pypi/v/django-admin-backend.svg
:target: https://pypi.python.org/pypi/django-admin-backend
Build static assets
-------------------
.. code-block:: bash
npm install
gulp build
# Use gulp watch to continuously build on source file changes.
gulp watch
Or to create a development build that includes source maps, execute the ``dev`` task first, like:
.. code-block:: bash
gulp dev build
0.2.0 (not released yet)
------------------------
* Adjusted multiple imports:
- Forms, formfields and widgets should be now always imported from
``django_backend.forms``. Example::
# OLD import, will no longer work
from django_backend.backend.base.formfields import SelectRelatedField
# NEW import
from django_backend.forms import SelectRelatedField
* Add ``ManageRelatedField`` that can inline a list page of a related model
in the change view.
* Add ``GenericRelationListField`` that can show a reorderable list related
by a intermediary model with a generic foreign key.
0.1.0
-----
* Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-admin-backend-0.2.0.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2edc30184d2c2651097243063fafa5ce6109083ef38b5cd4cbf5f39a0405a07 |
|
MD5 | 5fd19c9469619c83224cf26b6630d315 |
|
BLAKE2b-256 | df3192accc1e4c67e1659a4fbb0e36a4028ffa3223da64f7d4cbc6f86580b148 |