-
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
8 changed files
with
101 additions
and
27 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 3.2.17 on 2023-02-22 16:43 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('hunters', '0003_auto_20230214_2010'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Position', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(blank=True, max_length=255)), | ||
('create_date', models.DateTimeField(blank=True, null=True)), | ||
('edit_date', models.DateTimeField(blank=True, null=True)), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='hunter', | ||
name='brief', | ||
field=models.FileField(blank=True, help_text='Document Upload', upload_to=''), | ||
), | ||
migrations.AddField( | ||
model_name='hunter', | ||
name='certification', | ||
field=models.TextField(blank=True, help_text='Certifications required if any'), | ||
), | ||
migrations.AlterField( | ||
model_name='hunter', | ||
name='position_title', | ||
field=models.ForeignKey(blank=True, help_text='Title, (CTO, Front End, Back End etc.)', on_delete=django.db.models.deletion.CASCADE, to='hunters.position'), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,8 @@ | |
'django_celery_beat', | ||
'hunters', | ||
|
||
'storages', | ||
|
||
# forms | ||
'colorful', | ||
'crispy_forms', | ||
|
@@ -180,7 +182,7 @@ | |
MEDIA_URL = '/media/' | ||
|
||
# e.g. in notification emails. Don't include '/admin' or a trailing slash | ||
BASE_URL = 'https://health.open.build' | ||
BASE_URL = 'https://devhunter.io' | ||
|
||
LOGIN_REDIRECT_URL = '/' | ||
|
||
|
@@ -192,7 +194,7 @@ | |
|
||
CRISPY_TEMPLATE_PACK = "bootstrap5" | ||
|
||
PAYPAL_RECEIVER_EMAIL = "[email protected]" | ||
PAYPAL_RECEIVER_EMAIL = "[email protected]" | ||
PAYPAL_TEST = True | ||
|
||
SITE_ID = 1 | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
DEBUG = True | ||
|
||
ALLOWED_HOSTS = ['lionfish-app-ufv5e.ondigitalocean.app', 'open.build', '127.0.0.1', '[::1]','devhunter.io','www.devhunter.io'] | ||
ALLOWED_HOSTS = ['lionfish-app-ufv5e.ondigitalocean.app', '127.0.0.1', '[::1]','devhunter.io','www.devhunter.io'] | ||
|
||
try: | ||
from .local import * | ||
|
@@ -45,30 +45,30 @@ | |
# something more human-readable. | ||
# release="[email protected]", | ||
) | ||
CELERY_BEAT_SCHEDULE = { | ||
# 'create_iclp_sensor_report': { | ||
# 'task': 'sensor.services.tasks.create_iclp_sensor_report', | ||
# # execute every 15 minute with offset of 2 | ||
# 'schedule': crontab(minute='02,17,32,47'), | ||
# }, | ||
'check_sites': { | ||
'task': 'monitorsites.tasks.my_scheduled_job', | ||
# execute every 10 minute with offset of 2 | ||
'schedule': crontab(minute='03,13,23,33,43,53'), | ||
} | ||
} | ||
|
||
CELERY_BROKER_URL = os.getenv('CELERY_BROKER_URL', "locahost:6379") | ||
#: Only add pickle to this list if your broker is secured | ||
#: from unwanted access (see userguide/security.html) | ||
CELERY_ACCEPT_CONTENT = ['json'] | ||
CELERY_RESULT_BACKEND = 'db+sqlite:///results.sqlite' | ||
CELERY_TASK_SERIALIZER = 'json' | ||
|
||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" # new | ||
DEFAULT_FROM_EMAIL = "help@open.build" | ||
DEFAULT_FROM_EMAIL = "help@devhunter.io" | ||
EMAIL_HOST = "smtp.sendgrid.net" # new | ||
EMAIL_HOST_USER = "apikey" # new | ||
EMAIL_HOST_PASSWORD = os.environ.get("SENDGRID_PASSWORD") # new | ||
EMAIL_PORT = 587 # new | ||
EMAIL_USE_TLS = True # new | ||
|
||
AWS_STORAGE_BUCKET_NAME = 'devhunter' | ||
AWS_ACCESS_KEY_ID = 'DO00MW9V6QPPJKVCGHYA' | ||
AWS_SECRET_ACCESS_KEY = os.environ.get("SPACES_SECRET") | ||
AWS_S3_CUSTOM_DOMAIN = 'cms-static.nyc3.digitaloceanspaces.com' + "/" + AWS_STORAGE_BUCKET_NAME | ||
AWS_S3_ENDPOINT_URL = 'https://cms-static.nyc3.digitaloceanspaces.com' | ||
|
||
|
||
MEDIA_URL = AWS_S3_CUSTOM_DOMAIN + "/" + AWS_STORAGE_BUCKET_NAME + "/" | ||
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage' | ||
|
||
AWS_LOCATION = 'static' | ||
STATIC_URL = f'https://{AWS_S3_ENDPOINT_URL}/{AWS_STORAGE_BUCKET_NAME}/{AWS_LOCATION}/' | ||
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3StaticStorage' | ||
|
||
AWS_DEFAULT_ACL = 'public-read' | ||
|
||
# SECURITY WARNING: don't run with debug turned on in production! | ||
DEBUG = True |
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