Create a basic app

This commit is contained in:
2023-11-06 22:37:42 -06:00
parent 68539ceedf
commit 8d60e5eedb
14 changed files with 261 additions and 0 deletions

View File

View File

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

View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class LinksConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'links'

View File

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

View File

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

View File

@@ -0,0 +1,7 @@
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
]

View File

@@ -0,0 +1,13 @@
from django.shortcuts import render
EXTRA_HEADERS = '<meta name="p:domain_verify" content="b91d67cb075510218cbaf2146277c3cc" />\n<link rel="publickey" title="PGP Public Key" href="https://keybase.io/alopexc0de/key.asc" />'
def index(request):
return render(request, "links/index.html", {
'title': 'c0defox.es',
'author': 'c0de',
'favicon': 'https://secure.gravatar.com/avatar/1e346a54257cf0a9932fcfc1e61c015d',
'extra_headers': EXTRA_HEADERS
})