
import os

from django.core.wsgi import get_wsgi_application

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

application = get_wsgi_application()

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


import os

from django.core.wsgi import get_wsgi_application

from whitenoise.django import DjangoWhiteNoise

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

application = DjangoWhiteNoise(get_wsgi_application())

Fix flake8: E402 module level import not at top of file
Fix flake8: E402 module level import not at top of file

  
  import os
  
  from django.core.wsgi import get_wsgi_application
  
+ from whitenoise.django import DjangoWhiteNoise
+ 
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nau_timetable.settings")
  
- application = get_wsgi_application()
+ application = DjangoWhiteNoise(get_wsgi_application())
  
- from whitenoise.django import DjangoWhiteNoise
- application = DjangoWhiteNoise(application)
- 
Fix flake8: E402 module level import not at top of file
## Code Before:

import os

from django.core.wsgi import get_wsgi_application

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

application = get_wsgi_application()

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

## Instruction:
Fix flake8: E402 module level import not at top of file
## Code After:

import os

from django.core.wsgi import get_wsgi_application

from whitenoise.django import DjangoWhiteNoise

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

application = DjangoWhiteNoise(get_wsgi_application())
