Skip to main content

Code Yellow backend framework for SPA webapps with REST-like API.

Project description

Django-Binder

Build Status codecov

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 rm or docker compose down db binder. The database will be created during the setup in tests/__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:

  • where filtering on with relations is not supported.
  • Only integer primary keys are supported.
  • When fetching large number of records using with or the ids are big, be sure to increase GROUP_CONCAT max string length by:
DATABASES = {
	'default': {
		'OPTIONS': {
            'init_command': 'SET SESSION group_concat_max_len = 1000000',
        },
	},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_binder-2.0.0.tar.gz (141.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_binder-2.0.0-py3-none-any.whl (179.4 kB view details)

Uploaded Python 3

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

Hashes for django_binder-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2a9d71fb1a301321d0c4b12595e07206308fa45459adb3b957e650ee91c9467f
MD5 b63ce0ea6e9ae297717a8d9c980fdbef
BLAKE2b-256 67f61d56732bd83214a0a5ca471f6c024e072b4290c107853d22314e6c017838

See more details on using hashes here.

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

Hashes for django_binder-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23b009cf9b0b792c5b9946b2ab5bfd72cbc2e2c15739325f45474170c975c17f
MD5 e32ae20c2d374de7cc8dfcc06ad159a4
BLAKE2b-256 39f76d5f958c28c6e9052b6e2ab043edfbac34467b54943525452f631d0cadd7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page