Re: Django Rest Framework support for Django 4.2

2023-07-06 Thread carlos
i think yes!

On Thu, Jul 6, 2023 at 9:03 AM Alex Clough 
wrote:

> Hello Carlos,
>
> So, just to clarify, if I am pinning Django 4.2.3 (latest release) and DRF
> 3.14.0 (latest release) in a requirements file, I will be good to go?
>
> Thank you in advance.
>
> Alex
>
> On Friday, May 26, 2023 at 11:45:30 AM UTC-4 croch...@gmail.com wrote:
>
>> Hi, if you need install the master/main branch you try this
>> pip install
>> https://github.com/encode/django-rest-framework/archive/refs/heads/master.zip
>> if you do not want to wait for the tag 3.15
>>
>> cheers
>>
>> On Fri, May 26, 2023 at 9:33 AM Vitan Ivanov 
>> wrote:
>>
>>> Hey Carlos, thanks for the fast reply!
>>> Master supports it, but the latest tagged version is 3.14 and it
>>> doesn't. So my question is when we can expect a new tag (3.15 maybe?)
>>>
>>> On Fri, May 26, 2023, 18:25 carlos  wrote:
>>>
>>>> Hi, i think DRF now support D4.2
>>>> https://github.com/encode/django-rest-framework#requirements
>>>>
>>>> Cheers
>>>>
>>>> On Fri, May 26, 2023 at 5:33 AM Vitan Ivanov 
>>>> wrote:
>>>>
>>>>> Hello group!
>>>>>
>>>>> Django 4.2 is listed as an LTS version in the release notes
>>>>> <https://docs.djangoproject.com/en/4.2/releases/4.2/> so it seems
>>>>> like it's the most appropriate version to start projects or upgrade to.
>>>>>
>>>>> Does anybody know when the new version of DRF which would support
>>>>> Django 4.2 is expected?
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Django REST framework" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to django-rest-fram...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-rest-framework/537f6bd4-91e2-4891-8a7f-51685ef58235n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-rest-framework/537f6bd4-91e2-4891-8a7f-51685ef58235n%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> --
>>>> att.
>>>> Carlos Rocha
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "Django REST framework" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/django-rest-framework/j-TkbRyiQ1o/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> django-rest-fram...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-rest-framework/CAM-7rO3ghVbTuvnGu%3DOBH3u8X8tR7Fyo5e3yUrasX%2B_Q-n4%2BnA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-rest-framework/CAM-7rO3ghVbTuvnGu%3DOBH3u8X8tR7Fyo5e3yUrasX%2B_Q-n4%2BnA%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django REST framework" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-rest-fram...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-rest-framework/CAC-YOfbf-utp%2B2o0zc6W0iN0JbySjvgKm9DW4T0QjXjQKpP5Aw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-rest-framework/CAC-YOfbf-utp%2B2o0zc6W0iN0JbySjvgKm9DW4T0QjXjQKpP5Aw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> att.
>> Carlos Rocha
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/99d523ce-88cb-4ff6-ba4d-f746a8d8f620n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-rest-framework/99d523ce-88cb-4ff6-ba4d-f746a8d8f620n%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CAM-7rO31jo3qj8uyx%3Dxu1U1MOtAFD63G9M3zQgaqBKuCZ8Ljfw%40mail.gmail.com.


Re: Django Rest Framework support for Django 4.2

2023-05-26 Thread carlos
Hi, if you need install the master/main branch you try this
pip install
https://github.com/encode/django-rest-framework/archive/refs/heads/master.zip
if you do not want to wait for the tag 3.15

cheers

On Fri, May 26, 2023 at 9:33 AM Vitan Ivanov 
wrote:

> Hey Carlos, thanks for the fast reply!
> Master supports it, but the latest tagged version is 3.14 and it doesn't.
> So my question is when we can expect a new tag (3.15 maybe?)
>
> On Fri, May 26, 2023, 18:25 carlos  wrote:
>
>> Hi, i think DRF now support D4.2
>> https://github.com/encode/django-rest-framework#requirements
>>
>> Cheers
>>
>> On Fri, May 26, 2023 at 5:33 AM Vitan Ivanov 
>> wrote:
>>
>>> Hello group!
>>>
>>> Django 4.2 is listed as an LTS version in the release notes
>>> <https://docs.djangoproject.com/en/4.2/releases/4.2/> so it seems like
>>> it's the most appropriate version to start projects or upgrade to.
>>>
>>> Does anybody know when the new version of DRF which would support Django
>>> 4.2 is expected?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django REST framework" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-rest-framework+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-rest-framework/537f6bd4-91e2-4891-8a7f-51685ef58235n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-rest-framework/537f6bd4-91e2-4891-8a7f-51685ef58235n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> att.
>> Carlos Rocha
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django REST framework" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-rest-framework/j-TkbRyiQ1o/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> django-rest-framework+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-rest-framework/CAM-7rO3ghVbTuvnGu%3DOBH3u8X8tR7Fyo5e3yUrasX%2B_Q-n4%2BnA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-rest-framework/CAM-7rO3ghVbTuvnGu%3DOBH3u8X8tR7Fyo5e3yUrasX%2B_Q-n4%2BnA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/CAC-YOfbf-utp%2B2o0zc6W0iN0JbySjvgKm9DW4T0QjXjQKpP5Aw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-rest-framework/CAC-YOfbf-utp%2B2o0zc6W0iN0JbySjvgKm9DW4T0QjXjQKpP5Aw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CAM-7rO1n0N-GwUoMRzGuYOs%2BZK1_TFhcr_VvKnqPHF7DqrMSHg%40mail.gmail.com.


