Guidance for Django-React

2020-11-30 Thread Dhruvil Shah
 I am currently learning Django and made many projects in it. And I
have also made DRF API projects. So, now I am thinking of learning React
for frontend development and will make projects with React and Django.

Afterwards, I am also thinking of making Django Rest API of any
project and making React-Native application with DRF API.

I have doubts about following things:

1-Is Django+React Stack good according to current Industry Trends?
2-Can this Stack lend me a good package job?

-- 
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/CADsP_izB3OyiFgoH1ZZNFy-RS2%2BWwCqQaAXF9XRdsLFnLA2b6g%40mail.gmail.com.


Re: Looking to join a team in a Django Project to gain Experience

2020-11-30 Thread Carlos Romero Martin
I'm interested

Regards

Carlos Romero Martin



Le lundi 30 novembre 2020, 5 h 16 min 24 s CET Nagaraju Singothu a écrit :
> I'm interested
> 
> On Mon 30 Nov, 2020, 8:56 AM ,  wrote:
> > Hi Cesar,
> > 
> > 
> > 
> > If you can send me you email to contact you as I am interested
> > 
> > 
> > 
> > Ahmed Khairy
> > 
> > ahmed.heshamel...@gmail.com
> > 
> > 
> > 
> > *From:* django-users@googlegroups.com  *On
> > Behalf Of *Cesar Alvarez
> > *Sent:* Monday, September 21, 2020 9:25 PM
> > *To:* django-users@googlegroups.com
> > *Subject:* Re: Looking to join a team in a Django Project to gain
> > Experience
> > 
> > 
> > 
> > Hi there,
> > 
> > At the moment I am working in a web application which I am going to offer
> > to a company who I know need it, this web application will be used to
> > improve internal auditors jobs from that company!
> > 
> > It would be a pleasure to involve you in this project and becoming us
> > partners went the client buys the web app...
> > 
> > 
> > 
> > Thank you and regards
> > 
> > César Álvarez Moná
> > 
> > From Colombia
> > 
> > 
> > 
> > El lun., 21 sep. 2020, 7:39 p.m., ahmed.he...@gmail.com <
> > ahmed.heshamel...@gmail.com> escribió:
> > 
> > Hi all,
> > 
> > 
> > 
> > I am looking for a team of developers to join them in a project to enhance
> > my skills and add to my portfolio.  I am available part time.
> > 
> > 
> > 
> > Thanks
> > 
> > --
> > 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/6e15411d-b25d-40c8-a987-e65
> > da9b3c297n%40googlegroups.com
> >  > 65da9b3c297n%40googlegroups.com?utm_medium=email&utm_source=footer> .
> > 
> > --
> > You received this message because you are subscribed to a topic in the
> > Google Groups "Django users" group.
> > To unsubscribe from this topic, visit
> > https://groups.google.com/d/topic/django-users/K6Q9JLiQIfk/unsubscribe.
> > To unsubscribe from this group and all its topics, 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/CABTGc-oxkVweLCY5V5fE198yBK
> > Rj77U1ROKmJRJQF0t00qeHzw%40mail.gmail.com
> >  > BKRj77U1ROKmJRJQF0t00qeHzw%40mail.gmail.com?utm_medium=email&utm_source=fo
> > oter> .
> > 
> > --
> > 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/004a01d6c6c8%2463af73d0%242
> > b0e5b70%24%40gmail.com
> >  > 42b0e5b70%24%40gmail.com?utm_medium=email&utm_source=footer> .

-- 





-- 
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/5504404.8cx8xeCeO2%40laptopcrm.


Re: Exception Type: TemplateSyntaxError at /login/ Exception Value: Invalid block tag on line 23: 'csrf_tocken', expected 'endblock'. Did you forget to register or load this tag?

2020-11-30 Thread jay goldymae lamsen

{% endblock %}
On Friday, November 27, 2020 at 8:16:43 PM UTC+9 zica...@gmail.com wrote:

