cosmicdbsemantic


Namecosmicdbsemantic JSON
Version 0.0.39 PyPI version JSON
download
home_pagehttps://bitbucket.org/davidbradleycole/cosmicdbsemantic
SummaryAn easy way to setup a database site.
upload_time2020-09-27 04:03:56
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.
            # CosmicDBSemantic Django App

## Install
```
virtualenv demoenv --no-site-packages
demoenv\Scripts\activate
pip install cosmicdbsemantic --no-cache-dir
django-admin startproject demo
```

### Add cosmicdb and requirements to your INSTALLED_APPS setting like this (your app must be first to override)
```
INSTALLED_APPS = (
    'YOURAPPHERE',
    'cosmicdb',
    'crispy_forms',
    'sitetree',
    'django_tables2',
    ... (rest of django apps)
)
```

### Add cosmicdb.urls to your urls.py like this (put cosmicdb urls last)
```
from django.contrib import admin
from django.urls import path, re_path, include

urlpatterns = [
    re_path(r'^', include('cosmicdb.urls')),
    path('admin/', admin.site.urls),
]
```

### Add cosmicdb settings to your settings.py like this
```
LANGUAGE_CODE = 'en-au'
COSMICDB_SITE_TITLE = 'Demo Site'
CRISPY_TEMPLATE_PACK = 'semanticui'
CRISPY_ALLOWED_TEMPLATE_PACKS = (CRISPY_TEMPLATE_PACK)
DJANGO_TABLES2_TEMPLATE = 'django_tables2/semantic.html'
COSMICDB_ALLOW_SIGNUP = True
AUTH_USER_MODEL = 'cosmicdb.CosmicUser'
LOGIN_URL = '/login/'
EMAIL_USE_TLS = True
EMAIL_HOST = 'mysmtp.smtp.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'mysmtpuser'
EMAIL_HOST_PASSWORD = 'mysmtppw'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
DEFAULT_FROM_EMAIL_NAME = COSMICDB_SITE_TITLE
SITETREE_MODEL_TREE = 'cosmicdb.CosmicDBTree'
SITETREE_MODEL_TREE_ITEM = 'cosmicdb.CosmicDBTreeItem'
```

### Run
```
python manage.py migrate
python manage.py collectstatic
python manage.py createsuperuser
```

### Load sitetree from site-packages for now
```
python manage.py sitetreeload SITE_PACKAGES_DIR/cosmicdb/treedump.json
```

### Installation Complete!

## See the demo project at https://bitbucket.org/davidbradleycole/demosemantic/src/master/

## Optional

## Custom Semantic UI Themes

### NodeJS (npm)

### Gulp
```
npm install -g gulp
npm install -g gulp-cli
```

### Add NODE_PATH env

### Semantic UI
```
cd PROJECT_DIR\cosmicdb\res\
npm install semantic-ui --save
```

### Put semanticui in semantic
```
cd semantic/
gulp build
```

## Now you can copy your own theme from dist to cosmicdb\static\
```
cd PROJECT ROOT
cp -rf cosmicdb/res/semanticui/semantic/dist cosmicdb/static/cosmicdb/semantic
```

## Site Tree

### Generate sitetree
```
python manage.py sitetreedump > treedump.json
```


## Dev Notes

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



            

