diff --git a/portal/__init__.py b/portal/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/portal/admin.py b/portal/admin.py
new file mode 100644
index 0000000..8c38f3f
--- /dev/null
+++ b/portal/admin.py
@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.
diff --git a/portal/apps.py b/portal/apps.py
new file mode 100644
index 0000000..811caa8
--- /dev/null
+++ b/portal/apps.py
@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class PortalConfig(AppConfig):
+ name = 'portal'
diff --git a/portal/migrations/__init__.py b/portal/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/portal/models.py b/portal/models.py
new file mode 100644
index 0000000..71a8362
--- /dev/null
+++ b/portal/models.py
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
diff --git a/portal/templates/portal/index.html b/portal/templates/portal/index.html
new file mode 100644
index 0000000..db1c7aa
--- /dev/null
+++ b/portal/templates/portal/index.html
@@ -0,0 +1,9 @@
+{% extends 'base.html' %}
+
+{% block 'body' %}
+
+ Portier
+ Nothing to see here yet. We're working on it, though!
+ See progress on GitHub
+
+{% endblock %}
diff --git a/portal/tests.py b/portal/tests.py
new file mode 100644
index 0000000..7ce503c
--- /dev/null
+++ b/portal/tests.py
@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.
diff --git a/portal/urls.py b/portal/urls.py
new file mode 100644
index 0000000..6e21aeb
--- /dev/null
+++ b/portal/urls.py
@@ -0,0 +1,6 @@
+from django.urls import path
+from . import views
+
+urlpatterns = [
+ path('', views.index, name='index'),
+]
diff --git a/portal/views.py b/portal/views.py
new file mode 100644
index 0000000..93b5098
--- /dev/null
+++ b/portal/views.py
@@ -0,0 +1,7 @@
+from django.shortcuts import render
+
+# Create your views here.
+
+def index(request):
+ # do fancy stuff here maybe
+ return render(request, 'portal/index.html')
diff --git a/portier/settings.py b/portier/settings.py
index aeb75ba..b7845b0 100644
--- a/portier/settings.py
+++ b/portier/settings.py
@@ -36,6 +36,9 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'bootstrap4',
+ 'fa',
+ 'portal.apps.PortalConfig',
'rtmp.apps.RtmpConfig',
'restream.apps.RestreamConfig',
]
@@ -55,7 +58,7 @@ ROOT_URLCONF = 'portier.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
+ 'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
diff --git a/portier/urls.py b/portier/urls.py
index d1ecf72..416fdbd 100644
--- a/portier/urls.py
+++ b/portier/urls.py
@@ -18,5 +18,6 @@ from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
- path('rtmp/', include('rtmp.urls'))
+ path('rtmp/', include('rtmp.urls')),
+ path('', include('portal.urls')),
]
diff --git a/requirements.txt b/requirements.txt
index ed1a215..4817800 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,6 @@
django>=3.0
+django-bootstrap4
+django-fa
celery>=4.4
gunicorn>=20
psycopg2-binary
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..6066c36
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,22 @@
+{% load bootstrap4 %}
+{% load font_awesome %}
+
+
+
+
+
+
+
+
+ {% block 'title' %}portier{% endblock %}
+ {% bootstrap_css %}
+ {% fa_css %}
+ {% bootstrap_javascript jquery='full' %}
+
+
+
+ {% bootstrap_messages %}
+ {% block 'body' %}
+ {% endblock %}
+
+