Skip to content

Commit

Permalink
Fix option
Browse files Browse the repository at this point in the history
  • Loading branch information
skatsaounis committed Sep 23, 2020
1 parent 0fffaee commit 5bff794
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions patchman/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'patchman.settings')
from django.conf import settings # noqa
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'patchman.settings') # noqa
from django.conf import settings


app = Celery('patchman')
Expand Down
2 changes: 1 addition & 1 deletion patchman/management/commands/set_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def handle(self, *args, **options):
try:
Site.objects.filter(pk=settings.SITE_ID).update(
name=options['site_name'], domain=options['site_name'])
if options['claer_cache']:
if options['clear_cache']:
Site.objects.clear_cache()
except Exception as e:
raise CommandError('Failed to update Site name', str(e))
5 changes: 5 additions & 0 deletions patchman/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
# You should have received a copy of the GNU General Public License
# along with Patchman. If not, see <http://www.gnu.org/licenses/>

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'patchman.settings') # noqa
from django.conf import settings


application = get_wsgi_application()

0 comments on commit 5bff794

Please sign in to comment.