Raw data

            {
    "_id": null,
    "home_page": "https://bitbucket.org/davidbradleycole/cosmicdbsemantic",
    "name": "cosmicdbsemantic",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "David Cole",
    "author_email": "davidbradleycole@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/00/6b/2b5f7b885e782b045b00d98fc5343be48bf840f63a23693141bff38b22fd/cosmicdbsemantic-0.0.39.tar.gz",
    "platform": "",
    "description": "# CosmicDBSemantic Django App\n\n## Install\n```\nvirtualenv demoenv --no-site-packages\ndemoenv\\Scripts\\activate\npip install cosmicdbsemantic --no-cache-dir\ndjango-admin startproject demo\n```\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    'sitetree',\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```\nfrom django.contrib import admin\nfrom django.urls import path, re_path, include\n\nurlpatterns = [\n    re_path(r'^', include('cosmicdb.urls')),\n    path('admin/', admin.site.urls),\n]\n```\n\n### Add cosmicdb settings to your settings.py like this\n```\nLANGUAGE_CODE = 'en-au'\nCOSMICDB_SITE_TITLE = 'Demo Site'\nCRISPY_TEMPLATE_PACK = 'semanticui'\nCRISPY_ALLOWED_TEMPLATE_PACKS = (CRISPY_TEMPLATE_PACK)\nDJANGO_TABLES2_TEMPLATE = 'django_tables2/semantic.html'\nCOSMICDB_ALLOW_SIGNUP = True\nAUTH_USER_MODEL = 'cosmicdb.CosmicUser'\nLOGIN_URL = '/login/'\nEMAIL_USE_TLS = True\nEMAIL_HOST = 'mysmtp.smtp.com'\nEMAIL_PORT = 465\nEMAIL_HOST_USER = 'mysmtpuser'\nEMAIL_HOST_PASSWORD = 'mysmtppw'\nDEFAULT_FROM_EMAIL = EMAIL_HOST_USER\nDEFAULT_FROM_EMAIL_NAME = COSMICDB_SITE_TITLE\nSITETREE_MODEL_TREE = 'cosmicdb.CosmicDBTree'\nSITETREE_MODEL_TREE_ITEM = 'cosmicdb.CosmicDBTreeItem'\n```\n\n### Run\n```\npython manage.py migrate\npython manage.py collectstatic\npython manage.py createsuperuser\n```\n\n### Load sitetree from site-packages for now\n```\npython manage.py sitetreeload SITE_PACKAGES_DIR/cosmicdb/treedump.json\n```\n\n### Installation Complete!\n\n## See the demo project at https://bitbucket.org/davidbradleycole/demosemantic/src/master/\n\n## Optional\n\n## Custom Semantic UI Themes\n\n### NodeJS (npm)\n\n### Gulp\n```\nnpm install -g gulp\nnpm install -g gulp-cli\n```\n\n### Add NODE_PATH env\n\n### Semantic UI\n```\ncd PROJECT_DIR\\cosmicdb\\res\\\nnpm install semantic-ui --save\n```\n\n### Put semanticui in semantic\n```\ncd semantic/\ngulp build\n```\n\n## Now you can copy your own theme from dist to cosmicdb\\static\\\n```\ncd PROJECT ROOT\ncp -rf cosmicdb/res/semanticui/semantic/dist cosmicdb/static/cosmicdb/semantic\n```\n\n## Site Tree\n\n### Generate sitetree\n```\npython manage.py sitetreedump > treedump.json\n```\n\n\n## Dev Notes\n\n### adjust cosmicdb/__init__.py for version number\n```\nrm -rf build\npython setup.py sdist bdist_wheel\n```\n### replace the following line with version number\n```\ntwine upload dist/cosmicdbsemantic-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.39",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "2fd10730eb64d37d2c2b3d4633aff590",
                "sha256": "61a7fb53db33434bf3bc2c24ae1a1225ad7402b2c422fc24ba8d50eeaa734c2f"
            },
            "downloads": -1,
            "filename": "cosmicdbsemantic-0.0.39-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2fd10730eb64d37d2c2b3d4633aff590",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4955332,
            "upload_time": "2020-09-27T04:03:38",
            "upload_time_iso_8601": "2020-09-27T04:03:38.384488Z",
            "url": "https://files.pythonhosted.org/packages/39/a8/f77ad9709c9eeabea97e54485aa19be5ef231d83a421be0a939424fdcc92/cosmicdbsemantic-0.0.39-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "7e328ee52f730757e22e87b81d67eb1e",
                "sha256": "80129c974110b57959461853dbf3195539fb4eb09796d11f5c0d60c165b89128"
            },
            "downloads": -1,
            "filename": "cosmicdbsemantic-0.0.39.tar.gz",
            "has_sig": false,
            "md5_digest": "7e328ee52f730757e22e87b81d67eb1e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4755258,
            "upload_time": "2020-09-27T04:03:56",
            "upload_time_iso_8601": "2020-09-27T04:03:56.588862Z",
            "url": "https://files.pythonhosted.org/packages/00/6b/2b5f7b885e782b045b00d98fc5343be48bf840f63a23693141bff38b22fd/cosmicdbsemantic-0.0.39.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-09-27 04:03:56",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "bitbucket_user": null,
    "bitbucket_project": "davidbradleycole",
    "lcname": "cosmicdbsemantic"
}
        
Elapsed time: 0.18781s