-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
1,055 additions
and
933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.venv | ||
.idea | ||
staticfiles | ||
db.sqlite3 | ||
__pycache__ | ||
*.mo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
FROM python:3.11.4 | ||
FROM python:3.11.4-alpine3.18 | ||
|
||
RUN apt update && apt install -y gettext libgettextpo-dev && pip install --upgrade pip && pip install -U poetry | ||
RUN apk update && apk add --no-cache gettext libintl && pip install -U poetry | ||
RUN poetry config virtualenvs.create false | ||
|
||
WORKDIR /code | ||
|
||
COPY pyproject.toml poetry.lock ./ | ||
RUN poetry install --only main | ||
|
||
COPY . . | ||
|
||
RUN ./setup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
backend/api/migrations/0012_errortemplate_alter_extrachecksresult_error_message_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 5.0.4 on 2024-04-09 10:47 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0011_revise_extra_checks'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ErrorTemplate', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('message_key', models.CharField(max_length=256)), | ||
], | ||
), | ||
migrations.AlterField( | ||
model_name='extrachecksresult', | ||
name='error_message', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='extra_checks_results', to='api.errortemplate'), | ||
), | ||
migrations.DeleteModel( | ||
name='ErrorTemplates', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 5.0.4 on 2024-04-09 10:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0012_errortemplate_alter_extrachecksresult_error_message_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='student', | ||
name='is_active', | ||
field=models.BooleanField(default=True), | ||
), | ||
] |
30 changes: 30 additions & 0 deletions
30
.../migrations/0013_student_is_active_squashed_0014_assistant_is_active_teacher_is_active.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 5.0.4 on 2024-04-09 10:53 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
replaces = [('api', '0013_student_is_active'), ('api', '0014_assistant_is_active_teacher_is_active')] | ||
|
||
dependencies = [ | ||
('api', '0012_errortemplate_alter_extrachecksresult_error_message_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='student', | ||
name='is_active', | ||
field=models.BooleanField(default=True), | ||
), | ||
migrations.AddField( | ||
model_name='assistant', | ||
name='is_active', | ||
field=models.BooleanField(default=True), | ||
), | ||
migrations.AddField( | ||
model_name='teacher', | ||
name='is_active', | ||
field=models.BooleanField(default=True), | ||
), | ||
] |
Oops, something went wrong.