Skip to content

Commit 840351d

Browse files
author
azmanabdlh
committed
prepare directory
1 parent 5194392 commit 840351d

File tree

11 files changed

+25
-15
lines changed

11 files changed

+25
-15
lines changed

account/migrations/__init__.py

Whitespace-only changes.
Binary file not shown.

account/templates/home.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>Home page</h1>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>Login page</h1>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>Register page</h1>

account/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from django.urls import path
0 Bytes
Binary file not shown.

myapp/__pycache__/urls.cpython-38.pyc

-642 Bytes
Binary file not shown.

myapp/urls.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
"""myapp URL Configuration
2-
3-
The `urlpatterns` list routes URLs to views. For more information please see:
4-
https://docs.djangoproject.com/en/3.1/topics/http/urls/
5-
Examples:
6-
Function views
7-
1. Add an import: from my_app import views
8-
2. Add a URL to urlpatterns: path('', views.home, name='home')
9-
Class-based views
10-
1. Add an import: from other_app.views import Home
11-
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
12-
Including another URLconf
13-
1. Import the include() function: from django.urls import include, path
14-
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
15-
"""
161
from django.contrib import admin
172
from django.urls import path
183

templates/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends 'layouts/app.html' %}
2+
3+
{% block content }
4+
<h1>Welcome page</h1>
5+
<ul>
6+
<li><a href="">Register</a></li>
7+
<li><a href="">Login</a></li>
8+
</ul>
9+
{% endblock %}

templates/layouts/app.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>{% block title %} {% endblock %}</title>
7+
</head>
8+
<body>
9+
{% block content %}
10+
{% endblock %}
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)