No project description provided
Project description
django-database-prefix
Ables you to set Django's database tables prefix, as a result you can run multiple Django projects using single database, without any actions on the unmanaged tables.
Installation
Install using pip
pip install django-database-prefix
Add django-database-prefix at the top of the INSTALLED_APPS to make it initialized first.
'django_database_prefix',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
Configuration
Set string value for DB_PREFIX in the settings.py
DB_PREFIX = 'app1_'
In result you'll have app1_django_session talbe names pattern.
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-database-prefix-0.1.0.tar.gz.
File metadata
- Download URL: django-database-prefix-0.1.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54401160e960d46cece4a9826f3d364ad535da42d58941252aa621f3ed7b1ec9
|
|
| MD5 |
92bd43ec740361cfd32b3481c1938cf1
|
|
| BLAKE2b-256 |
a720fb9bcbb91e6f06bb4fe84797dbdc9ec6b41e4e83b6a127491746225511fc
|
File details
Details for the file django_database_prefix-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_database_prefix-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a241103ac3d6e7f252588471c0ed80accc82775b14b55ecb955268b0c44fedeb
|
|
| MD5 |
36611853d02d736d82825337b78607d5
|
|
| BLAKE2b-256 |
4f60c53d6a6058f6f42052136f2088a05dd490196f169902174ed00d31ad2df6
|