Compare commits
No commits in common. "22148202b2a846721d3b6f40ee9ffeb1ff24956f" and "c30f39ca2460369dc66d22dd86bfcd7dccb2365a" have entirely different histories.
22148202b2
...
c30f39ca24
|
|
@ -19,7 +19,6 @@ from django.urls import path, include
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('', include('core.urls', namespace='core')),
|
|
||||||
path('articles/', include('articles.urls', namespace='articles')),
|
path('articles/', include('articles.urls', namespace='articles')),
|
||||||
path('markdownx/', include('markdownx.urls')),
|
path('markdownx/', include('markdownx.urls')),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
{% extends 'base.html' %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>{{ flatpage.title }}</h1>
|
|
||||||
<div>
|
|
||||||
{{ flatpage.content }}
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
13
core/urls.py
13
core/urls.py
|
|
@ -1,13 +0,0 @@
|
||||||
from django.contrib.flatpages.views import flatpage
|
|
||||||
from django.urls import path
|
|
||||||
|
|
||||||
from . import views
|
|
||||||
|
|
||||||
app_name = 'core'
|
|
||||||
|
|
||||||
urlpatterns = [
|
|
||||||
path('', views.Homepage.as_view(), name='homepage'),
|
|
||||||
path('about/me/', flatpage, {'url': '/about/me/'}, name='about-me'),
|
|
||||||
path('about/website/', flatpage, {'url': '/about/website/'}, name='about-website'),
|
|
||||||
path('about/contact/', flatpage, {'url': '/about/contact/'}, name='contact-me'),
|
|
||||||
]
|
|
||||||
Loading…
Reference in New Issue