Project setup

This commit is contained in:
2020-04-21 19:56:17 -04:00
parent 82fe5b3a5e
commit 44ddef546b
20 changed files with 719 additions and 0 deletions

0
pokedex/__init__.py Normal file
View File

3
pokedex/admin.py Normal file
View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

5
pokedex/apps.py Normal file
View File

@@ -0,0 +1,5 @@
from django.apps import AppConfig
class PokedexConfig(AppConfig):
name = 'pokedex'

View File

3
pokedex/models.py Normal file
View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View File

@@ -0,0 +1 @@
h1 { color: red; }

View 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
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

6
pokedex/urls.py Normal file
View 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
View File

@@ -0,0 +1,5 @@
from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, "pokedex/index.html")