Re: Django Playing with API

2024-01-02 Thread Habibu Yasin
hi Ryan, thank you for  responding , but I did find the solution was a typo 
I did misspell the something in the code 

On Tuesday, January 2, 2024 at 10:22:54 PM UTC+3 Ryan Nowakowski wrote:

> Show your code
>
>
> On December 31, 2023 7:35:52 AM CST, Habibu Yasin  
> wrote:
>
>> hi every one,
>> I am new to Django working with the documentation on the part of dealing 
>> with API, I tried to add data via the shell,
>> “q = Question(question_text="What's new?", pub_date=timezone.now())”
>>
>> Traceback (most recent call last):
>>   File "", line 1, in 
>>   File 
>> "/Users/macbookpro/Documents/Projects/Design/Python/myenv/lib/python3.11/site-packages/django/db/models/base.py",
>>  
>> line 567, in __init__
>> raise TypeError(
>> TypeError: Questions() got unexpected keyword arguments: 'question_text'
>>
>> Please help
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2a39dad5-d31f-45a7-89c0-17f54758f4bdn%40googlegroups.com.


Django Playing with API

2024-01-01 Thread Habibu Yasin
hi every one,
I am new to Django working with the documentation on the part of dealing 
with API, I tried to add data via the shell,
“q = Question(question_text="What's new?", pub_date=timezone.now())”

Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Users/macbookpro/Documents/Projects/Design/Python/myenv/lib/python3.11/site-packages/django/db/models/base.py",
 
line 567, in __init__
raise TypeError(
TypeError: Questions() got unexpected keyword arguments: 'question_text'

Please help

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9908c66f-7c3c-45f3-a313-e4741ecd2868n%40googlegroups.com.