Django lottery site
This commit is contained in:
commit
3660710b23
10861 files changed
+1669447
No files matched your search
Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class LottopyConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'lottopy'
|
||||
Submodule
+1
Submodule lottopy_site/lottopy/lottopy added at f478a71775.
Whitespace-only changes.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
@@ -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"),
|
||||
]
|
||||
@@ -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'})
|
||||
Reference in new issue
Block a user