Commit 71609e47 authored by gab's avatar gab

adjusted index from eventcatalog to 'home'

parent 23a81140
...@@ -2,16 +2,6 @@ ...@@ -2,16 +2,6 @@
{% block content %} {% block content %}
{% if user.is_authenticated %}
Hi {{ user.first_name }} {{ user.last_name }}!
<form action="{% url 'accounts:logout' %}" method="post">
{% csrf_token %}
<button type="submit">Log Out</button>
</form>
{% else %}
<p>You are not logged in</p>
<a href="{% url 'accounts:login' %}">Log In</a>
<a href="{% url 'accounts:register' %}">Register</a>
{% endif %}
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -3,5 +3,5 @@ from django.urls import path ...@@ -3,5 +3,5 @@ from django.urls import path
from . import views from . import views
urlpatterns = [ urlpatterns = [
path('', views.homepage, name="index"), path('', views.index, name="index"),
] ]
\ No newline at end of file
...@@ -2,5 +2,5 @@ from django.shortcuts import render ...@@ -2,5 +2,5 @@ from django.shortcuts import render
from django.http import HttpResponse from django.http import HttpResponse
# Create your views here. # Create your views here.
def homepage(request): def index(request):
return render(request, "eventcatalog/index.html") return render(request, "eventcatalog/index.html")
\ No newline at end of file
...@@ -22,5 +22,6 @@ urlpatterns = [ ...@@ -22,5 +22,6 @@ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path("accounts/", include("accounts.urls"), name="accounts"), path("accounts/", include("accounts.urls"), name="accounts"),
path("event_management/", include("event_management.urls", namespace="event_management")), path("event_management/", include("event_management.urls", namespace="event_management")),
path("", include("eventcatalog.urls"), name="index"), path("eventcatalog/", include("eventcatalog.urls"), name="eventcatalog"),
path("", include("home.urls"), name="index"),
] ]
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