Skip to content

Add initial users app #2013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,6 @@ storybook-static/

# ignore local ssl certs
certs/

# ignore db backups
backups/
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ RUN mkdir /src
RUN adduser --disabled-password --gecos "" mitodl
RUN mkdir /var/media && chown -R mitodl:mitodl /var/media

# copy in trusted certs
COPY --chmod=644 certs/*.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates

## Set some poetry config
ENV \
POETRY_VERSION=1.7.1 \
Expand Down
Empty file added backups/.keep
Empty file.
Empty file added certs/.keep
Empty file.
1 change: 1 addition & 0 deletions docker-compose.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- POSTGRES_PASSWORD=postgres
volumes:
- pgdata:/var/lib/postgresql
- ./backups:/mnt/backups

redis:
profiles:
Expand Down
1 change: 1 addition & 0 deletions main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"drf_spectacular",
# Put our apps after this point
"main",
"users",
"authentication",
"channels",
"profiles",
Expand Down
Empty file added users/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions users/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class UsersConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "users"
9 changes: 9 additions & 0 deletions users/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generated by Django 4.2.18 on 2025-02-05 19:41

from django.db import migrations


class Migration(migrations.Migration):
dependencies = []

operations = []
Empty file added users/migrations/__init__.py
Empty file.
Loading