Skip to content

Commit 5bff794

Browse files
committed
Fix option
1 parent 0fffaee commit 5bff794

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

patchman/celery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import os
1818
from celery import Celery
1919

20-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'patchman.settings')
21-
from django.conf import settings # noqa
20+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'patchman.settings') # noqa
21+
from django.conf import settings
2222

2323

2424
app = Celery('patchman')

patchman/management/commands/set_site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def handle(self, *args, **options):
1717
try:
1818
Site.objects.filter(pk=settings.SITE_ID).update(
1919
name=options['site_name'], domain=options['site_name'])
20-
if options['claer_cache']:
20+
if options['clear_cache']:
2121
Site.objects.clear_cache()
2222
except Exception as e:
2323
raise CommandError('Failed to update Site name', str(e))

patchman/wsgi.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
# You should have received a copy of the GNU General Public License
1515
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
1616

17+
import os
18+
1719
from django.core.wsgi import get_wsgi_application
1820

21+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'patchman.settings') # noqa
22+
from django.conf import settings
23+
1924

2025
application = get_wsgi_application()

0 commit comments

Comments
 (0)