add simple test project (#132)

This commit is contained in:
Josh Thomas 2025-05-02 22:29:52 -05:00 committed by GitHub
parent f778bef5db
commit dab4e71a51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 263 additions and 0 deletions

View file

View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class DjlsAppConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'djls_app'

View file

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View file

@ -0,0 +1,25 @@
{% load static %}
<!DOCTYPE html>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>Hello, {{ user.username }}!</h1>
<p>This is a test template.</p>
{% if items %}
<ul>
{% for item in items %}<li>{{ item.name }}</li>{% endfor %}
</ul>
{% else %}
<p>No items found.</p>
{% endif %}
<img src="{% static 'images/logo.png' %}" alt="Logo">
{# This is a comment #}
{% block content %}
{% endblock content %}
</body>
</html>

View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View file

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.