Skip to content
#

settings

Here are 687 public repositories matching this topic...

sant527
sant527 commented Mar 31, 2019

In django development i am planning to install django-extensions app

I have to add it to the INSTALLED_APPS.

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
   # third party apps
    'django_extensions',
]

Now how

dynaconf
dyens
dyens commented Aug 8, 2019

For testing in my project i want to add in my conftest.py something like that:

import pytest
import os

@pytest.fixture(scope='session', autouse=True)
def settings():
    os.environ['ENV_FOR_DYNACONF'] = 'testing'

But this is not work ;-(. What can you advise me ?
I dont want start my test like that : ENV_FOR_DYNACONF=testing pytest because somebody can miss that command pr

Loading…
You can’t perform that action at this time.