Stub out bookmarks for forgetmetnot django app

This commit is contained in:
2021-02-24 09:00:25 -06:00
parent 735c7f6b80
commit 13fc58121a
14 changed files with 41 additions and 1 deletions

3
bookmarks/admin.py Normal file
View File

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

5
bookmarks/apps.py Normal file
View File

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

View File

@@ -0,0 +1,21 @@
# Generated by Django 3.1.7 on 2021-02-24 14:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bookmark',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('url', models.URLField(max_length=2048)),
],
),
]

View File

4
bookmarks/models.py Normal file
View File

@@ -0,0 +1,4 @@
from django.db import models
class Bookmark(models.Model):
url = models.URLField(max_length=2048)

3
bookmarks/tests.py Normal file
View File

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

3
bookmarks/views.py Normal file
View File

@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

0
forgetmenot/__init__.py Normal file
View File

View File

@@ -20,7 +20,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'd-$=zj!%_3^iga@1wquq8--5@yplhdvtk9ns^_td&o!2v^ks(v'
SECRET_KEY = '0qhg5+@eu6()f7=39jx3&xaw_2fcpk%n7$gcemm*efq(7$jw+6'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
@@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'bookmarks.apps.BookmarksConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',