Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
db59fc6f
authored
Apr 27, 2020
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix celery confoguration
parent
1a9d29a0
Pipeline
#1096
passed with stage
in 1 minute 44 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
recircle/instance/migrations/0004_auto_20200427_1153.py
+18
-0
recircle/recircle/celery.py
+2
-2
recircle/recircle/settings/base.py
+2
-1
No files found.
recircle/instance/migrations/0004_auto_20200427_1153.py
0 → 100644
View file @
db59fc6f
# Generated by Django 3.0.5 on 2020-04-27 09:53
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'instance'
,
'0003_auto_20200408_1503'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'basemachinedescriptor'
,
name
=
'access_protocol'
,
field
=
models
.
CharField
(
choices
=
[(
'RDP'
,
'Remote Desktop Protocol'
),
(
'SSH'
,
'Secure Shell'
)],
help_text
=
'The protocol which used to connect to the machinethat created from this template'
,
max_length
=
50
,
verbose_name
=
'remote_access_protocol'
),
),
]
recircle/recircle/celery.py
View file @
db59fc6f
...
...
@@ -5,9 +5,9 @@ import os
from
celery
import
Celery
# set the default Django settings module for the 'celery' program.
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'
proj.settings
'
)
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'
recircle.settings.base
'
)
app
=
Celery
(
'
proj
'
)
app
=
Celery
(
'
recircle
'
)
# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
...
...
recircle/recircle/settings/base.py
View file @
db59fc6f
...
...
@@ -43,7 +43,8 @@ INSTALLED_APPS = [
"corsheaders"
,
"guardian"
,
"django_nose"
,
"channels"
"channels"
,
"django_celery_beat"
]
LOCAL_APPS
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment