Metadata-Version: 2.0
Name: cosmicdb
Version: 0.0.7
Summary: An easy way to setup a database site.
Home-page: https://bitbucket.org/davidbradleycole/cosmicdb
Author: David Cole
Author-email: davidbradleycole@gmail.com
License: BSD License
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Dist: beautifulsoup4 (==4.6.0)
Requires-Dist: Django (==1.11.6)
Requires-Dist: django-autocomplete-light (==3.2.9)
Requires-Dist: django-crispy-forms (==1.6.1)
Requires-Dist: django-tables2 (==1.12.0)
Requires-Dist: pytz (==2017.2)

==========================
CosmicDB Django App
==========================

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
=====

1. Add ``cosmicdb`` and requirements to your INSTALLED_APPS setting like this::

        INSTALLED_APPS = (
            'cosmicdb',
            'dal',
            'dal_select2',
            'crispy_forms',
            'django_tables2',
            ...
        )

2. Add ``cosmicdb.urls`` to your urls.py like this::

        from django.conf.urls import url, include

        urlpatterns = [
            ...
            url(r'^', include('cosmicdb.urls')),
        ]

3. Add cosmicdb settings to your settings.py like this::

        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


4. Run ``python manage.py migrate``

5. Run ``python manage.py collectstatic``

6. Run ``python manage.py createsuperuser``

Requirements
============

`Django>=1.11
<https://github.com/django/django/>`_


Dev Notes
=========
``python setup.py sdist bdist_wheel``
``twine upload dist/0.0.1*``


