from django.shortcuts import render # Create your views here. from webgui.settings import APPLICATION_NAME from .models import ChannelSettings from .forms import ChannelSettingsForm def channel_settings(request, channel_id): print(ChannelSettings.objects.get(channel=channel_id)) print(ChannelSettings.objects.get(channel=channel_id).interact) context = { 'title': 'Channel settings for ', 'icon': 'screwdriver', 'description': 'modify channel settings for ' + APPLICATION_NAME, 'keywords': 'settigns, channel', 'channel_settings': ChannelSettings.objects.get(channel=channel_id), 'form': ChannelSettingsForm, } return render(request, 'config/channel_settings.html', context)