Page MenuHomePhabricator

Initial Django project setup
Closed, ResolvedPublic

Description

We are planning to use https://en.wikipedia.org/wiki/Django_(web_framework) as our web framework for the implementation of the IDM,

Initial Django setup steps include:

  • Creating configuration files for test and production
  • Creation of custom User and Group models. This is recommended best practice for all new Django project
  • Configuration of test framework, and documentation. We want people to be able to pick up the code and start contributing or fixing bugs. Having an easy way for them to test and debug is critical to get people involved.
  • Version control
  • CI/CD integration.We do not want to automatically deploy new versions, but it should be as easy as possible to build, test and release new versions.

Details

Related Changes in Gerrit:

Event Timeline

Striker and/or Toolhub may have things that are worth copying for you here. Striker especially has a docker-compose based development environment which includes an LDAP service, a couple of wikis (to act as standins for meta and wikitech), and various other support services. These might not be the exact things you need, but they do show one way of building a non-trivial dev environment using docker-compose and a blubber-based core project image.

Change 850465 had a related patch set uploaded (by Slyngshede; author: Slyngshede):

[operations/software/bitu@master] Bitu IDM, initial checkin

https://gerrit.wikimedia.org/r/850465

I think it's a good idea to borrow the docker-compose idea from Striker. We already know that we'll need the LDAP container.

SLyngshede-WMF changed the task status from Open to In Progress.Nov 1 2022, 1:35 PM
SLyngshede-WMF triaged this task as Low priority.

Change 850465 merged by Slyngshede:

[operations/software/bitu@master] Bitu IDM, initial checkin

https://gerrit.wikimedia.org/r/850465