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:
INSTALLED_APPS = ( 'django.contrib.sites', 'cosmicdb', 'dal', 'dal_select2', 'crispy_forms', 'django_tables2', ... )
Add cosmicdb.urls to your urls.py like this:
from django.conf.urls import url, include urlpatterns = [ ... url(r'^', include('cosmicdb.urls')), ]
Add cosmicdb settings like this:
COSMICDB_SITE_TITLE = 'Demo Site' AUTH_USER_MODEL = 'cosmicdb.User' LOGIN_URL = '/login/' CRISPY_TEMPLATE_PACK = 'bootstrap3' DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap-responsive.html'
Run python manage.py migrate
Run python manage.py collectstatic
Run python manage.py createsuperuser
Requirements
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
cosmicdb-0.0.4.tar.gz
(4.3 MB
view details)
Built Distribution
File details
Details for the file cosmicdb-0.0.4.tar.gz
.
File metadata
- Download URL: cosmicdb-0.0.4.tar.gz
- Upload date:
- Size: 4.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38637ab9d4025122d4d46deab2af0d16648996d30bc702e0466d2d02e4b0ffb |
|
MD5 | 39cad1b9fc8bc75f863d81cf1b733c6e |
|
BLAKE2b-256 | c7cfe4c40d0946d6cafd6da0edd0a4d65a11b15a65bef58c6437be34188663f5 |
File details
Details for the file cosmicdb-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: cosmicdb-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 487f92d70da228546ba6d80d435626814168eaf3516ddcb8667fd50fcaa05fbc |
|
MD5 | 926d83f38db8464a56b7bb478d1ff1b0 |
|
BLAKE2b-256 | 96b6aacbd126a61f306746b5b53501718784001c06c63b6d0a01e07d52dbacd2 |