Stub out bookmarks for forgetmetnot django app
This commit is contained in:
0
bookmarks/__init__.py
Normal file
0
bookmarks/__init__.py
Normal file
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.
|
||||
Reference in New Issue
Block a user