I'd like to iterate through the INSTALLED_APPS in my Django settings file like so:
@task
def test_app
print settings.INSTALLED_APPS
How do I access my settings file in a fabfile?
Thanks.
It's documented: http://docs.fabfile.org/en/latest/api/contrib/django.html
from fabric.contrib import django
django.settings_module('myproject.settings')
from django.conf import settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With