Skip to content

Commit ffc2291

Browse files
committed
petra config
1 parent 032d33a commit ffc2291

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

django_petra/celery.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def configure_celery(project_name, type = 'redis'):
2323
app.conf.broker_url = os.environ.get('CELERY_BROKER')
2424

2525
# Dynamically import schedules from {project_name}.friend_scheduler
26-
schedules_module = importlib.import_module(f'{project_name}.friend_config.scheduler')
26+
schedules_module = importlib.import_module(f'{project_name}.petra_config.scheduler')
2727
app.conf.beat_schedule = bind_beat_schedule(schedules=schedules_module.schedules)
2828

2929
# RedBeat Configuration

django_petra/cors/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
the_base_module_name = base_module_name()
55

66
# Import CORS settings dynamically
7-
cors_module = importlib.import_module(f"{the_base_module_name}.friend_config.cors")
7+
cors_module = importlib.import_module(f"{the_base_module_name}.petra_config.cors")
88
ALLOWED_METHODS = cors_module.ALLOWED_METHODS
99
ALLOWED_ORIGINS = cors_module.ALLOWED_ORIGINS
1010
ALLOWED_ORIGINS_PATTERNS = cors_module.ALLOWED_ORIGINS_PATTERNS

0 commit comments

Comments
 (0)