moved notions_updater to notes, merged the settings and apps

This commit is contained in:
Rushil Umaretiya 2020-10-20 01:21:22 -04:00
parent 8d96adf204
commit 390b3f704b
18 changed files with 12 additions and 33 deletions

View File

@ -11,7 +11,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib import Path
from my_secrets import secrets
from my_secrets.secrets import *
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@ -30,6 +30,7 @@ ALLOWED_HOSTS = []
INSTALLED_APPS = [
'pages',
'notes',
'django.contrib.admin',
'django.contrib.auth',
@ -37,8 +38,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'pages',
'notion_updater',
'django_extensions',
'django_secrets'
]

View File

@ -18,6 +18,6 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('notes/', include('notion_updater.urls')),
path('notes/', include('notes.urls')),
path('', include('pages.urls'))
]
]

5
notes/apps.py Normal file
View File

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

View File

@ -1,4 +1,4 @@
{% extends 'base.html' %}
{% extends 'notion/base.html' %}
{% load static %}
{% block css %}
<link rel="stylesheet" href="{% static 'css/meeting.css' %}">

View File

@ -1,5 +1,5 @@
from django.urls import path
import notion_updater.views as views
from . import views
urlpatterns = [
path('', views.test),

View File

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

View File

@ -1,21 +0,0 @@
# Generated by Django 3.1.2 on 2020-10-19 21:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='NotionPage',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('url', models.URLField(max_length=300)),
],
),
]