Skip to content

Commit

Permalink
Add initial migration for users app
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysyngsun committed Feb 5, 2025
1 parent f59e570 commit 2f6bc60
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 0 deletions.
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.

0 comments on commit 2f6bc60

Please sign in to comment.