Stub out bookmarks for forgetmetnot django app
This commit is contained in:
3
bookmarks/admin.py
Normal file
3
bookmarks/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
5
bookmarks/apps.py
Normal file
5
bookmarks/apps.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class BookmarksConfig(AppConfig):
|
||||
name = 'bookmarks'
|
||||
21
bookmarks/migrations/0001_initial.py
Normal file
21
bookmarks/migrations/0001_initial.py
Normal 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)),
|
||||
],
|
||||
),
|
||||
]
|
||||
0
bookmarks/migrations/__init__.py
Normal file
0
bookmarks/migrations/__init__.py
Normal file
4
bookmarks/models.py
Normal file
4
bookmarks/models.py
Normal 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
3
bookmarks/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
bookmarks/views.py
Normal file
3
bookmarks/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
0
forgetmenot/__init__.py
Normal file
0
forgetmenot/__init__.py
Normal 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',
|
||||
Reference in New Issue
Block a user