An easy way to setup a database site.
Project description
Install
Run virtualenv demoenv --no-site-packages
Run demoenv\Scripts\activate
Run pip install Django
Run django-admin startproject demo
Run pip install cosmicdb
Usage
Add cosmicdb and requirements to your INSTALLED_APPS setting like this (your app must be first to override):
INSTALLED_APPS = ( 'YOURAPPHERE', 'cosmicdb', 'dal', 'dal_select2', 'crispy_forms', 'django_tables2', ... (rest of django apps) )
Add cosmicdb.urls to your urls.py like this (put cosmicdb urls last):
from django.conf.urls import url, include urlpatterns = [ ... url(r'^', include('cosmicdb.urls')), ]
Add cosmicdb settings to your settings.py like this:
LANGUAGE_CODE = 'en-au' COSMICDB_SITE_TITLE = 'Demo Site' COSMICDB_ALLOW_SIGNUP = False AUTH_USER_MODEL = 'cosmicdb.User' LOGIN_URL = '/login/' CRISPY_TEMPLATE_PACK = 'bootstrap3' DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap-responsive.html' EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_USER = 'test@test.com' EMAIL_HOST_PASSWORD = 'testpassword' DEFAULT_FROM_EMAIL = EMAIL_HOST_USER DEFAULT_FROM_EMAIL_NAME = COSMICDB_SITE_TITLE
Run python manage.py migrate
Run python manage.py collectstatic
Run python manage.py createsuperuser
Requirements
Dev Notes
python setup.py sdist bdist_wheel
twine upload dist/cosmicdb-0.0.1*
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
File details
Details for the file cosmicdb-0.0.14.tar.gz
.
File metadata
- Download URL: cosmicdb-0.0.14.tar.gz
- Upload date:
- Size: 4.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b811bf011a09484441609f2121a48e67aa95691519733cd76eae60ee978be1 |
|
MD5 | 619f5bdb4d43900eff1a7c411af11c3b |
|
BLAKE2b-256 | 4d6c66de8b12260e9145fa06f0e844c28df5777c99cff5453801cd25332f31ae |
File details
Details for the file cosmicdb-0.0.14-py3-none-any.whl
.
File metadata
- Download URL: cosmicdb-0.0.14-py3-none-any.whl
- Upload date:
- Size: 4.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c43ecdf599dcf3883b7f3de57b01919b59d2e5ffe7b1c4187c33a4507a8269ce |
|
MD5 | 424d483e7b83e570b1020ee56c9acda0 |
|
BLAKE2b-256 | e8b687212c75153c32e411afb6a79311ac05ee32420c34d80773de038fca26b1 |