Bonjour, quelqu’un parle français ici svp ?
> Le 30 nov. 2022 à 08:06, Viper Code a écrit :
>
>
> mess = Message.objects.get(title="sos")
> // print(mess.person.email) // the error occurs here.
>
> emails = []
> for m in mess:
> emails.append(m.email)
>
> print(emails)
>
> Pada tanggal
Code is first, query is last (below). Thanks in advance.
*home directory urls.py*
from django.contrib import admin
from django.urls import path,include
from . import views
urlpatterns = [
path("admin/", admin.site.urls, name='admin'),
path("", views.Home.as_view(), name="home"),
path
Make your urls patterns at pet app
path('pet/', pet_views.PetDetailView.as_view(),
name='pet_details'),]
On Wednesday, November 30, 2022 at 2:52:36 PM UTC+1 mi...@spinningcow.xyz
wrote:
> Code is first, query is last (below). Thanks in advance.
>
>
> *home directory urls.py*
> from django.co
Thank you. Though, that hard codes everything, which is bad. How do I
generalize it?
Also, this worked. I had to specify template_name = pet_profile.html in
the pet detail view.
On 11/30/22 7:15 AM, Ryan Nowakowski wrote:
On Tue, Nov 29, 2022 at 06:35:25PM -0800, Michael Starr wrote:
*home
4 matches
Mail list logo