Skip to content
Snippets Groups Projects
Select Git revision
  • 52024a421d92fec6876b631cd8535e9ca0df0a39
  • master default protected
  • vertical_relations
  • lu_without_semantic_frames
  • hierarchy
  • additional-unification-filters
  • v0.1.1
  • v0.1.0
  • v0.0.9
  • v0.0.8
  • v0.0.7
  • v0.0.6
  • v0.0.5
  • v0.0.4
  • v0.0.3
  • v0.0.2
  • v0.0.1
17 results

wsgi.py

Blame
  • user avatar
    dcz authored
    5ddecdd2
    History
    wsgi.py 489 B
    """
    WSGI config for shellvalier project.
    
    It exposes the WSGI callable as a module-level variable named ``application``.
    
    For more information on this file, see
    https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
    """
    
    import os
    
    from django.core.wsgi import get_wsgi_application
    from django.contrib.auth.models import User
    
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shellvalier.settings')
    
    application = get_wsgi_application()
    
    User._meta.get_field('email')._unique = True