Giter VIP home page Giter VIP logo

oim-cms's Introduction

OIM Extranet

This project contains the CMS to provide the OIM Extranet site, which is based upon the Wagtail CMS.

Installation

The recommended way to set up this project for development is using Poetry to install and manage a virtual Python environment. With Poetry installed, change into the project directory and run:

poetry install

To run Python commands in the virtualenv, thereafter run them like so:

poetry run python manage.py

Manage new or updating project dependencies with Poetry also, like so:

poetry add newpackage==1.0

Environment variables

This project uses environment variables (in a .env file) to define application settings. Required settings are as follows:

DATABASE_URL="postgis://USER:PASSWORD@HOST:PORT/DATABASE_NAME"
SECRET_KEY="ThisIsASecretKey"

Running

Use runserver to run a local copy of the application:

poetry run python manage.py runserver 0:8080

Run console commands manually:

poetry run python manage.py shell_plus

Docker image

To build a new Docker image from the Dockerfile:

docker image build -t dbcawa/oim-cms .

oim-cms's People

Contributors

adonm avatar brendanc-dpaw avatar dbca-asi avatar dependabot[bot] avatar rayrayndwiga avatar ropable avatar snyk-bot avatar tawazz avatar wilsonc86 avatar xzzy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

oim-cms's Issues

Unable to add Hardware record

Attempting to add a new registers.hardware record fails with an error, form also seems to be missing the Name field

Script/function to import data from legacy IT Assets system

Legacy IT Assets system: https://assets.dpaw.wa.gov.au/admin/
Legacy project repo: https://github.com/parksandwildlife/it-assets

Create a utility script in the assets app (assets/utils.py) to import data from the old system into the CMS. Easiest way would be to assume that the data is available as dumped, serialised fixtures.

Model map (old -> new):

  • Supplier -> Vendor
  • Model -> HardwareModel
  • Location -> Location
  • Invoice -> Invoice
  • Asset -> HardwareAsset

Upgrade Django to v1.10.x

Test the upgrade from 1.9.9 to 1.10.2(?). Check the following:

  • Unit tests
  • Content admin authoring (create, update, publish)
  • Django admin functions (create, update, delete, reports)

Make a note of required deployment steps (migrations, etc.)

Update DepartmentUser model to indicate whether the account has an O365 Exchange license

Update the DepartmentUser to include a non-editable NullBoolean field called exchange_licensed (default=None). Review the C:\cron\Get-365LicensedUsers.ps1 Powershell script to see how it outputs a list of licensed O365 user accounts. Add a step to the C:\cron\directory_wrangler.ps1 script to set the exchange_licensed field to True for each O365 licensed account (via the REST API).

DepartmentUser export: additional fields required in Excel output

To be added to output:
From CMS fields:
Given Name, Surname, Cost centre, Org unit name, Position Type, Parent (to be renamed Reports to), Section, Office location name, Location address,
From Alesco read-only data:
SECOND_NAME, SURNAME, PAYPOINT, PAYPOINT_DESC, POSITION_NO

View to allow application custodians the ability to edit some ITSystem fields

Allow custodians to edit the following fields: description, notes, documentation, technical_documentation, system_reqs, workaround, recovery_docs, system_creation_date, critical_period, alt_processing, technical_recov, post_recovery, user_notification, unique_evidence, point_of_truth, legal_need_to_retain

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.