cosmicdb


Namecosmicdb JSON
Version 0.0.32 PyPI version JSON
download
home_pagehttps://bitbucket.org/davidbradleycole/cosmicdb
SummaryAn easy way to setup a database site.
upload_time2020-09-20 02:38:57
maintainer
docs_urlNone
authorDavid Cole
requires_python
licenseBSD License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# CosmicDB Django App

## Install

### Initial setup
```
virtualenv demoenv --no-site-packages
demoenv\Scripts\activate
pip install cosmicdb
django-admin startproject demo
```

### Usage

#### Add cosmicdb and requirements to your INSTALLED_APPS setting like this (your app must be first to override)
```
INSTALLED_APPS = (
    'YOURAPPHERE',
    'cosmicdb',
    '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 = True
AUTH_USER_MODEL = 'cosmicdb.CosmicUser'
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

python manage.py collectstatic

python manage.py createsuperuser
```


## Dev Notes

### install required packages for packaging
```
pip install setuptools twine wheel
```

### adjust cosmicdb/__init__.py for version number
```
python setup.py sdist bdist_wheel
```
### replace the following line with version number
### twine upload dist/cosmicdb-VERSION_NUMBER*
```
twine upload dist/cosmicdb-0.0.1*
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://bitbucket.org/davidbradleycole/cosmicdb",
    "name": "cosmicdb",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "David Cole",
    "author_email": "davidbradleycole@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f9/8f/dc34fd733f73176035a36a806029dcc072a7120e8a8af3fb854a0a6f8385/cosmicdb-0.0.32.tar.gz",
    "platform": "",
    "description": "\n# CosmicDB Django App\n\n## Install\n\n### Initial setup\n```\nvirtualenv demoenv --no-site-packages\ndemoenv\\Scripts\\activate\npip install cosmicdb\ndjango-admin startproject demo\n```\n\n### Usage\n\n#### Add cosmicdb and requirements to your INSTALLED_APPS setting like this (your app must be first to override)\n```\nINSTALLED_APPS = (\n    'YOURAPPHERE',\n    'cosmicdb',\n    'crispy_forms',\n    'django_tables2',\n    ... (rest of django apps)\n)\n```\n\n#### Add cosmicdb.urls to your urls.py like this (put cosmicdb urls last)\n```\n    from django.conf.urls import url, include\n\n    urlpatterns = [\n        ...\n        url(r'^', include('cosmicdb.urls')),\n    ]\n```\n\n#### Add cosmicdb settings to your settings.py like this::\n```\nLANGUAGE_CODE = 'en-au'\nCOSMICDB_SITE_TITLE = 'Demo Site'\nCOSMICDB_ALLOW_SIGNUP = True\nAUTH_USER_MODEL = 'cosmicdb.CosmicUser'\nLOGIN_URL = '/login/'\nCRISPY_TEMPLATE_PACK = 'bootstrap3'\nDJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap-responsive.html'\nEMAIL_USE_TLS = True\nEMAIL_HOST = 'smtp.gmail.com'\nEMAIL_PORT = 587\nEMAIL_HOST_USER = 'test@test.com'\nEMAIL_HOST_PASSWORD = 'testpassword'\nDEFAULT_FROM_EMAIL = EMAIL_HOST_USER\nDEFAULT_FROM_EMAIL_NAME = COSMICDB_SITE_TITLE\n```\n\n#### Run\n```\npython manage.py migrate\n\npython manage.py collectstatic\n\npython manage.py createsuperuser\n```\n\n\n## Dev Notes\n\n### install required packages for packaging\n```\npip install setuptools twine wheel\n```\n\n### adjust cosmicdb/__init__.py for version number\n```\npython setup.py sdist bdist_wheel\n```\n### replace the following line with version number\n### twine upload dist/cosmicdb-VERSION_NUMBER*\n```\ntwine upload dist/cosmicdb-0.0.1*\n```\n\n\n",
    "bugtrack_url": null,
    "license": "BSD License",
    "summary": "An easy way to setup a database site.",
    "version": "0.0.32",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "c36961e1b3b5b3de10ecbdc1bf84a75d",
                "sha256": "0bd1a318a68474cf21f11eec58a410228145b110d360e83edc8ac835721a7f78"
            },
            "downloads": -1,
            "filename": "cosmicdb-0.0.32-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c36961e1b3b5b3de10ecbdc1bf84a75d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4544858,
            "upload_time": "2020-09-20T02:38:44",
            "upload_time_iso_8601": "2020-09-20T02:38:44.589348Z",
            "url": "https://files.pythonhosted.org/packages/15/08/63d7f17888411d360ef776d2a490e1d992c7355101c3ee7493e28d52604d/cosmicdb-0.0.32-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "dbfb819afdd5ef3fc50437505f480166",
                "sha256": "a2c5b5423aea253a08d764efedcf88ef0e9c53f17000b06f24f2319bb3b5d217"
            },
            "downloads": -1,
            "filename": "cosmicdb-0.0.32.tar.gz",
            "has_sig": false,
            "md5_digest": "dbfb819afdd5ef3fc50437505f480166",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4360803,
            "upload_time": "2020-09-20T02:38:57",
            "upload_time_iso_8601": "2020-09-20T02:38:57.891654Z",
            "url": "https://files.pythonhosted.org/packages/f9/8f/dc34fd733f73176035a36a806029dcc072a7120e8a8af3fb854a0a6f8385/cosmicdb-0.0.32.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-09-20 02:38:57",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "bitbucket_user": null,
    "bitbucket_project": "davidbradleycole",
    "lcname": "cosmicdb"
}
        
Elapsed time: 0.13380s