Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
red_brick_board
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ciella Francisco
red_brick_board
Commits
71609e47
Commit
71609e47
authored
Mar 17, 2024
by
gab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjusted index from eventcatalog to 'home'
parent
23a81140
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
14 deletions
+5
-14
index.html
redbrickboard/eventcatalog/templates/eventcatalog/index.html
+1
-11
urls.py
redbrickboard/eventcatalog/urls.py
+1
-1
views.py
redbrickboard/eventcatalog/views.py
+1
-1
urls.py
redbrickboard/redbrickboard/urls.py
+2
-1
No files found.
redbrickboard/eventcatalog/templates/eventcatalog/index.html
View file @
71609e47
...
@@ -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
redbrickboard/eventcatalog/urls.py
View file @
71609e47
...
@@ -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
redbrickboard/eventcatalog/views.py
View file @
71609e47
...
@@ -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
redbrickboard/redbrickboard/urls.py
View file @
71609e47
...
@@ -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"
),
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment