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
Close
Hashes for django-database-prefix-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54401160e960d46cece4a9826f3d364ad535da42d58941252aa621f3ed7b1ec9 |
|
MD5 | 92bd43ec740361cfd32b3481c1938cf1 |
|
BLAKE2b-256 | a720fb9bcbb91e6f06bb4fe84797dbdc9ec6b41e4e83b6a127491746225511fc |
Close
Hashes for django_database_prefix-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a241103ac3d6e7f252588471c0ed80accc82775b14b55ecb955268b0c44fedeb |
|
MD5 | 36611853d02d736d82825337b78607d5 |
|
BLAKE2b-256 | 4f60c53d6a6058f6f42052136f2088a05dd490196f169902174ed00d31ad2df6 |