Re: Django Rest Framework support for Django 4.2

2023-05-26 Thread carlos
Hi, i think DRF now support D4.2
https://github.com/encode/django-rest-framework#requirements

Cheers

On Fri, May 26, 2023 at 5:33 AM Vitan Ivanov 
wrote:

> Hello group!
>
> Django 4.2 is listed as an LTS version in the release notes
> <https://docs.djangoproject.com/en/4.2/releases/4.2/> so it seems like
> it's the most appropriate version to start projects or upgrade to.
>
> Does anybody know when the new version of DRF which would support Django
> 4.2 is expected?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/537f6bd4-91e2-4891-8a7f-51685ef58235n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-rest-framework/537f6bd4-91e2-4891-8a7f-51685ef58235n%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CAM-7rO3ghVbTuvnGu%3DOBH3u8X8tR7Fyo5e3yUrasX%2B_Q-n4%2BnA%40mail.gmail.com.


Re: How to make admin duplicate action for an object with all related foreign key and one-to-one fields?

2022-01-11 Thread carlos
le_link = TextLinkFileStep.objects.create(
>> step=step,
>> text=step.text_file_link.text,
>> link=step.text_file_link.link,
>> file=step.text_file_link.file,
>> )
>> # new_text_file_link = step.step_text_link_file
>> # new_text_file_link.pk = None
>> # new_text_file_link.step = new_step
>> # new_text_file_link.text = text_file_link.text
>> print("text is", step.text_file_link)
>> new_text_file_link.save()
>> except:
>> print("text link file step tries to be existed")
>>
>> # tests = Test.objects.filter(sub_section__pk=sub_section.id)
>> # for test in list(tests):
>> # new_test = test
>> # new_test.pk = None
>> # new_test.sub_section = new_sub_section
>> # new_test.save()
>> # answers = AnswerStep.objects.filter(test__pk=test.id)
>> # for answer in list(answers):
>> # new_answer = answer
>> # new_answer.pk = None
>> # new_answer.test = new_test
>> # new_answer.save()
>>
>> new_sub_section.order_list = from_list_to_chars(sub_section_order_list)
>> new_sub_section.save()
>> new_section.order_list = from_list_to_chars(section_order_list)
>> new_section.save()
>> new_course.order_list = from_list_to_chars(course_order_list)
>> new_course.save()
>>
>> except Course.DoesNotExist:
>> print("course does not exist")
>>
>> So my function above is failing in Step and TextLinkFileStep objects
>> I need your assistance in this issue. My only hope is for this community))
>> Feel free to make any suggestions
>> Best regards
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django REST framework" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-rest-framework+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-rest-framework/e411f03a-c6ee-4627-8bca-0ace14f1b231n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-rest-framework/e411f03a-c6ee-4627-8bca-0ace14f1b231n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/CABQ6D0yEbsX2%2BgLD16LkUUg6dZna2veZ7VEDw5crXhQfOT-MqA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-rest-framework/CABQ6D0yEbsX2%2BgLD16LkUUg6dZna2veZ7VEDw5crXhQfOT-MqA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CAM-7rO3J%3DZO%3DOSdni%3DrntBd6J0Tek_t3g9806vFcn0i_LNU8-g%40mail.gmail.com.


Re: Django OAuth Toolkit Login Template

2018-11-01 Thread carlos
yes, create directory/registration inside login.html template


Cheers

On Thu, Nov 1, 2018 at 4:12 PM Foobar  wrote:

> I'm trying to create an OAuth server using the following instructions:
>
>
> https://django-oauth-toolkit.readthedocs.io/en/latest/tutorial/tutorial_01.html
>
> Where can I find the login template with path registration/login.html? Is
> this a template I have to create inside directory /registration? The
> instructions are not clear but mention that this template should be changed.
>
> Any help would be appreciated. Thanks.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DRF 3.6.1 interactive documentation

2017-03-10 Thread carlos
maybe the browser have problem,  What browser are you using? version or you
try other browser!

Cheers,

On Fri, Mar 10, 2017 at 6:33 AM, Antoine Nguyen <ngu.anto...@gmail.com>
wrote:

> Here is my config:
>
> REST_FRAMEWORK = {
> 'DEFAULT_AUTHENTICATION_CLASSES': (
> 'rest_framework.authentication.TokenAuthentication',
> ),
> 'DEFAULT_PERMISSION_CLASSES': (
> 'rest_framework.permissions.IsAuthenticated',
> )
> }
>
> MIDDLEWARE_CLASSES = (
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.locale.LocaleMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> }
>
>
>
> Le vendredi 10 mars 2017 12:23:25 UTC+1, Tom Christie a écrit :
>>
>> Let's see if we can get this to a point where we can replicate the issue
>> you're seeing...
>>
>> * What've you got set up in your `REST_FRAMEWORK` settings?
>> * What middleware have you got installed?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
att.
Carlos Rocha

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.