www/py-dj-database-url 3.1.2_1 FreeBSD
Use Database URLs in your Django Application
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
c457bc660b- License
- BSD3CLAUSE
- Categories
- www, python
- Package size
- 13.6 KiB, 45.4 KiB installed
Description
This simple Django utility allows you to utilize the 12factor inspired DATABASE_URL environment variable to configure your Django application.
The dj_database_url.config method returns a Django database connection dictionary, populated with all the data specified in your URL. There is also a conn_max_age argument to easily enable Django's connection pool.
If you'd rather not use an environment variable, you can pass a URL in directly instead to dj_database_url.parse.
Supported Databases:
Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS), Oracle, Oracle (GIS), and SQLite.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | www/py-dj-database-url | 3.1.2_1 |
| DragonFly | www/py-dj-database-url | 2.3.0 |
| HardenedBSD | www/py-dj-database-url | 3.1.2_1 |
| GhostBSD | www/py-dj-database-url | 3.1.2_1 |
Install
Binary package:
pkg install py312-dj-database-url
From the ports tree:
cd /usr/ports/www/py-dj-database-url/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-dj-database-url>0:www/py-dj-database-url
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 3.1.2_1 | 3.1.2_1 | 1.2.0 | 3.0.1 | 3.1.2_1 |
| FreeBSD:14:quarterly | 3.1.2_1 | 3.1.2_1 | n/a | 3.0.0 | 3.1.2_1 |
| FreeBSD:15:latest | 3.1.2_1 | 3.1.2_1 | n/a | 3.0.1 | 3.0.1 |
| FreeBSD:15:quarterly | 3.1.2_1 | 3.1.2_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 3.1.2_1 | 3.1.2_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}uv-build>=0.9.17: devel/py-uv-build
Runtime 1
${PYTHON_PKGNAMEPREFIX}django52>=4.2: www/py-django52
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 18
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| dj_database_url-3.1.2.tar.gz | 11490 | 63c20e4bbaa51690dfd4c8d189521f6bf6bc9da9fcdb23d95d2ee8ee87f9ec62 |
Master sites 1
- PYPI