Code Yellow backend framework for SPA webapps with REST-like API.
Project description
Django-Binder
Code Yellow backend framework for SPA webapps with REST-like API.
Running the tests
- Run with
./test - Access the test database directly by with
docker compose run --rm db psql -h db -U postgres. - It may be possible to recreate the test database (for example when you added/changed models). One way of achieving this is to just remove all the docker images that were build
docker compose rmordocker compose down db binder. The database will be created during the setup intests/__init__.py.
The tests are set up in such a way that there is no need to keep migration files. The setup procedure in tests/__init__.py handles the preparation of the database by directly calling some build-in Django commands.
To only run a selection of the tests, use the -k flag like ./test -k tests.test_some_specific_test.
MySQL support
MySQL is supported, but only with the goal to replace it with PostgreSQL. This means it has a few limitations:
wherefiltering onwithrelations is not supported.- Only integer primary keys are supported.
- When fetching large number of records using
withor the ids are big, be sure to increaseGROUP_CONCATmax string length by:
DATABASES = {
'default': {
'OPTIONS': {
'init_command': 'SET SESSION group_concat_max_len = 1000000',
},
},
}
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_binder-2.0.0.tar.gz.
File metadata
- Download URL: django_binder-2.0.0.tar.gz
- Upload date:
- Size: 141.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a9d71fb1a301321d0c4b12595e07206308fa45459adb3b957e650ee91c9467f
|
|
| MD5 |
b63ce0ea6e9ae297717a8d9c980fdbef
|
|
| BLAKE2b-256 |
67f61d56732bd83214a0a5ca471f6c024e072b4290c107853d22314e6c017838
|
File details
Details for the file django_binder-2.0.0-py3-none-any.whl.
File metadata
- Download URL: django_binder-2.0.0-py3-none-any.whl
- Upload date:
- Size: 179.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23b009cf9b0b792c5b9946b2ab5bfd72cbc2e2c15739325f45474170c975c17f
|
|
| MD5 |
e32ae20c2d374de7cc8dfcc06ad159a4
|
|
| BLAKE2b-256 |
39f76d5f958c28c6e9052b6e2ab043edfbac34467b54943525452f631d0cadd7
|