diff --git a/sapl/settings.py b/sapl/settings.py index 7d1f61adf..49c22ae33 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -23,7 +23,8 @@ from easy_thumbnails.conf import Settings as thumbnail_settings from unipath import Path -host = socket.gethostbyname_ex(socket.gethostname())[0] +#host = socket.gethostbyname_ex(socket.gethostname())[0] +host = "127.0.0.1" BASE_DIR = Path(__file__).ancestor(1) PROJECT_DIR = Path(__file__).ancestor(2) @@ -65,6 +66,7 @@ SAPL_APPS = ( 'sapl.redireciona_urls', 'sapl.compilacao', 'sapl.api', + 'sapl.videoconf', 'sapl.rules' diff --git a/sapl/templates/videoconf/videoconferencia.html b/sapl/templates/videoconf/videoconferencia.html new file mode 100644 index 000000000..96ec59141 --- /dev/null +++ b/sapl/templates/videoconf/videoconferencia.html @@ -0,0 +1,38 @@ + + + + + + + + Videoconferência + + +

Vídeoconferência

+
+ + \ No newline at end of file diff --git a/sapl/urls.py b/sapl/urls.py index 12528e07e..936181117 100644 --- a/sapl/urls.py +++ b/sapl/urls.py @@ -34,6 +34,7 @@ import sapl.protocoloadm.urls import sapl.redireciona_urls.urls import sapl.relatorios.urls import sapl.sessao.urls +import sapl.videoconf.urls urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='index.html'), @@ -63,6 +64,8 @@ urlpatterns = [ url='/static/sapl/img/favicon.ico', permanent=True)), url(r'', include(sapl.redireciona_urls.urls)), + + url(r'', include(sapl.videoconf.urls)), ] diff --git a/sapl/videoconf/__init__.py b/sapl/videoconf/__init__.py new file mode 100644 index 000000000..5d1b2901c --- /dev/null +++ b/sapl/videoconf/__init__.py @@ -0,0 +1 @@ +default_app_config = 'sapl.videoconf.apps.AppConfig' \ No newline at end of file diff --git a/sapl/videoconf/admin.py b/sapl/videoconf/admin.py new file mode 100644 index 000000000..e69de29bb diff --git a/sapl/videoconf/apps.py b/sapl/videoconf/apps.py new file mode 100644 index 000000000..018c57d86 --- /dev/null +++ b/sapl/videoconf/apps.py @@ -0,0 +1,8 @@ +from django import apps +from django.utils.translation import ugettext_lazy as _ + + +class AppConfig(apps.AppConfig): + name = 'sapl.videoconf' + label = 'videoconf' + verbose_name = _('Video-conferência') \ No newline at end of file diff --git a/sapl/videoconf/migrations/__init__.py b/sapl/videoconf/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/sapl/videoconf/models.py b/sapl/videoconf/models.py new file mode 100644 index 000000000..71a836239 --- /dev/null +++ b/sapl/videoconf/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/sapl/videoconf/tests.py b/sapl/videoconf/tests.py new file mode 100644 index 000000000..7ce503c2d --- /dev/null +++ b/sapl/videoconf/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/sapl/videoconf/urls.py b/sapl/videoconf/urls.py new file mode 100644 index 000000000..bd55599c4 --- /dev/null +++ b/sapl/videoconf/urls.py @@ -0,0 +1,10 @@ + +from .apps import AppConfig +from .views import VideoConferenciaView +from django.conf.urls import url + +app_name = AppConfig.name + +urlpatterns = [ + url(r'^videoconf/$', VideoConferenciaView.as_view(), name='videoconferencia'), +] diff --git a/sapl/videoconf/views.py b/sapl/videoconf/views.py new file mode 100644 index 000000000..984cfbffc --- /dev/null +++ b/sapl/videoconf/views.py @@ -0,0 +1,14 @@ +from django.shortcuts import render +from django.views.generic import TemplateView +from django.contrib.auth.mixins import PermissionRequiredMixin + +# Create your views here. + + +class VideoConferenciaView(PermissionRequiredMixin, TemplateView): + template_name = "videoconf/videoconferencia.html" + permission_required = ('sessao.add_sessao', ) + + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + return context