Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #14 from praekeltfoundation/feature/asgi-application
Browse files Browse the repository at this point in the history
Feature/asgi application
  • Loading branch information
nyashabryan committed Jul 26, 2018
2 parents 9ed5172 + 7f54620 commit fa72a0c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Empty file added .env
Empty file.
12 changes: 12 additions & 0 deletions momkhulu/asgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""

import os
import django
from channels.routing import get_default_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "momkhulu.settings.dev")
django.setup()
application = get_default_application()

0 comments on commit fa72a0c

Please sign in to comment.