mirror of
https://github.com/Rushilwiz/tj2023.git
synced 2025-04-10 23:30:17 -04:00
moved notions_updater to notes, merged the settings and apps
This commit is contained in:
parent
8d96adf204
commit
390b3f704b
|
@ -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'
|
||||
]
|
||||
|
|
|
@ -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
5
notes/apps.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class NotesConfig(AppConfig):
|
||||
name = 'notes'
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'base.html' %}
|
||||
{% extends 'notion/base.html' %}
|
||||
{% load static %}
|
||||
{% block css %}
|
||||
<link rel="stylesheet" href="{% static 'css/meeting.css' %}">
|
|
@ -1,5 +1,5 @@
|
|||
from django.urls import path
|
||||
import notion_updater.views as views
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.test),
|
|
@ -1,5 +0,0 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class NotionUpdaterConfig(AppConfig):
|
||||
name = 'notion_updater'
|
|
@ -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)),
|
||||
],
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user