A package for using Django ORM standalone in scripts
Project description
orm-django
The power of Django ORM for use in standalone scripts.
Install
pip install orm-django
Define Django settings
By default the ORM settings will use DJANGO_SETTINGS_MODULE from environment variable. If not found we will fallback to settings module.
Minimum settings configuration
You should at least configure your INSTALLED_APPS in settings to be able to use its models:
INSTALLED_APPS = [
'app_1',
...
'app_n',
]
And the database:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': DB_NAME,
'USER': DB_USER,
'PASSWORD': DB_PASSWORD,
'HOST': DB_HOST
},
}
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
orm_django-0.0.3.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file orm_django-0.0.3.tar.gz
.
File metadata
- Download URL: orm_django-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12e3dee992ad3233fcedbc7360c0a81bbbddc459038d3e468e28c136124969ca |
|
MD5 | 8b29871b1cdb474ef94ac760f92fbd94 |
|
BLAKE2b-256 | ddc284d52bbaf3c313d2c077b20608fcc96787b239114c3d513c114771daa3a2 |
File details
Details for the file orm_django-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: orm_django-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baea3b20ba0e5e68dc4ab967776a32945456ebe6fb9482ed228e62d5f063ea56 |
|
MD5 | ce0f8e99287c96c92975790d41591a6f |
|
BLAKE2b-256 | 6df46e0a5942bbda5a1f656ecb1a42805557f85f90e973cf13324586197968f5 |