Skip to content

Commit

Permalink
volumes changed
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifer1708 committed Jul 30, 2023
1 parent b834560 commit cdef422
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 5 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM python:3.10

WORKDIR /app

COPY requirements.txt .

RUN pip install -r requirements.txt
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
PYTHON= python3
MANAGE= venv/bin/python manage.py
ACTIVATE=. venv/bin/activate

# Django Configrations
PORT= 8009

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ version: '3'
services:
app:
volumes:
- media:/app/media
- db:/app/db.sqlite3
- media:/app/media/
- ./db.sqlite3:/app/db.sqlite3
build: .
ports:
- "8081:8081"
command: gunicorn --bind 0.0.0.0:8081 main.wsgi

volumes:
media:
db:

Binary file removed forms/__pycache__/apps.cpython-38.pyc
Binary file not shown.
Binary file removed forms/__pycache__/forms.cpython-38.pyc
Binary file not shown.
Binary file removed forms/__pycache__/models.cpython-38.pyc
Binary file not shown.
Binary file removed forms/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file removed forms/__pycache__/views.cpython-38.pyc
Binary file not shown.
22 changes: 22 additions & 0 deletions forms/migrations/0007_alter_registeration_resume.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.0.8 on 2023-07-30 12:34

import django.core.files.storage
import django.core.validators
from django.db import migrations, models
import forms.models
import pathlib


class Migration(migrations.Migration):

dependencies = [
('forms', '0006_alter_registeration_resume'),
]

operations = [
migrations.AlterField(
model_name='registeration',
name='resume',
field=models.FileField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(location=pathlib.PurePosixPath('/home/lucifer/join.istenith.com/media')), upload_to='resumes/', validators=[forms.models.file_size, django.core.validators.FileExtensionValidator(allowed_extensions=['pdf', 'docx'])]),
),
]
Binary file removed main/__pycache__/settings.cpython-38.pyc
Binary file not shown.

0 comments on commit cdef422

Please sign in to comment.