Skip to main content

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

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

    INSTALLED_APPS = (
        'django.contrib.sites',
        '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 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'
  4. Run python manage.py migrate

  5. Run python manage.py collectstatic

  6. Run python manage.py createsuperuser

Requirements

Django>=1.11

Project details


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)

Uploaded Source

Built Distribution

cosmicdb-0.0.4-py3-none-any.whl (4.5 MB view details)

Uploaded Python 3

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

Hashes for cosmicdb-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f38637ab9d4025122d4d46deab2af0d16648996d30bc702e0466d2d02e4b0ffb
MD5 39cad1b9fc8bc75f863d81cf1b733c6e
BLAKE2b-256 c7cfe4c40d0946d6cafd6da0edd0a4d65a11b15a65bef58c6437be34188663f5

See more details on using hashes here.

File details

Details for the file cosmicdb-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for cosmicdb-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 487f92d70da228546ba6d80d435626814168eaf3516ddcb8667fd50fcaa05fbc
MD5 926d83f38db8464a56b7bb478d1ff1b0
BLAKE2b-256 96b6aacbd126a61f306746b5b53501718784001c06c63b6d0a01e07d52dbacd2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page