> It is misspelled, the right is *csrf_token*
>
> Em quinta-feira, 26 de novembro de 2020 às 14:57:37 UTC-3, 
> dils...@gmail.com escreveu:
>
>> hi friends,
>>
>> please help me to  resolve this issue..
>>
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/login/
>>
>> Django Version: 3.1.3
>> Python Version: 3.9.0
>> Installed Applications:
>> ['django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles',
>>  'log']
>> Installed Middleware:
>> ['django.middleware.security.SecurityMiddleware',
>>  '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.clickjacking.XFrameOptionsMiddleware']
>>
>>
>> Template error:
>> In template C:\django-projects\dp1\site1\log\templates\log\login.html, 
>> error at line 23
>>Invalid block tag on line 23: 'csrf_tocken', expected 'endblock'. Did 
>> you forget to register or load this tag?
>>13 :
>>14 :
>>15 :
>>16 : {% extends "log/base.html" %}
>>17 : {% block content %}
>>18 : Login page
>>19 : 
>>20 : 
>>21 : 
>>22 : 
>>23 :  {% csrf_tocken %} 
>>24 : 
>>25 : 
>>26 : >  placeholder="Enter Username" name="username">
>>27 : 
>>28 : 
>>29 : 
>>30 : 
>>31 : > class="form-control" placeholder="Enter Password" name="password">
>>32 : 
>>33 : 
>>
>>
>> Traceback (most recent call last):
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
>> 470, in parse
>> compile_func = self.tags[command]
>>
>> During handling of the above exception ('csrf_tocken'), another exception 
>> occurred:
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\core\handlers\exception.py",
>>  
>> line 47, in inner
>> response = get_response(request)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\core\handlers\base.py", 
>> line 179, in _get_response
>> response = wrapped_callback(request, *callback_args, 
>> **callback_kwargs)
>>   File "C:\django-projects\dp1\site1\log\views.py", line 20, in login_user
>> return render(request, 'log/login.html', {})
>>   File "C:\django-projects\venv\lib\site-packages\django\shortcuts.py", 
>> line 19, in render
>> content = loader.render_to_string(template_name, context, request, 
>> using=using)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\loader.py", line 
>> 61, in render_to_string
>> template = get_template(template_name, using=using)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\loader.py", line 
>> 15, in get_template
>> return engine.get_template(template_name)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\backends\django.py",
>>  
>> line 34, in get_template
>> return Template(self.engine.get_template(template_name), self)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\engine.py", line 
>> 143, in get_template
>> template, origin = self.find_template(template_name)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\engine.py", line 
>> 125, in find_template
>> template = loader.get_template(name, skip=skip)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\loaders\base.py", 
>> line 29, in get_template
>> return Template(
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
>> 155, in __init__
>> self.nodelist = self.compile_nodelist()
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
>> 193, in compile_nodelist
>> return parser.parse()
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
>> 478, in parse
>> raise self.error(token, e)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
>> 476, in parse
>> compiled_result = compile_func(self, token)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\loader_tags.py", 
>> line 270, in do_extends
>> nodelist = parser.parse()
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
>> 478, in parse
>> raise self.error(token, e)
>>   File 
>> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
>

Re: Looking to join a team in a Django Project to gain Experience

2020-11-30 Thread Naresh Saini
Hi
I am interested.

On Mon, 30 Nov 2020, 08:56 ,  wrote:

> Hi Cesar,
>
>
>
> If you can send me you email to contact you as I am interested
>
>
>
> Ahmed Khairy
>
> ahmed.heshamel...@gmail.com
>
>
>
> *From:* django-users@googlegroups.com  *On
> Behalf Of *Cesar Alvarez
> *Sent:* Monday, September 21, 2020 9:25 PM
> *To:* django-users@googlegroups.com
> *Subject:* Re: Looking to join a team in a Django Project to gain
> Experience
>
>
>
> Hi there,
>
> At the moment I am working in a web application which I am going to offer
> to a company who I know need it, this web application will be used to
> improve internal auditors jobs from that company!
>
> It would be a pleasure to involve you in this project and becoming us
> partners went the client buys the web app...
>
>
>
> Thank you and regards
>
> César Álvarez Moná
>
> From Colombia
>
>
>
> El lun., 21 sep. 2020, 7:39 p.m., ahmed.he...@gmail.com <
> ahmed.heshamel...@gmail.com> escribió:
>
> Hi all,
>
>
>
> I am looking for a team of developers to join them in a project to enhance
> my skills and add to my portfolio.  I am available part time.
>
>
>
> Thanks
>
> --
> 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/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
> 
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/K6Q9JLiQIfk/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CABTGc-oxkVweLCY5V5fE198yBKRj77U1ROKmJRJQF0t00qeHzw%40mail.gmail.com
> 
> .
>
> --
> 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/004a01d6c6c8%2463af73d0%242b0e5b70%24%40gmail.com
> 
> .
>

-- 
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/CACqHDZajr3hsOv7vHo4M19%2BkjfA2H5WboE7oaxpbwvXTo-SvTQ%40mail.gmail.com.


Re: Looking to join a team in a Django Project to gain Experience

2020-11-30 Thread Mahendra
I willing to join in Eveningtime

Mahendra Yadav

On Tue, 22 Sep 2020, 06:09 ahmed.he...@gmail.com, <
ahmed.heshamel...@gmail.com> wrote:

> Hi all,
>
> I am looking for a team of developers to join them in a project to enhance
> my skills and add to my portfolio.  I am available part time.
>
> Thanks
>
> --
> 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/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
> 
> .
>

-- 
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/CAN-6G3yTanyHARb5fnGR0MWvr9FmJFUSfV-qqHBNhvBwW9_9Cw%40mail.gmail.com.


Re: Looking to join a team in a Django Project to gain Experience

2020-11-30 Thread Md Reyajuddin
hi,

I am interested.

On Tue, Sep 22, 2020 at 6:09 AM ahmed.he...@gmail.com <
ahmed.heshamel...@gmail.com> wrote:

> Hi all,
>
> I am looking for a team of developers to join them in a project to enhance
> my skills and add to my portfolio.  I am available part time.
>
> Thanks
>
> --
> 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/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
> 
> .
>

-- 
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/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com.


Re: Can't create custom user model

2020-11-30 Thread Vasiliy Chernykh
You didn't provide any information. Suggest you want to skip login as 
default user name. Check USERNAME_FIELD param in 
NewUserModel(AbstractBaseUser). Also, use class 
NewUserAccountManager(BaseUserManager): with createuser and createsuperuser 
functions.

Check this as 
well: 
https://dev.to/joshwizzy/customizing-django-authentication-using-abstractbaseuser-llg

On Tuesday, 24 November 2020 at 17:11:41 UTC+2 Derek wrote:

> And this: https://stackoverflow.com/help/minimal-reproducible-example 
>
> On Monday, 23 November 2020 at 15:59:50 UTC+2 Kasper Laudrup wrote:
>
>> On 11/23/20 9:05 AM, Charles Freeman wrote:
>> > Hey everyone I can't create a custom user model. Every time I try to 
>> > create super user I end up with an error message saying username is not 
>> > present pls help me thanks
>> > 
>>
>> https://stackoverflow.com/help/how-to-ask
>>
>

-- 
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/e2f1994a-efcd-463e-adb9-67473d940db9n%40googlegroups.com.


Re: Looking to join a team in a Django Project to gain Experience

2020-11-30 Thread boyuanl...@gmail.com
 I'm also interested.
On Monday, November 30, 2020, 07:01:48 AM PST, Md Reyajuddin 
 wrote:  
 
 hi,
I am interested.
On Tue, Sep 22, 2020 at 6:09 AM ahmed.he...@gmail.com 
 wrote:

Hi all,
I am looking for a team of developers to join them in a project to enhance my 
skills and add to my portfolio.  I am available part time.

Thanks

-- 
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/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com.



-- 
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/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com.
  

-- 
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/1588368606.1796518.1606761331585%40mail.yahoo.com.


Ordering objects within a category

2020-11-30 Thread andrew.f...@gmail.com
Hi All.

I’m trying to solve an annoying issue with ordering.  

I have a site that displays lists of objects.  These objects also belong to 
categories.

The site defaults to show the objects from all the categories.  I can order 
these objects based on a model.  However, if I select a category, I cannot 
order the displayed objects within that category.  

Here is the html snippet that I use to order the objects when all 
categories are displayed.  It works well... just not for objects in 
specific categories.


Ordered by 
{% if ordering == 'title' %}
Title 
{% elif ordering == 'filename' %}
Filename 
{% elif ordering == '-author' %}
Author
{% elif ordering == 'created' %}
Date Created
{% elif ordering == '-updated' %}
Last Updated
{% elif ordering == '-status' %}
Status
{% elif ordering == 'iteration_pending' %}
Pending
{% elif ordering == 'iteration_approved' %}
Approved 
{% elif ordering == '-notes' %}
Iconsets with Notes
{% endif %}
 
 
 Title
 Author
 Filename 
 Create Date
 Last Updated
 Status
 Pending
 Approved
 Notes
 


I’m not sure what code needs to be shown so if anyone can help let me know 
and I will share what is needed.

Regards and I hope everyone is well.
-Andrew

-- 
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/104f2940-8e22-486d-8932-54a544fec8dan%40googlegroups.com.


Re: Looking to join a team in a Django Project to gain Experience

2020-11-30 Thread Monaco investment
I am also interested.

Get Outlook for Android


From: django-users@googlegroups.com  on behalf 
of boyuanl...@gmail.com 
Sent: Monday, November 30, 2020 7:35:31 PM
To: django-users@googlegroups.com 
Subject: Re: Looking to join a team in a Django Project to gain Experience

I'm also interested.

On Monday, November 30, 2020, 07:01:48 AM PST, Md Reyajuddin 
 wrote:


hi,

I am interested.

On Tue, Sep 22, 2020 at 6:09 AM 
ahmed.he...@gmail.com 
mailto:ahmed.heshamel...@gmail.com>> wrote:
Hi all,

I am looking for a team of developers to join them in a project to enhance my 
skills and add to my portfolio.  I am available part time.

Thanks

--
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/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com.

--
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/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com.

--
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/1588368606.1796518.1606761331585%40mail.yahoo.com.

-- 
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/AM6PR03MB5957E1FC2A5754B8AE3E0746A7F40%40AM6PR03MB5957.eurprd03.prod.outlook.com.


Re: Is it possible to use REST API on Django template ?

2020-11-30 Thread Liu Zheng
Hi,

Guys earlier have provided useful links for consuming APIs. Just want to
emphasize some concepts between server-side and client-side codes.
A django template is rendered into a page on the *server side*. That means,
the server does the work and prepares the html content before sending it to
the browser. In theory, you can call APIs when rendering the templates on
the server side, but it's almost never a good idea. APIs are designed to be
consumed by *clients*. The django templates should contain the relevant
javascripts (using ajax). These javascripts are not executed when the
server renders the templates. They are sent as they are to the client, and
are executed automatically by the browser. If the javascript calls API, the
browser will come back to your server (this time, to the rest api
endpoints, instead of the template rendering endpoints) and consume your
API.

Hope it helps.

Best
Zheng

On Mon, Nov 30, 2020 at 1:30 AM sree e  wrote:

>
> Hi
> find this link
> https://github.com/sumasreeeduru/Textyfi
> And go through "api" app , where you will find adding the api in easy way.
> On Sunday, November 29, 2020 at 12:36:44 PM UTC+5:30 bharath...@gmail.com
> wrote:
>
>> Hi
>> Use JavaScript or jQuery to call APIs in frontend of Django template.
>> You can use fetch API using vanilla JavaScript.
>> You can perform all CRUD operations.
>> All the best 👍
>>
>> On Sun, 29 Nov 2020, 11:57 am Aman Modi,  wrote:
>>
>>> I know how to create API but i just want to know how to use in Django
>>> template.
>>>
>>> On Wednesday, November 25, 2020 at 8:07:47 PM UTC+5:30
>>> omkar...@gmail.com wrote:
>>>
 Creating REST API in Django is similar to any app on Django. All you
 need to do is, install the djangorestframework library, and serialize your
 models.

 YT video 👇
 https://youtu.be/TmsD8QExZ84
 On Wed, Nov 25, 2020, 7:48 PM Aman Modi  wrote:

>
>
> Hello Django lovers.
>
> I want to use REST API  on the Django template but I have no idea how
> can I do that.
> I want to use the same API on the android app and the Django template.
>
> Any suggestion.
>

> Thanks and regard
> Aman Modi
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/99c6d921-9ea7-4f3b-9d69-03b06fbbd5d8n%40googlegroups.com
> 
> .
>
 --
>>> 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...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/9219ddfb-a07d-40b4-9e64-8324520043f7n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/5bea74b3-647b-45ca-9623-4951b08c911fn%40googlegroups.com
> 
> .
>

-- 
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/CAGQ3pf8_75diWytaSsDK7tcDnqSsPizAXq7BzQ7nM-LonrFhMA%40mail.gmail.com.


Re: Is it possible to use REST API on Django template ?

2020-11-30 Thread Kris A. Stern
Hey,

Guess you are making some baseless assumptions about the so-called
templates... Can the original poster of the question please clarify what
you really meant before we get more and more confused?

K.S.

On Tue, 1 Dec 2020 at 10:03, Liu Zheng  wrote:

> Hi,
>
> Guys earlier have provided useful links for consuming APIs. Just want to
> emphasize some concepts between server-side and client-side codes.
> A django template is rendered into a page on the *server side*. That
> means, the server does the work and prepares the html content before
> sending it to the browser. In theory, you can call APIs when rendering
> the templates on the server side, but it's almost never a good idea. APIs
> are designed to be consumed by *clients*. The django templates should
> contain the relevant  javascripts (using ajax). These javascripts are not
> executed when the server renders the templates. They are sent as they are
> to the client, and are executed automatically by the browser. If the
> javascript calls API, the browser will come back to your server (this time,
> to the rest api endpoints, instead of the template rendering endpoints) and
> consume your API.
>
> Hope it helps.
>
> Best
> Zheng
>
> On Mon, Nov 30, 2020 at 1:30 AM sree e  wrote:
>
>>
>> Hi
>> find this link
>> https://github.com/sumasreeeduru/Textyfi
>> And go through "api" app , where you will find adding the api in easy way.
>> On Sunday, November 29, 2020 at 12:36:44 PM UTC+5:30 bharath...@gmail.com
>> wrote:
>>
>>> Hi
>>> Use JavaScript or jQuery to call APIs in frontend of Django template.
>>> You can use fetch API using vanilla JavaScript.
>>> You can perform all CRUD operations.
>>> All the best 👍
>>>
>>> On Sun, 29 Nov 2020, 11:57 am Aman Modi,  wrote:
>>>
 I know how to create API but i just want to know how to use in Django
 template.

 On Wednesday, November 25, 2020 at 8:07:47 PM UTC+5:30
 omkar...@gmail.com wrote:

> Creating REST API in Django is similar to any app on Django. All you
> need to do is, install the djangorestframework library, and serialize your
> models.
>
> YT video 👇
> https://youtu.be/TmsD8QExZ84
> On Wed, Nov 25, 2020, 7:48 PM Aman Modi  wrote:
>
>>
>>
>> Hello Django lovers.
>>
>> I want to use REST API  on the Django template but I have no idea how
>> can I do that.
>> I want to use the same API on the android app and the Django template.
>>
>> Any suggestion.
>>
>
>> Thanks and regard
>> Aman Modi
>>
>> --
>> 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...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/99c6d921-9ea7-4f3b-9d69-03b06fbbd5d8n%40googlegroups.com
>> 
>> .
>>
> --
 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...@googlegroups.com.

>>> To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/9219ddfb-a07d-40b4-9e64-8324520043f7n%40googlegroups.com
 
 .
>>>
>>>
 --
>> 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/5bea74b3-647b-45ca-9623-4951b08c911fn%40googlegroups.com
>> 
>> .
>>
> --
> 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/CAGQ3pf8_75diWytaSsDK7tcDnqSsPizAXq7BzQ7nM-LonrFhMA%40mail.gmail.com
> 
> .
>

-- 
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...@g

Django bugfix release: 3.1.4

2020-11-30 Thread Mariusz Felisiak

Details are available on the Django project weblog:

https://www.djangoproject.com/weblog/2020/dec/01/django-bugfix-release-314/

--
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/85915ff9-bc30-cd4f-1917-f21fd439eaf3%40gmail.com.