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 = ( '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 to your settings.py 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' 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
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.5.tar.gz
(4.3 MB
view details)
Built Distribution
File details
Details for the file cosmicdb-0.0.5.tar.gz
.
File metadata
- Download URL: cosmicdb-0.0.5.tar.gz
- Upload date:
- Size: 4.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6672b3a44030747572dc44de54864ad216c03be662195f185ade025467935ef2 |
|
MD5 | dffe0d78729de63bdbac86cb35d1fc66 |
|
BLAKE2b-256 | 5382f878fb8621e0f627dba644114ad0c014cf24ed71dd459a65eafbd4a5187e |
File details
Details for the file cosmicdb-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: cosmicdb-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0396b5093364960318b63f6d5d9c900d6bb0df29187dc5f7ed44a9e05acc7f08 |
|
MD5 | 7a960e2bf1b2925ae8ce4b064f8660dd |
|
BLAKE2b-256 | 5848eda3af7d572f4fb2842ecafa419ce4d098c16fa6b11db4271c98cfdf691d |