Create a basic app
This commit is contained in:
0
social_links/links/__init__.py
Normal file
0
social_links/links/__init__.py
Normal file
3
social_links/links/admin.py
Normal file
3
social_links/links/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
social_links/links/apps.py
Normal file
6
social_links/links/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class LinksConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'links'
|
0
social_links/links/migrations/__init__.py
Normal file
0
social_links/links/migrations/__init__.py
Normal file
3
social_links/links/models.py
Normal file
3
social_links/links/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
social_links/links/tests.py
Normal file
3
social_links/links/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
7
social_links/links/urls.py
Normal file
7
social_links/links/urls.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.index, name="index"),
|
||||
]
|
13
social_links/links/views.py
Normal file
13
social_links/links/views.py
Normal 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
|
||||
})
|
||||
|
Reference in New Issue
Block a user