Django lottery site

This commit is contained in:
matteo-id committed 2021-12-21 10:46:09 -05:00
commit 3660710b23
10861 files changed
+1669447

No files matched your search

View File
Whitespace-only changes.
+3
View File
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
+6
View File
@@ -0,0 +1,6 @@
from django.apps import AppConfig
class LottopyConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'lottopy'
Submodule lottopy_site/lottopy/lottopy added at f478a71775.
Whitespace-only changes.
+3
View File
@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.
+3
View File
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
+8
View File
@@ -0,0 +1,8 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.base, name='homepage'),
path('', views.home, name='lottopy'),
path('about/', views.about, name="about"),
]
+16
View File
@@ -0,0 +1,16 @@
from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
def base(request):
return render(request, 'lottopy/base.html',
{'nbar': 'home'})
def home(request):
return render(request, 'lottopy/home.html',
{'nbar': 'home'})
def about(request):
return render(request, 'lottopy/about.html',
{'nbar': 'about'}, {'title': 'About'})