Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ee63826836 | |||
| 7c0a105c92 | |||
| c8ababb8e4 | |||
| 384a63f76f | |||
| f6c4d50bb3 | |||
| 84c15d2b28 | |||
| 6d46dfafc2 | |||
| 3f076578bb | |||
| cc4c379465 | |||
| c9f0795a95 | |||
| 042e93a84b | |||
| c9e800b5ab | |||
| 7257fbffb3 | |||
| 1f690978bf | |||
| 3d9cfd134d | |||
| 017f905330 | |||
| 796cea4a49 | |||
| 0178e0ccff | |||
| 70ed000f08 | |||
| 294f8520ab | |||
| 1b28c183f0 |
@@ -0,0 +1,29 @@
|
|||||||
|
name: Create release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*.*.*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Extract release notes
|
||||||
|
id: extract-release-notes
|
||||||
|
uses: ffurrer2/extract-release-notes@v1
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: ${{ github.ref }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
body: ${{ steps.extract-release-notes.outputs.release_notes }}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
name: Test package
|
||||||
|
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10']
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:latest
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
POSTGRES_DB: postgres
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
|
# needed because the postgres container does not provide a healthcheck
|
||||||
|
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
cache: 'pip'
|
||||||
|
|
||||||
|
- name: Install psycopg2 prerequisites
|
||||||
|
run: sudo apt-get install libpq-dev
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install -r requirements-test.txt
|
||||||
|
pip install tox tox-gh-actions
|
||||||
|
|
||||||
|
- name: Test with tox
|
||||||
|
run: tox
|
||||||
-171
@@ -1,171 +0,0 @@
|
|||||||
os: linux
|
|
||||||
dist: xenial
|
|
||||||
language: python
|
|
||||||
cache: pip
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj17-sqlite
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj17-postgres
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj18-sqlite
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj18-postgres
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj19-sqlite
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj19-postgres
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj110-sqlite
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj110-postgres
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj111-sqlite
|
|
||||||
- python: "2.7"
|
|
||||||
env: TOX_ENV=py27-dj111-postgres
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj18-sqlite
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj18-postgres
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj19-sqlite
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj19-postgres
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj110-sqlite
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj110-postgres
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj111-sqlite
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj111-postgres
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj20-sqlite
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj20-postgres
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj21-sqlite
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj21-postgres
|
|
||||||
# - python: "3.5"
|
|
||||||
# env: TOX_ENV=py35-dj22-sqlite
|
|
||||||
- python: "3.5"
|
|
||||||
env: TOX_ENV=py35-dj22-postgres
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj111-sqlite
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj111-postgres
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj20-sqlite
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj20-postgres
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj21-sqlite
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj21-postgres
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj22-sqlite
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj22-postgres
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj30-sqlite
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj30-postgres
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj31-sqlite
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj31-postgres
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj32-sqlite
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-dj32-postgres
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-djmaster-sqlite
|
|
||||||
- python: "3.6"
|
|
||||||
env: TOX_ENV=py36-djmaster-postgres
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj20-sqlite
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj20-postgres
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj21-sqlite
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj21-postgres
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj22-sqlite
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj22-postgres
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj30-sqlite
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj30-postgres
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj31-sqlite
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj31-postgres
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj32-sqlite
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-dj32-postgres
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-djmaster-sqlite
|
|
||||||
- python: "3.7"
|
|
||||||
env: TOX_ENV=py37-djmaster-postgres
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-dj22-sqlite
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-dj22-postgres
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-dj30-sqlite
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-dj30-postgres
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-dj31-sqlite
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-dj31-postgres
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-dj32-sqlite
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-dj32-postgres
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-djmaster-sqlite
|
|
||||||
- python: "3.8"
|
|
||||||
env: TOX_ENV=py38-djmaster-postgres
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-dj22-sqlite
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-dj22-postgres
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-dj30-sqlite
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-dj30-postgres
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-dj31-sqlite
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-dj31-postgres
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-dj32-sqlite
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-dj32-postgres
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-djmaster-sqlite
|
|
||||||
- python: "3.9"
|
|
||||||
env: TOX_ENV=py39-djmaster-postgres
|
|
||||||
allow_failures:
|
|
||||||
- env: TOX_ENV=py36-djmaster-sqlite
|
|
||||||
- env: TOX_ENV=py36-djmaster-postgres
|
|
||||||
- env: TOX_ENV=py37-djmaster-sqlite
|
|
||||||
- env: TOX_ENV=py37-djmaster-postgres
|
|
||||||
- env: TOX_ENV=py38-djmaster-sqlite
|
|
||||||
- env: TOX_ENV=py38-djmaster-postgres
|
|
||||||
- env: TOX_ENV=py39-djmaster-sqlite
|
|
||||||
- env: TOX_ENV=py39-djmaster-postgres
|
|
||||||
install:
|
|
||||||
- pip install tox
|
|
||||||
services:
|
|
||||||
- postgresql
|
|
||||||
before_script:
|
|
||||||
- psql -c 'create database admin_interface;' -U postgres
|
|
||||||
script:
|
|
||||||
- tox -e $TOX_ENV
|
|
||||||
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.18.5](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.18.5) - 2022-01-21
|
||||||
|
- Added portuguese brazil (`pt_BR`) localization by [leandromsd](https://github.com/leandromsd). #149
|
||||||
|
- Fixed body scroll reset to top when opening related modal. #150
|
||||||
|
|
||||||
|
## [0.18.4](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.18.4) - 2022-01-05
|
||||||
|
- Added official django 4.0 support.
|
||||||
|
- Added link to admin home page on logo and title. #147
|
||||||
|
- Fixed collapsed inlines rounded bottom borders.
|
||||||
|
- Fixed missing comma in tests settings `MIDDLEWARE_CLASSES`. #145
|
||||||
|
|
||||||
|
## [0.18.3](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.18.3) - 2021-12-07
|
||||||
|
- Added official python 3.10 support.
|
||||||
|
- Replaced travis with GitHub action workflow. #142
|
||||||
|
- Fixed `check_installed_apps` checks.
|
||||||
|
- Fixed django default appconfig deprecation warning. #141
|
||||||
|
|
||||||
## [0.18.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.18.2) - 2021-10-25
|
## [0.18.2](https://github.com/fabiocaccamo/django-admin-interface/releases/tag/0.18.2) - 2021-10-25
|
||||||
- Fixed migration error.
|
- Fixed migration error.
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
[](https://badges.pufler.dev)
|
[](https://badges.pufler.dev)
|
||||||
[](https://github.com/fabiocaccamo/django-admin-interface/blob/master/LICENSE.txt)
|
[](https://github.com/fabiocaccamo/django-admin-interface/blob/master/LICENSE.txt)
|
||||||
|
|
||||||
[](https://travis-ci.org/fabiocaccamo/django-admin-interface)
|
[](https://github.com/fabiocaccamo/django-admin-interface)
|
||||||
[](https://codecov.io/gh/fabiocaccamo/django-admin-interface)
|
[](https://codecov.io/gh/fabiocaccamo/django-admin-interface)
|
||||||
[](https://www.codacy.com/app/fabiocaccamo/django-admin-interface)
|
[](https://www.codacy.com/app/fabiocaccamo/django-admin-interface)
|
||||||
[](https://codeclimate.com/github/fabiocaccamo/django-admin-interface/)
|
[](https://codeclimate.com/github/fabiocaccamo/django-admin-interface/)
|
||||||
@@ -18,6 +18,8 @@ django-admin-interface is a modern **responsive flat admin interface customizabl
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
- Beautiful default **django-theme**
|
- Beautiful default **django-theme**
|
||||||
- Themes management and customization *(you can **customize admin title, logo and colors**)*
|
- Themes management and customization *(you can **customize admin title, logo and colors**)*
|
||||||
@@ -37,6 +39,8 @@ django-admin-interface is a modern **responsive flat admin interface customizabl
|
|||||||
- `django-tabbed-admin`
|
- `django-tabbed-admin`
|
||||||
- `sorl-thumbnail`
|
- `sorl-thumbnail`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
- Run `pip install django-admin-interface`
|
- Run `pip install django-admin-interface`
|
||||||
- Add `admin_interface`, `flat_responsive`, `flat` and `colorfield` to `settings.INSTALLED_APPS` **before** `django.contrib.admin`
|
- Add `admin_interface`, `flat_responsive`, `flat` and `colorfield` to `settings.INSTALLED_APPS` **before** `django.contrib.admin`
|
||||||
@@ -66,6 +70,8 @@ SILENCED_SYSTEM_CHECKS = ['security.W019']
|
|||||||
- Run ``python manage.py collectstatic --clear``
|
- Run ``python manage.py collectstatic --clear``
|
||||||
- Restart your application server
|
- Restart your application server
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Optional themes
|
## Optional themes
|
||||||
This package ships with optional themes as fixtures, they can be installed using the [loaddata admin command](https://docs.djangoproject.com/en/1.11/ref/django-admin/#django-admin-loaddata). Optional themes are activated on installation.
|
This package ships with optional themes as fixtures, they can be installed using the [loaddata admin command](https://docs.djangoproject.com/en/1.11/ref/django-admin/#django-admin-loaddata). Optional themes are activated on installation.
|
||||||
|
|
||||||
@@ -120,6 +126,7 @@ You can add **theme support to existing third-party libraries** using the follow
|
|||||||
- `--admin-interface-related-modal-background-color`
|
- `--admin-interface-related-modal-background-color`
|
||||||
- `--admin-interface-related-modal-background-opacity`
|
- `--admin-interface-related-modal-background-opacity`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
###### Admin login
|
###### Admin login
|
||||||
@@ -134,11 +141,50 @@ You can add **theme support to existing third-party libraries** using the follow
|
|||||||
###### Admin theme customization
|
###### Admin theme customization
|
||||||

|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
- #### I already have a custom `base_site.html`, how can I make it work?
|
|
||||||
|
### Custom `base-site.html`
|
||||||
|
> I already have a custom `base_site.html`, how can I make it work?
|
||||||
|
|
||||||
You can use [django-apptemplates](https://github.com/bittner/django-apptemplates), then add `{% extends "admin_interface:admin/base_site.html" %}` to your `base_site.html`
|
You can use [django-apptemplates](https://github.com/bittner/django-apptemplates), then add `{% extends "admin_interface:admin/base_site.html" %}` to your `base_site.html`
|
||||||
|
|
||||||
|
### Language Chooser not showing
|
||||||
|
> I have enabled the **Language Chooser**, but it is not visible in the admin, what should I do?
|
||||||
|
|
||||||
|
You must configure multilanguage `settings` and `urls` correctly:
|
||||||
|
```python
|
||||||
|
LANGUAGES = (
|
||||||
|
('en', _('English')),
|
||||||
|
('it', _('Italiano')),
|
||||||
|
('fr', _('Française')),
|
||||||
|
# more than one language is expected here
|
||||||
|
)
|
||||||
|
LANGUAGE_CODE = 'en'
|
||||||
|
USE_I18N = True
|
||||||
|
MIDDLEWARE = [
|
||||||
|
# ...
|
||||||
|
'django.middleware.locale.LocaleMiddleware',
|
||||||
|
# ...
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
```python
|
||||||
|
from django.conf.urls.i18n import i18n_patterns
|
||||||
|
from django.contrib import admin
|
||||||
|
from django.urls import include, path
|
||||||
|
|
||||||
|
# ...
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path('i18n/', include('django.conf.urls.i18n')),
|
||||||
|
]
|
||||||
|
urlpatterns += i18n_patterns(path('admin/', admin.site.urls))
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
```bash
|
```bash
|
||||||
# create python virtual environment
|
# create python virtual environment
|
||||||
@@ -152,6 +198,7 @@ git clone https://github.com/fabiocaccamo/django-admin-interface.git src && cd s
|
|||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
pip install -r requirements-test.txt
|
||||||
|
|
||||||
# run tests
|
# run tests
|
||||||
tox
|
tox
|
||||||
@@ -161,24 +208,13 @@ python setup.py test
|
|||||||
python -m django test --settings "tests.settings"
|
python -m django test --settings "tests.settings"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## License
|
## License
|
||||||
Released under [MIT License](LICENSE.txt).
|
Released under [MIT License](LICENSE.txt).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Supporting
|
|
||||||
|
|
||||||
I would like to spend more time on this project, especially to improve it and adding new features.
|
|
||||||
|
|
||||||
As everyone knows open-source projects takes up a lot of time that is unpaid. :money_with_wings:
|
|
||||||
|
|
||||||
If you are using this package in commercial project(s), please consider the idea to become a sponsor or donating once:
|
|
||||||
|
|
||||||
- [GitHub Sponsor](https://github.com/sponsors/fabiocaccamo)
|
|
||||||
- [PayPal](https://www.paypal.me/fabiocaccamo)
|
|
||||||
- BTC: bc1q2t0pv8z3udpyuvfnx5kskhqdad4dcvtfuzmvjw
|
|
||||||
- ETH: 0x8B55Fb7798b5A9F797A4455C00821B6e53daca74
|
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
- [`django-colorfield`](https://github.com/fabiocaccamo/django-colorfield) - simple color field for models with a nice color-picker in the admin. 🎨
|
- [`django-colorfield`](https://github.com/fabiocaccamo/django-colorfield) - simple color field for models with a nice color-picker in the admin. 🎨
|
||||||
@@ -195,4 +231,6 @@ If you are using this package in commercial project(s), please consider the idea
|
|||||||
|
|
||||||
- [`python-codicefiscale`](https://github.com/fabiocaccamo/python-codicefiscale) - encode/decode Italian fiscal codes - codifica/decodifica del Codice Fiscale. 🇮🇹 💳
|
- [`python-codicefiscale`](https://github.com/fabiocaccamo/python-codicefiscale) - encode/decode Italian fiscal codes - codifica/decodifica del Codice Fiscale. 🇮🇹 💳
|
||||||
|
|
||||||
|
- [`python-fontbro`](https://github.com/fabiocaccamo/python-fontbro) - friendly font operations. 🧢
|
||||||
|
|
||||||
- [`python-fsutil`](https://github.com/fabiocaccamo/python-fsutil) - file-system utilities for lazy devs. 🧟♂️
|
- [`python-fsutil`](https://github.com/fabiocaccamo/python-fsutil) - file-system utilities for lazy devs. 🧟♂️
|
||||||
|
|||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
Keep this library updated to the latest version.
|
||||||
|
|
||||||
|
| Version | Supported |
|
||||||
|
| ------- | ------------------ |
|
||||||
|
| latest | :white_check_mark: |
|
||||||
|
| oldest | :x: |
|
||||||
|
|
||||||
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
Open an issue.
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
import django
|
||||||
|
|
||||||
default_app_config = 'admin_interface.apps.AdminInterfaceConfig'
|
if django.VERSION < (3, 2):
|
||||||
|
default_app_config = 'admin_interface.apps.AdminInterfaceConfig'
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,235 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2022-01-19 22:45-0300\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||||
|
|
||||||
|
#: admin.py:21
|
||||||
|
msgid "Environment"
|
||||||
|
msgstr "Ambiente"
|
||||||
|
|
||||||
|
#: admin.py:30
|
||||||
|
msgid "Language chooser"
|
||||||
|
msgstr "Seletor de idioma"
|
||||||
|
|
||||||
|
#: admin.py:37
|
||||||
|
msgid "Logo"
|
||||||
|
msgstr "Logo"
|
||||||
|
|
||||||
|
#: admin.py:47
|
||||||
|
msgid "Favicon"
|
||||||
|
msgstr "Favicon"
|
||||||
|
|
||||||
|
#: admin.py:51
|
||||||
|
msgid "Title"
|
||||||
|
msgstr "Título"
|
||||||
|
|
||||||
|
#: admin.py:59
|
||||||
|
msgid "Header"
|
||||||
|
msgstr "Cabeçalho"
|
||||||
|
|
||||||
|
#: admin.py:68
|
||||||
|
msgid "Breadcrumbs / Module headers"
|
||||||
|
msgstr "Cabeçalhos de módulo"
|
||||||
|
|
||||||
|
#: admin.py:80
|
||||||
|
msgid "Generic Links"
|
||||||
|
msgstr "Links Genéricos"
|
||||||
|
|
||||||
|
#: admin.py:87
|
||||||
|
msgid "Save Buttons"
|
||||||
|
msgstr "Botões Salvar"
|
||||||
|
|
||||||
|
#: admin.py:95
|
||||||
|
msgid "Delete Buttons"
|
||||||
|
msgstr "Botões Deletar"
|
||||||
|
|
||||||
|
#: admin.py:103
|
||||||
|
msgid "Navigation Bar"
|
||||||
|
msgstr "Barra de Navegação"
|
||||||
|
|
||||||
|
#: admin.py:109
|
||||||
|
msgid "Related Modal"
|
||||||
|
msgstr "Modal Relacionado"
|
||||||
|
|
||||||
|
#: admin.py:119
|
||||||
|
msgid "Form Controls"
|
||||||
|
msgstr "Controles de Formulário"
|
||||||
|
|
||||||
|
#: admin.py:126
|
||||||
|
msgid "List Filter"
|
||||||
|
msgstr "Filtro de lista"
|
||||||
|
|
||||||
|
#: admin.py:133
|
||||||
|
msgid "Recent Actions"
|
||||||
|
msgstr "Ações recentes"
|
||||||
|
|
||||||
|
#: apps.py:12
|
||||||
|
msgid "Admin Interface"
|
||||||
|
msgstr "Interface do administrador"
|
||||||
|
|
||||||
|
#: models.py:73 models.py:129 models.py:148
|
||||||
|
msgid "name"
|
||||||
|
msgstr "nome"
|
||||||
|
|
||||||
|
#: models.py:76 models.py:145 models.py:274
|
||||||
|
msgid "active"
|
||||||
|
msgstr "ativo"
|
||||||
|
|
||||||
|
#: models.py:80 templates/admin/base_site.html:6
|
||||||
|
#: templates/admin/base_site.html:78
|
||||||
|
msgid "Django administration"
|
||||||
|
msgstr "Administrção do Django"
|
||||||
|
|
||||||
|
#: models.py:82
|
||||||
|
msgid "title"
|
||||||
|
msgstr "título"
|
||||||
|
|
||||||
|
#: models.py:88 models.py:105 models.py:135
|
||||||
|
msgid "color"
|
||||||
|
msgstr "cor"
|
||||||
|
|
||||||
|
#: models.py:91 models.py:116 models.py:318
|
||||||
|
msgid "visible"
|
||||||
|
msgstr "visível"
|
||||||
|
|
||||||
|
#: models.py:98
|
||||||
|
msgid "Leave blank to use the default Django logo"
|
||||||
|
msgstr "Deixe em branco para usar o logotipo padrão do Django"
|
||||||
|
|
||||||
|
#: models.py:99
|
||||||
|
msgid "logo"
|
||||||
|
msgstr "logo"
|
||||||
|
|
||||||
|
#: models.py:109
|
||||||
|
msgid "max width"
|
||||||
|
msgstr "largura máxima"
|
||||||
|
|
||||||
|
#: models.py:113
|
||||||
|
msgid "max height"
|
||||||
|
msgstr "altura máxima"
|
||||||
|
|
||||||
|
#: models.py:123
|
||||||
|
msgid "(.ico|.png|.gif - 16x16|32x32 px)"
|
||||||
|
msgstr "(.ico|.png|.gif - 16x16|32x32 px)"
|
||||||
|
|
||||||
|
#: models.py:124
|
||||||
|
msgid "favicon"
|
||||||
|
msgid "favicon"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: models.py:133
|
||||||
|
msgid ""
|
||||||
|
"(red: #E74C3C, orange: #E67E22, yellow: #F1C40F, green: #2ECC71, blue: "
|
||||||
|
"#3498DB)"
|
||||||
|
msgstr ""
|
||||||
|
"(vermelho: #E74C3C, laranja: #E67E22, amarelo: #F1C40F, verde: #2ECC71, azul: "
|
||||||
|
"#3498DB)"
|
||||||
|
|
||||||
|
#: models.py:138
|
||||||
|
msgid "visible in header (marker and name)"
|
||||||
|
msgstr "visível no cabeçalho (marcador e nome)"
|
||||||
|
|
||||||
|
#: models.py:141
|
||||||
|
msgid "visible in favicon (marker)"
|
||||||
|
msgstr "visível no favicon (marcador)"
|
||||||
|
|
||||||
|
#: models.py:147
|
||||||
|
msgid "code"
|
||||||
|
msgstr "código"
|
||||||
|
|
||||||
|
#: models.py:154
|
||||||
|
msgid "display"
|
||||||
|
msgstr "exibição"
|
||||||
|
|
||||||
|
#: models.py:161 models.py:186 models.py:239 models.py:258 models.py:280
|
||||||
|
msgid "background color"
|
||||||
|
msgstr "cor de fundo"
|
||||||
|
|
||||||
|
#: models.py:167 models.py:198 models.py:251 models.py:270
|
||||||
|
msgid "text color"
|
||||||
|
msgstr "cor do texto"
|
||||||
|
|
||||||
|
#: models.py:173 models.py:204 models.py:226
|
||||||
|
msgid "link color"
|
||||||
|
msgstr "cor do link"
|
||||||
|
|
||||||
|
#: models.py:179 models.py:216 models.py:232
|
||||||
|
msgid "link hover color"
|
||||||
|
msgstr "cor de foco do link"
|
||||||
|
|
||||||
|
#: models.py:192
|
||||||
|
msgid "background selected color"
|
||||||
|
msgstr "cor de fundo selecionada"
|
||||||
|
|
||||||
|
#: models.py:210
|
||||||
|
msgid "link selected color"
|
||||||
|
msgstr "link cor selecionada"
|
||||||
|
|
||||||
|
#: models.py:219 models.py:300
|
||||||
|
msgid "rounded corners"
|
||||||
|
msgstr "cantos arredondados"
|
||||||
|
|
||||||
|
#: models.py:245 models.py:264
|
||||||
|
msgid "background hover color"
|
||||||
|
msgstr "cor de fundo do foco"
|
||||||
|
|
||||||
|
#: models.py:297
|
||||||
|
msgid "background opacity"
|
||||||
|
msgstr "opacidade de fundo"
|
||||||
|
|
||||||
|
#: models.py:303
|
||||||
|
msgid "close button visible"
|
||||||
|
msgstr "botão fechar visível"
|
||||||
|
|
||||||
|
#: models.py:307
|
||||||
|
msgid "use dropdown"
|
||||||
|
msgstr "usar menu suspenso"
|
||||||
|
|
||||||
|
#: models.py:310
|
||||||
|
msgid "sticky position"
|
||||||
|
msgstr "sticky position"
|
||||||
|
|
||||||
|
#: models.py:314
|
||||||
|
msgid "foldable apps"
|
||||||
|
msgstr "aplicativos dobráveis"
|
||||||
|
|
||||||
|
#: models.py:322
|
||||||
|
msgid "sticky submit"
|
||||||
|
msgstr "envio fixo"
|
||||||
|
|
||||||
|
#: models.py:325
|
||||||
|
msgid "sticky pagination"
|
||||||
|
msgstr "paginação fixa"
|
||||||
|
|
||||||
|
#: models.py:334
|
||||||
|
msgid "Theme"
|
||||||
|
msgstr "Tema"
|
||||||
|
|
||||||
|
#: models.py:335
|
||||||
|
msgid "Themes"
|
||||||
|
msgstr "Temas"
|
||||||
|
|
||||||
|
#: templates/admin/filter.html:13
|
||||||
|
#: templates/admin_interface/dropdown_filter.html:4
|
||||||
|
#, python-format
|
||||||
|
msgid " By %(filter_title)s "
|
||||||
|
msgstr " por %(filter_title)s "
|
||||||
|
|
||||||
|
#: templates/admin/popup_response.html:3
|
||||||
|
msgid "Popup closing..."
|
||||||
|
msgstr "Pop-up fechando..."
|
||||||
@@ -5,23 +5,30 @@ from django.conf import settings
|
|||||||
from django.core.exceptions import ImproperlyConfigured
|
from django.core.exceptions import ImproperlyConfigured
|
||||||
|
|
||||||
|
|
||||||
def check_installed_app(app, app_dj_version_limit):
|
def check_installed_app(app, max_dj_version=None):
|
||||||
dj_version = django.VERSION
|
dj_version = django.VERSION
|
||||||
installed_apps = settings.INSTALLED_APPS
|
installed_apps = settings.INSTALLED_APPS
|
||||||
if dj_version < app_dj_version_limit:
|
if max_dj_version is None:
|
||||||
if app not in installed_apps:
|
if app not in installed_apps:
|
||||||
raise ImproperlyConfigured(
|
raise ImproperlyConfigured(
|
||||||
'\'{}\' needed before django {}.{}, '
|
'\'{}\' is required, '
|
||||||
'add it to settings.INSTALLED_APPS.'.format(
|
'add it to settings.INSTALLED_APPS.'.format(
|
||||||
app, *app_dj_version_limit))
|
app))
|
||||||
|
elif dj_version < max_dj_version:
|
||||||
|
if app not in installed_apps:
|
||||||
|
raise ImproperlyConfigured(
|
||||||
|
'\'{}\' is required before django {}.{}, '
|
||||||
|
'add it to settings.INSTALLED_APPS.'.format(
|
||||||
|
app, *max_dj_version))
|
||||||
else:
|
else:
|
||||||
if app in installed_apps:
|
if app in installed_apps:
|
||||||
raise ImproperlyConfigured(
|
raise ImproperlyConfigured(
|
||||||
'\'{}\' not needed since django {}.{}, '
|
'\'{}\' is no more required since django {}.{}, '
|
||||||
'remove it from settings.INSTALLED_APPS.'.format(
|
'remove it from settings.INSTALLED_APPS.'.format(
|
||||||
app, *app_dj_version_limit))
|
app, *max_dj_version))
|
||||||
|
|
||||||
|
|
||||||
def check_installed_apps():
|
def check_installed_apps():
|
||||||
check_installed_app('flat', (1, 9))
|
check_installed_app('colorfield')
|
||||||
check_installed_app('flat_responsive', (2, 0))
|
check_installed_app('flat', max_dj_version=(1, 9))
|
||||||
|
check_installed_app('flat_responsive', max_dj_version=(2, 0))
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ if (typeof(django) !== 'undefined' && typeof(django.jQuery) !== 'undefined')
|
|||||||
// open the popup using magnific popup
|
// open the popup using magnific popup
|
||||||
$.magnificPopup.open({
|
$.magnificPopup.open({
|
||||||
mainClass: iframeInternalModalClass,
|
mainClass: iframeInternalModalClass,
|
||||||
|
fixedContentPos: false,
|
||||||
showCloseBtn: true,
|
showCloseBtn: true,
|
||||||
closeBtnInside: true,
|
closeBtnInside: true,
|
||||||
items: {
|
items: {
|
||||||
|
|||||||
@@ -66,16 +66,18 @@ flat-theme admin-interface
|
|||||||
{% block branding %}
|
{% block branding %}
|
||||||
{% get_admin_interface_theme as theme %}
|
{% get_admin_interface_theme as theme %}
|
||||||
<h1 id="site-name">
|
<h1 id="site-name">
|
||||||
{% if theme.logo_visible %}
|
<a href="{% url 'admin:index' %}">
|
||||||
{% if theme.logo %}
|
{% if theme.logo_visible %}
|
||||||
<img class="logo" style="display:none;" src="{{ theme.logo.url }}" {% if theme.logo.width %}width="{{ theme.logo.width }}"{% endif %} {% if theme.logo.height %}height="{{ theme.logo.height }}"{% endif %}>
|
{% if theme.logo %}
|
||||||
{% else %}
|
<img class="logo" style="display:none;" src="{{ theme.logo.url }}" {% if theme.logo.width %}width="{{ theme.logo.width }}"{% endif %} {% if theme.logo.height %}height="{{ theme.logo.height }}"{% endif %}>
|
||||||
<img class="logo default" style="display:none;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="104" height="36">
|
{% else %}
|
||||||
|
<img class="logo default" style="display:none;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="104" height="36">
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% if theme.title_visible %}
|
||||||
{% if theme.title_visible %}
|
<span>{% if theme.title %}{% trans theme.title %}{% else %}{{ site_header|default:_('Django administration') }}{% endif %}</span>
|
||||||
<span>{% if theme.title %}{% trans theme.title %}{% else %}{{ site_header|default:_('Django administration') }}{% endif %}</span>
|
{% endif %}
|
||||||
{% endif %}
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@@ -137,6 +137,10 @@
|
|||||||
color: {{ theme.title_color }};
|
color: {{ theme.title_color }};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.admin-interface #branding h1 a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
.admin-interface #branding h1 .logo.default {
|
.admin-interface #branding h1 .logo.default {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@@ -431,6 +435,14 @@
|
|||||||
border-bottom-right-radius:0;
|
border-bottom-right-radius:0;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.admin-interface .module.collapse.collapsed h2 {
|
||||||
|
/* fix collapsed inlines rounded bottom borders */
|
||||||
|
{% if theme.css_module_rounded_corners %}
|
||||||
|
border-bottom-left-radius:4px;
|
||||||
|
border-bottom-right-radius:4px;
|
||||||
|
{% endif %}
|
||||||
|
}
|
||||||
/* end fix */
|
/* end fix */
|
||||||
|
|
||||||
.admin-interface #content-related {
|
.admin-interface #content-related {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
__version__ = '0.18.2'
|
__version__ = '0.18.5'
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
codecov
|
||||||
|
coverage
|
||||||
|
psycopg2
|
||||||
|
tox
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
codecov
|
|
||||||
coverage
|
|
||||||
django>=1.7
|
django>=1.7
|
||||||
django-colorfield
|
django-colorfield
|
||||||
django-flat-theme
|
django-flat-theme
|
||||||
django-flat-responsive
|
django-flat-responsive
|
||||||
six>=1.9.0
|
six>=1.9.0
|
||||||
tox
|
|
||||||
@@ -5,72 +5,94 @@ from setuptools import find_packages, setup
|
|||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
exec(open('admin_interface/version.py').read())
|
exec(open("admin_interface/version.py").read())
|
||||||
|
|
||||||
github_url = 'https://github.com/fabiocaccamo'
|
github_url = "https://github.com/fabiocaccamo"
|
||||||
package_name = 'django-admin-interface'
|
sponsor_url = "https://github.com/sponsors/fabiocaccamo/"
|
||||||
package_url = '{}/{}'.format(github_url, package_name)
|
twitter_url = "https://twitter.com/fabiocaccamo"
|
||||||
|
package_name = "django-admin-interface"
|
||||||
|
package_url = "{}/{}".format(github_url, package_name)
|
||||||
|
package_issues_url = "{}/issues".format(github_url)
|
||||||
package_path = os.path.abspath(os.path.dirname(__file__))
|
package_path = os.path.abspath(os.path.dirname(__file__))
|
||||||
long_description_file_path = os.path.join(package_path, 'README.md')
|
long_description_file_path = os.path.join(package_path, "README.md")
|
||||||
long_description_content_type = 'text/markdown'
|
long_description_content_type = "text/markdown"
|
||||||
long_description = ''
|
long_description = ""
|
||||||
try:
|
try:
|
||||||
long_description_file_options = {} if sys.version_info[0] < 3 else { 'encoding':'utf-8' }
|
long_description_file_options = (
|
||||||
with open(long_description_file_path, 'r', **long_description_file_options) as f:
|
{} if sys.version_info[0] < 3 else {"encoding": "utf-8"}
|
||||||
|
)
|
||||||
|
with open(long_description_file_path, "r", **long_description_file_options) as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=package_name,
|
name=package_name,
|
||||||
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
|
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
version=__version__,
|
version=__version__,
|
||||||
description='django-admin-interface is a modern responsive flat admin interface customizable by the admin itself.',
|
description="django-admin-interface is a modern responsive flat admin interface customizable by the admin itself.",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type=long_description_content_type,
|
long_description_content_type=long_description_content_type,
|
||||||
author='Fabio Caccamo',
|
author="Fabio Caccamo",
|
||||||
author_email='fabio.caccamo@gmail.com',
|
author_email="fabio.caccamo@gmail.com",
|
||||||
url=package_url,
|
url=package_url,
|
||||||
download_url='{}/archive/{}.tar.gz'.format(package_url, __version__),
|
download_url="{}/archive/{}.tar.gz".format(package_url, __version__),
|
||||||
keywords=['django', 'admin', 'interface', 'responsive', 'flat', 'theme', 'custom', 'ui'],
|
project_urls={
|
||||||
requires=['django(>=1.7)'],
|
"Documentation": package_url,
|
||||||
|
"Issues": package_issues_url,
|
||||||
|
"Funding": sponsor_url,
|
||||||
|
"Twitter": twitter_url,
|
||||||
|
},
|
||||||
|
keywords=[
|
||||||
|
"django",
|
||||||
|
"admin",
|
||||||
|
"interface",
|
||||||
|
"responsive",
|
||||||
|
"flat",
|
||||||
|
"theme",
|
||||||
|
"custom",
|
||||||
|
"ui",
|
||||||
|
],
|
||||||
|
requires=["django(>=1.7)"],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'django-colorfield >= 0.2, < 1.0',
|
"django-colorfield >= 0.2, < 1.0",
|
||||||
'django-flat-theme >= 1.0, < 2.0',
|
"django-flat-theme >= 1.0, < 2.0",
|
||||||
'django-flat-responsive >= 1.0, < 3.0',
|
"django-flat-responsive >= 1.0, < 3.0",
|
||||||
'six >= 1.9.0, < 2.0.0',
|
"six >= 1.9.0, < 2.0.0",
|
||||||
],
|
],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 5 - Production/Stable',
|
"Development Status :: 5 - Production/Stable",
|
||||||
'Environment :: Web Environment',
|
"Environment :: Web Environment",
|
||||||
'Framework :: Django',
|
"Framework :: Django",
|
||||||
'Framework :: Django :: 1.7',
|
"Framework :: Django :: 1.7",
|
||||||
'Framework :: Django :: 1.8',
|
"Framework :: Django :: 1.8",
|
||||||
'Framework :: Django :: 1.9',
|
"Framework :: Django :: 1.9",
|
||||||
'Framework :: Django :: 1.10',
|
"Framework :: Django :: 1.10",
|
||||||
'Framework :: Django :: 1.11',
|
"Framework :: Django :: 1.11",
|
||||||
'Framework :: Django :: 2.0',
|
"Framework :: Django :: 2.0",
|
||||||
'Framework :: Django :: 2.1',
|
"Framework :: Django :: 2.1",
|
||||||
'Framework :: Django :: 2.2',
|
"Framework :: Django :: 2.2",
|
||||||
'Framework :: Django :: 3.0',
|
"Framework :: Django :: 3.0",
|
||||||
'Framework :: Django :: 3.1',
|
"Framework :: Django :: 3.1",
|
||||||
'Framework :: Django :: 3.2',
|
"Framework :: Django :: 3.2",
|
||||||
'Intended Audience :: Developers',
|
"Framework :: Django :: 4.0",
|
||||||
'License :: OSI Approved :: MIT License',
|
"Intended Audience :: Developers",
|
||||||
'Natural Language :: English',
|
"License :: OSI Approved :: MIT License",
|
||||||
'Operating System :: OS Independent',
|
"Natural Language :: English",
|
||||||
'Programming Language :: Python :: 2',
|
"Operating System :: OS Independent",
|
||||||
'Programming Language :: Python :: 2.7',
|
"Programming Language :: Python :: 2",
|
||||||
'Programming Language :: Python :: 3',
|
"Programming Language :: Python :: 2.7",
|
||||||
'Programming Language :: Python :: 3.4',
|
"Programming Language :: Python :: 3",
|
||||||
'Programming Language :: Python :: 3.5',
|
"Programming Language :: Python :: 3.4",
|
||||||
'Programming Language :: Python :: 3.6',
|
"Programming Language :: Python :: 3.5",
|
||||||
'Programming Language :: Python :: 3.7',
|
"Programming Language :: Python :: 3.6",
|
||||||
'Programming Language :: Python :: 3.8',
|
"Programming Language :: Python :: 3.7",
|
||||||
'Programming Language :: Python :: 3.9',
|
"Programming Language :: Python :: 3.8",
|
||||||
'Topic :: Software Development :: Build Tools',
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Topic :: Software Development :: Build Tools",
|
||||||
],
|
],
|
||||||
license='MIT',
|
license="MIT",
|
||||||
test_suite='runtests.runtests'
|
test_suite="runtests.runtests",
|
||||||
)
|
)
|
||||||
|
|||||||
+7
-1
@@ -40,7 +40,7 @@ INSTALLED_APPS += [
|
|||||||
if django.VERSION < (2, 0):
|
if django.VERSION < (2, 0):
|
||||||
MIDDLEWARE_CLASSES = [
|
MIDDLEWARE_CLASSES = [
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
'django.contrib.messages.middleware.MessageMiddleware'
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
]
|
]
|
||||||
@@ -89,6 +89,12 @@ database_config = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
github_workflow = os.environ.get('GITHUB_WORKFLOW')
|
||||||
|
if github_workflow:
|
||||||
|
database_config['postgres']['NAME'] = 'postgres'
|
||||||
|
database_config['postgres']['HOST'] = '127.0.0.1'
|
||||||
|
database_config['postgres']['PORT'] = '5432'
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': database_config.get(database_engine),
|
'default': database_config.get(database_engine),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,23 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
py27-{dj17,dj18,dj19,dj110,dj111}-{sqlite,postgres},
|
py27-{dj17,dj18,dj19,dj110,dj111}-{sqlite,postgres},
|
||||||
py35-{dj18,dj19,dj110,dj111,dj20,dj21,dj22}-{sqlite,postgres},
|
py36-{dj18,dj19,dj110,dj111,dj20,dj21,dj22,dj30,dj31,dj32}-{sqlite,postgres},
|
||||||
py36-{dj18,dj19,dj110,dj111,dj20,dj21,dj22,dj30,dj31,dj32,djmaster}-{sqlite,postgres},
|
py37-{dj20,dj21,dj22,dj30,dj31,dj32}-{sqlite,postgres},
|
||||||
py37-{dj20,dj21,dj22,dj30,dj31,dj32,djmaster}-{sqlite,postgres},
|
py38-{dj22,dj30,dj31,dj32}-{sqlite,postgres},
|
||||||
py38-{dj22,dj30,dj31,dj32,djmaster}-{sqlite,postgres},
|
py39-{dj22,dj30,dj31,dj32}-{sqlite,postgres},
|
||||||
py39-{dj22,dj30,dj31,dj32,djmaster}-{sqlite,postgres},
|
py310-{dj32,dj40}-{sqlite,postgres},
|
||||||
|
|
||||||
|
[gh-actions]
|
||||||
|
python =
|
||||||
|
2.7: py27
|
||||||
|
3.6: py36
|
||||||
|
3.7: py37
|
||||||
|
3.8: py38
|
||||||
|
3.9: py39
|
||||||
|
3.10: py310
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
passenv = CI TRAVIS TRAVIS_*
|
passenv = CI GITHUB_WORKFLOW
|
||||||
deps =
|
deps =
|
||||||
dj17: Django == 1.7.*
|
dj17: Django == 1.7.*
|
||||||
dj18: Django == 1.8.*
|
dj18: Django == 1.8.*
|
||||||
@@ -20,7 +30,7 @@ deps =
|
|||||||
dj30: Django == 3.0.*
|
dj30: Django == 3.0.*
|
||||||
dj31: Django == 3.1.*
|
dj31: Django == 3.1.*
|
||||||
dj32: Django == 3.2.*
|
dj32: Django == 3.2.*
|
||||||
djmaster: https://github.com/django/django/archive/master.tar.gz
|
dj40: Django == 4.0.*
|
||||||
# mysql: mysqlclient
|
# mysql: mysqlclient
|
||||||
postgres: psycopg2-binary
|
postgres: psycopg2-binary
|
||||||
coverage
|
coverage
|
||||||
|
|||||||
Reference in New Issue
Block a user