refactoring
This commit is contained in:
parent
f381b4dd44
commit
c770867c2c
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -1,6 +0,0 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class FrontConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'front'
|
|
@ -1,3 +0,0 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
|
@ -1,3 +0,0 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
|
@ -1,8 +0,0 @@
|
|||
from django.urls import path
|
||||
from django.shortcuts import redirect
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.index, name="index"),
|
||||
]
|
|
@ -1,8 +0,0 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
|
||||
# Create your views here.
|
||||
|
||||
def index(request):
|
||||
context = {}
|
||||
return render(request, "index.html", context)
|
|
@ -16,7 +16,7 @@ Including another URLconf
|
|||
"""
|
||||
from django.contrib import admin, auth
|
||||
from django.urls import include, path
|
||||
from django.shortcuts import redirect
|
||||
from django.shortcuts import redirect, render
|
||||
from django.contrib.staticfiles import views as vstatic
|
||||
from rest_framework import routers
|
||||
from rest_framework_simplejwt.views import (
|
||||
|
@ -42,7 +42,7 @@ router.register("calendarlink", CalendarLinkViewset, basename='calendarlink')
|
|||
|
||||
|
||||
urlpatterns = [
|
||||
path('', include(("front.urls", "front"), namespace="front")),
|
||||
path('', lambda req: render(req, "index.html", {}), name="home"),
|
||||
|
||||
path("__debug__/", include("debug_toolbar.urls")),
|
||||
path('api-auth/', include('rest_framework.urls')),
|
||||
|
|
|
@ -14,6 +14,7 @@ defusedxml==0.7.1
|
|||
discord.py==2.3.2
|
||||
Django==5.0.4
|
||||
django-cors-headers==4.3.1
|
||||
django-debug-toolbar==4.3.0
|
||||
django-oauth-toolkit==2.3.0
|
||||
django-smtp-ssl==1.0
|
||||
djangorestframework==3.15.1
|
||||
|
|
|
@ -200,12 +200,11 @@ footer {
|
|||
border-radius: 8px;
|
||||
box-shadow: 0 3px 6px rgba(0,0,0,0.04),0 3px 6px rgba(0,0,0,0.0575);
|
||||
|
||||
transition: transform 200ms, background-color 200ms;
|
||||
transition: background-color 200ms;
|
||||
}
|
||||
|
||||
.colle:hover {
|
||||
background-color: #fafafa;
|
||||
transform: rotate(1deg);
|
||||
}
|
||||
|
||||
.colle span {
|
||||
|
|
|
@ -25,14 +25,14 @@
|
|||
<div class="link"><a href="https://mp2i-vms.fr/pages.html"><i class="fa-solid fa-house"></i> Pages personnelles</a></div>
|
||||
<div class="link"><a href="https://git.mp2i-vms.fr"><i class="fa-brands fa-git-alt"></i> Git</a></div>
|
||||
<div class="link"><a href="https://play.mp2i-vms.fr"><i class="fa-solid fa-cubes"></i> Minecraft</a></div>
|
||||
<div class="link"><a href="{% url "front:index" %}"><i class="fa-solid fa-book"></i> Colles</a></div>
|
||||
<div class="link"><a href="{% url "home" %}"><i class="fa-solid fa-book"></i> Colles</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="navbar">
|
||||
<div class="block">
|
||||
<a href="{% url "front:index" %}">
|
||||
<a href="{% url "home" %}">
|
||||
<div class="link"><i class="fa-solid fa-home"></i> Accueil</div>
|
||||
</a>
|
||||
{% if request.user.is_authenticated %}
|
||||
|
|
Loading…
Reference in New Issue