there is a homepage now

This commit is contained in:
2024-08-17 17:41:24 +02:00
parent 64b184adff
commit 81d6da86a2
9 changed files with 65 additions and 37 deletions

View File

@ -0,0 +1,4 @@
from django.db import models
class TaMereLaPute(models.Model):
test=models.CharField(max_length=200)

View File

@ -23,9 +23,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-vgcqdf^%(+@t*+cof@755e#q9p)myir%z2s*e*ea*v^i(4pta9'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition

View File

@ -14,9 +14,9 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path("",views.index, name='patate')
]

View File

@ -0,0 +1,5 @@
from django.http import HttpResponse
def index(request):
return HttpResponse("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br>ca marche enfin")