WhisperMaPhone/whispermaphone/urls.py

15 lines
493 B
Python

from django.conf.urls.static import static
from django.urls import path
from main import views
from main.feed import MainFeed
from whispermaphone import settings
urlpatterns = [
path("", views.index, name="index"),
path("about", views.about, name="about"),
path("post", views.post_or_edit, name="post"),
path("feed", MainFeed()),
path("edit", views.post_or_edit, name="edit"),
] + (static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if settings.DEBUG else [])