-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings_test.py
40 lines (32 loc) · 1.2 KB
/
settings_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# encoding=UTF-8
# Django settings for candidator project.
import os
INSTALLED_APPS = [
'candideitorg',
'djcelery'
]
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': os.path.join(PROJECT_ROOT, 'development.db'), # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
import djcelery
djcelery.setup_loader()
CELERY_ALWAYS_EAGER = True
#CELERY STUFF
BROKER_URL = 'amqp://guest:guest@localhost:5672/'
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
CELERY_RESULT_BACKEND = "amqp"
SECRET_KEY="hola"
CANDIDEITORG_URL = 'http://127.0.0.1:3002/api/v2/'
CANDIDEITORG_USERNAME = 'admin'
CANDIDEITORG_API_KEY = 'a'
import djcelery
djcelery.setup_loader()
CELERY_ALWAYS_EAGER = True