Project setup
This commit is contained in:
0
pokedex/__init__.py
Normal file
0
pokedex/__init__.py
Normal file
3
pokedex/admin.py
Normal file
3
pokedex/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
5
pokedex/apps.py
Normal file
5
pokedex/apps.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PokedexConfig(AppConfig):
|
||||
name = 'pokedex'
|
||||
0
pokedex/migrations/__init__.py
Normal file
0
pokedex/migrations/__init__.py
Normal file
3
pokedex/models.py
Normal file
3
pokedex/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
1
pokedex/static/pokedex/main.css
Normal file
1
pokedex/static/pokedex/main.css
Normal file
@@ -0,0 +1 @@
|
||||
h1 { color: red; }
|
||||
15
pokedex/templates/pokedex/index.html
Normal file
15
pokedex/templates/pokedex/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
||||
<title>Page Title</title>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
<link rel='stylesheet' type='text/css' media='screen' href='{% static "pokedex/main.css"%}'>
|
||||
<script src='main.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>My Header!</h1>
|
||||
</body>
|
||||
</html>
|
||||
3
pokedex/tests.py
Normal file
3
pokedex/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
6
pokedex/urls.py
Normal file
6
pokedex/urls.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
urlpatterns = [
|
||||
path("", views.index, name="index"),
|
||||
|
||||
]
|
||||
5
pokedex/views.py
Normal file
5
pokedex/views.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
def index(request):
|
||||
return render(request, "pokedex/index.html")
|
||||
Reference in New Issue
Block a user