Skip to main content

A Django Web App for a Nursing Home Facility

Project description

Camillus MedHaven Portal: A Django Web App for a Nursing Home Facility

Installation

  1. Add cm_portal and its dependency to your INSTALLED_APPS like this:
    INSTALLED_APPS = [    
        'dal',
        'dal_select2',
        'django.contrib.admin',
        ...
        'cm_portal.apps.CmPortalConfig',
        'widget_tweaks',
        'django_tables2',
        'bootstrap_modal_forms',
    ] 
  1. Append the following environment variables to your settings.py.

    STATIC_ROOT = os.path.join(BASE_DIR, 'static')
    MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
    MEDIA_URL = '/media/'
    LOGIN_REDIRECT_URL = '/'
    LOGOUT_REDIRECT_URL = '/'
    
  2. Include the cm_portal URLconf in your project urls.py like this:

    from django.conf.urls import include
    urlpatterns += [
        path('', include('cm_portal.urls')),
    ]

    urlpatterns += [
        path('accounts/', include('django.contrib.auth.urls')),
    ]
  1. Run python manage.py migrate to create the cm_portal models.

  2. Start the development server and visit http://127.0.0.1:8000/ to begin using app.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cm-portal, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size cm_portal-0.2.4-py3-none-any.whl (435.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cm_portal-0.2.4.tar.gz (350.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page