Commit 3b943c58 authored by gab's avatar gab

created 'home' app

parent e9dfb33e
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class HomeConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'home'
from django.db import models
# Create your models here.
{% extends "base.html" %}
{% block content %}
<div id="featured-events-div" class="py-3 px-5 container-fluid bg-white">
<p class="h1">Featured Events</p>
{% comment %} Delete text-center if you want it to be left-aligned {% endcomment %}
<div class="container text-center">
{% comment %}
Loop for events
https://getbootstrap.com/docs/5.3/components/card/#images
{% endcomment %}
</div>
</div>
{% endblock %}
\ No newline at end of file
from django.test import TestCase
# Create your tests here.
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name="index"),
]
\ No newline at end of file
from django.shortcuts import render
# Create your views here.
def home(request):
return render(request, "home/index.html")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment