
import os

from django.core.wsgi import get_wsgi_application

from whitenoise.django import DjangoWhiteNoise

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wedding.settings")

application = get_wsgi_application()
application = DjangoWhiteNoise(application)


import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wedding.settings")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

from whitenoise.django import DjangoWhiteNoise
application = DjangoWhiteNoise(application)

Set DJANGO_SETTINGS_MODULE before importing DjangoWhiteNoise
[heroku] Set DJANGO_SETTINGS_MODULE before importing DjangoWhiteNoise

  
  import os
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wedding.settings")
  
  from django.core.wsgi import get_wsgi_application
+ application = get_wsgi_application()
  
  from whitenoise.django import DjangoWhiteNoise
- 
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wedding.settings")
- 
- application = get_wsgi_application()
  application = DjangoWhiteNoise(application)
  
Set DJANGO_SETTINGS_MODULE before importing DjangoWhiteNoise
## Code Before:

import os

from django.core.wsgi import get_wsgi_application

from whitenoise.django import DjangoWhiteNoise

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wedding.settings")

application = get_wsgi_application()
application = DjangoWhiteNoise(application)

## Instruction:
Set DJANGO_SETTINGS_MODULE before importing DjangoWhiteNoise
## Code After:

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wedding.settings")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

from whitenoise.django import DjangoWhiteNoise
application = DjangoWhiteNoise(application)
