Skip to content

Commit

Permalink
Add migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
DEENUU1 committed Dec 9, 2023
1 parent 162f515 commit 30f874d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
20 changes: 20 additions & 0 deletions candidate/migrations/0004_alter_candidate_resume.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 5.0 on 2023-12-09 08:55

import candidate.models
import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('candidate', '0003_initial'),
]

operations = [
migrations.AlterField(
model_name='candidate',
name='resume',
field=models.FileField(blank=True, upload_to='', validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf'], message='Only PDF files are allowed'), candidate.models.validate_file_size]),
),
]
12 changes: 9 additions & 3 deletions fjob/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv('SECRET_KEY', get_random_secret_key())
APP_DOMAIN = os.getenv("APP_DOMAIN", "http://localhost:8000")
WORKING_MODE = str(os.getenv("WORKING_MODE"))

# WORKING_MODE = str(os.getenv("WORKING_MODE"))
WORKING_MODE = "xxx"
if WORKING_MODE == "dev" or WORKING_MODE == "test":
DEBUG = True
elif WORKING_MODE == "prod":
Expand Down Expand Up @@ -200,7 +200,13 @@
'NAME': ':memory:',
}
}

else:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
}
}
# Password validation
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators

Expand Down

0 comments on commit 30f874d

Please sign in to comment.