Commit e1197fc5 authored by Jon Yu's avatar Jon Yu
Browse files

Rename ui app

parent 11bc1dd5
...@@ -37,7 +37,7 @@ INSTALLED_APPS = [ ...@@ -37,7 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'um_django_ui' 'um_template_ui'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -7,5 +7,5 @@ urlpatterns = [ ...@@ -7,5 +7,5 @@ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('login/', login, name='login'), path('login/', login, name='login'),
path('logout/', logout, name='logout'), path('logout/', logout, name='logout'),
path('', include('um_django_ui.urls')), path('', include('um_template_ui.urls')),
] ]
...@@ -6,7 +6,7 @@ from django.shortcuts import render ...@@ -6,7 +6,7 @@ from django.shortcuts import render
def login(request): def login(request):
return render(request, 'um_django_ui/index.html') return render(request, 'um_template_ui/index.html')
@login_required @login_required
......
from django.apps import AppConfig from django.apps import AppConfig
class UmDjangoUiConfig(AppConfig): class UmTemplateUiConfig(AppConfig):
name = 'um_django_ui' name = 'um_template_ui'
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<body> <body>
<nav class="navbar navbar-dark navbar-expand-md fixed-top"> <nav class="navbar navbar-dark navbar-expand-md fixed-top">
<a class="navbar-brand" href="{% url 'um_django_ui:home' %}"><img class="img-fluid my-1 py-1" src="{% static 'images/its-logo.png' %}" /></a> <a class="navbar-brand" href="{% url 'um_template_ui:home' %}"><img class="img-fluid my-1 py-1" src="{% static 'images/its-logo.png' %}" /></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarLinks" aria-controls="navbarLinks" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarLinks" aria-controls="navbarLinks" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<div class="collapse navbar-collapse" id="navbarLinks"> <div class="collapse navbar-collapse" id="navbarLinks">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav mr-auto">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="{% url 'um_django_ui:home' %}">Home</a> <a class="nav-link" href="{% url 'um_template_ui:home' %}">Home</a>
</li> </li>
</ul> </ul>
<div class="navbar-nav ml-auto"> <div class="navbar-nav ml-auto">
......
from django.urls import path from django.urls import path
from .views import IndexView from .views import IndexView
app_name = 'um_django_ui' app_name = 'um_template_ui'
urlpatterns = [ urlpatterns = [
path('', IndexView.as_view(), name='home') path('', IndexView.as_view(), name='home')
] ]
...@@ -2,4 +2,4 @@ from django.views.generic import TemplateView ...@@ -2,4 +2,4 @@ from django.views.generic import TemplateView
class IndexView(TemplateView): class IndexView(TemplateView):
template_name = 'um_django_ui/index.html' template_name = 'um_template_ui/index.html'
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