diff --git a/.gitignore b/.gitignore
index 935edda..a591ac0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,6 @@ __pycache__/
# Django Database
db.sqlite3
+
+# Django Static Files
+.stat/
diff --git a/src/home/admin.py b/src/home/admin.py
deleted file mode 100644
index 8c38f3f..0000000
--- a/src/home/admin.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from django.contrib import admin
-
-# Register your models here.
diff --git a/src/home/models.py b/src/home/models.py
deleted file mode 100644
index 71a8362..0000000
--- a/src/home/models.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from django.db import models
-
-# Create your models here.
diff --git a/src/home/templates/home/index.html b/src/home/templates/home/index.html
index e69de29..dcad0ac 100644
--- a/src/home/templates/home/index.html
+++ b/src/home/templates/home/index.html
@@ -0,0 +1,9 @@
+{% extends "master.html" %}
+{% load static %}
+
+{% block title %}Urban Brothers - Home{% endblock %}
+
+{% block content %}
+
Urban Brothers
+
+{% endblock %}
diff --git a/src/home/urls.py b/src/home/urls.py
index e69de29..783acb3 100644
--- a/src/home/urls.py
+++ b/src/home/urls.py
@@ -0,0 +1,8 @@
+"""ub URL Configuration
+"""
+from django.urls import path
+from . import views
+
+urlpatterns = [
+ path('', views.home, name='home')
+]
diff --git a/src/home/views.py b/src/home/views.py
index 91ea44a..1b6a344 100644
--- a/src/home/views.py
+++ b/src/home/views.py
@@ -1,3 +1,5 @@
from django.shortcuts import render
-# Create your views here.
+
+def home(request):
+ return render(request, 'home/index.html')
diff --git a/src/shared/ressources/css/master.css b/src/shared/ressources/css/master.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/shared/templates/master.html b/src/shared/templates/master.html
new file mode 100644
index 0000000..3b5735e
--- /dev/null
+++ b/src/shared/templates/master.html
@@ -0,0 +1,44 @@
+{% load static %}
+
+
+
+
+ {% block title %}{% endblock %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {% block header %}{% endblock %}
+
+
+
+
+ {% block content %}
+
+ {% endblock %}
+
+
+ {% block scripts_below %}{% endblock %}
+
+ {% if toast %}
+
+ {% endif %}
+
+
diff --git a/src/steam_tools/apps.py b/src/steam_tools/apps.py
new file mode 100644
index 0000000..39dab5e
--- /dev/null
+++ b/src/steam_tools/apps.py
@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class SteamToolsConfig(AppConfig):
+ name = 'steam_tools'
diff --git a/src/steam_tools/urls.py b/src/steam_tools/urls.py
new file mode 100644
index 0000000..1f25044
--- /dev/null
+++ b/src/steam_tools/urls.py
@@ -0,0 +1,6 @@
+from django.urls import path
+from . import views
+
+urlpatterns = [
+ path('swf', views.steam_with_friends, name='steam_with_friends')
+]
diff --git a/src/steam_tools/views.py b/src/steam_tools/views.py
new file mode 100644
index 0000000..5fe9d57
--- /dev/null
+++ b/src/steam_tools/views.py
@@ -0,0 +1,6 @@
+from django.shortcuts import render
+
+
+def steam_with_friends(request):
+ context = {}
+ return render(request, 'steam_tools/swf.html', context)
diff --git a/src/ub/settings.py b/src/ub/settings.py
index 065f1ea..f305ce2 100644
--- a/src/ub/settings.py
+++ b/src/ub/settings.py
@@ -24,6 +24,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
+ 'home',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -47,7 +48,9 @@ ROOT_URLCONF = 'ub.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
+ 'DIRS': [
+ BASE_DIR / 'shared/templates'
+ ],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
@@ -104,9 +107,17 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
+STATIC_ROOT = os.path.join(BASE_DIR, 'stat/')
STATIC_URL = '/static/'
+STATICFILES_DIRS = [
+ os.path.join(BASE_DIR, 'shared/ressources')
+]
# Media paths for serving uploaded files
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
MEDIA_URL = '/media/'
LOGIN_URL = '/login'
+
+# Maximum File Size for File Uploads
+FILE_UPLOAD_MAX_MEMORY_SIZE = 104857600
+DATA_UPLOAD_MAX_MEMORY_SIZE = 104857600