Commit b4f04fc0 authored by Angelo Alvarez's avatar Angelo Alvarez

Landing Page Template Created

parent 55f0509d
...@@ -58,7 +58,7 @@ ROOT_URLCONF = 'alvaalvarez_reading.urls' ...@@ -58,7 +58,7 @@ ROOT_URLCONF = 'alvaalvarez_reading.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [], 'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
......
{% extends 'base.html' %}
{% load static %}
{% block title %}My Favorite Books and Authors{% endblock %}
{% block content %}
<h1 style="text-align: center">Welcome to Alva's Database of Favorite Books and Authors</h1>
<hr>
I find myself drawn to classic literature that explores deep philosophical questions and themes.
Some of my favorite authors include Dante Alighieri, William Shakespeare, and Fyodor Dostoevsky.
I particularly enjoy reading works like "The Divine Comedy" and "Crime and Punishment" that delve
into questions of morality, guilt, and redemption.
I'm also intrigued by works like "Paradise Lost" and "Thus Spoke Zarathustra" that explore complex
religious and philosophical themes, and I appreciate the way these books challenge me to think deeply
about the nature of existence and human consciousness.
In terms of more political works, I've found myself drawn to books like "The Communist Manifesto"
and "The Social Contract" that explore questions of social justice, governance, and the relationship
between individuals and society. I appreciate the way these works offer a critical lens through which
to view the world around us and the power structures that shape our lives.
Overall, I'm drawn to books that challenge me intellectually and offer a window into the deeper workings
of the human psyche and the world around us. I look forward to continuing to explore the rich and complex
works of classic literature as I progress through my college career.
<hr>
<div id="links" style="margin: auto; text-align: center; width: 100%">
<a href="../books/">Books</a>
&nbsp; &nbsp;
<a href="../authors/">Authors</a>
</div>
{% endblock %}
\ No newline at end of file
from django.urls import path from django.urls import path
from .views import index from .views import home
urlpatterns = [ urlpatterns = [
path('', index, name='index'), path('home/', home, name='home'),
] ]
# This might be needed, depending on your Django version # This might be needed, depending on your Django version
......
from django.shortcuts import render from django.shortcuts import render
from django.http import HttpResponse
# Create your views here. # Create your views here.
from django.http import HttpResponse
def index(request): def home(request):
return HttpResponse('Hello World! This came from the index view') return render(request, 'events/home.html')
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<title>{% block title %}My amazing site{% endblock %}</title>
{% block styles %}{% endblock %}
</head>
<body>
<div id="content">
{% block content %}{% endblock %}
</div>
{% block scripts %}{% endblock %}
</body>
</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