Thursday, August 26, 2021

Re: Django and Progressive web application


On Thu, Aug 26, 2021 at 12:41 PM Gerardo Palazuelos Guerrero <gerardo.palazuelos@gmail.com> wrote:
Hello Duncan,
First thing first: I'm not affiliated in any way to the following resource.

The other day I found pythonyoga.com. And I saw they have a course on using Django while creating a PWA.
Not sure how that can be helpful to you.

Regards,

--
Gerardo Palazuelos Guerrero



On Thu, Aug 26, 2021 at 11:33 AM Duncan Santiago <duncansantiago18@gmail.com> wrote:
I have been trying to bring in the concept of progressive web application to my django websites. I have had issue with with the service worker, the major problem is the scope attribute. When  I leave the scope unconfigured it defualts to the static folder, which means I cannot cache an html file since normally I would store html files in a separate folder from the static files. I want my cached files to include html file as well

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c406d87a-8a19-40ee-b8b9-6e813268ea28n%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ8iCyOWamojcV%2BgPwFDaRbcu7-v4VCEtJmW%3DCf%2BCgh_Vw1XZg%40mail.gmail.com.


--
att.
Carlos Rocha

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO0ydOnoNi1qf8-VsxsiDUKmwxqOWG8CQiGeCAMoB-9O-w%40mail.gmail.com.

Re: Django and Progressive web application

Hello Duncan,
First thing first: I'm not affiliated in any way to the following resource.

The other day I found pythonyoga.com. And I saw they have a course on using Django while creating a PWA.
Not sure how that can be helpful to you.

Regards,

--
Gerardo Palazuelos Guerrero



On Thu, Aug 26, 2021 at 11:33 AM Duncan Santiago <duncansantiago18@gmail.com> wrote:
I have been trying to bring in the concept of progressive web application to my django websites. I have had issue with with the service worker, the major problem is the scope attribute. When  I leave the scope unconfigured it defualts to the static folder, which means I cannot cache an html file since normally I would store html files in a separate folder from the static files. I want my cached files to include html file as well

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c406d87a-8a19-40ee-b8b9-6e813268ea28n%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJ8iCyOWamojcV%2BgPwFDaRbcu7-v4VCEtJmW%3DCf%2BCgh_Vw1XZg%40mail.gmail.com.

Django and Progressive web application

I have been trying to bring in the concept of progressive web application to my django websites. I have had issue with with the service worker, the major problem is the scope attribute. When  I leave the scope unconfigured it defualts to the static folder, which means I cannot cache an html file since normally I would store html files in a separate folder from the static files. I want my cached files to include html file as well

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c406d87a-8a19-40ee-b8b9-6e813268ea28n%40googlegroups.com.

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

although I think you'd have to override the breadcrumb block in each of the public facing admin templates, it doesn't look to be easily done and making a home setting it's probably overkill

On Thursday, 26 August 2021 at 16:50:11 UTC+1 Nigel Copley wrote:
haven't tried it but you could potentially just override the "/admin/base.html" template in your templates directory

On Tuesday, 24 August 2021 at 02:02:14 UTC+1 Mike Dewhirst wrote:
We are using 'Home' in a different, more public, part of the site and
have to adjust that first item in the Admin breadcrumbs to 'Menu' or
'Main menu' in order to keep the UX masters happy. Some of the Admin is
public facing.

Looking at the source, I would have to override an awful lot of
templates with ...

<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>

It looks impossible to do elegantly. I shudder at scripting a global
search and replace.

Is this worth putting in the effort to make 'Home' a setting - if that
is even possible.

If so, how do I get started on that?

Thanks

Mike

--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/76e4665b-cd9c-4bc2-b92f-0e6801b52c3fn%40googlegroups.com.

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

haven't tried it but you could potentially just override the "/admin/base.html" template in your templates directory

On Tuesday, 24 August 2021 at 02:02:14 UTC+1 Mike Dewhirst wrote:
We are using 'Home' in a different, more public, part of the site and
have to adjust that first item in the Admin breadcrumbs to 'Menu' or
'Main menu' in order to keep the UX masters happy. Some of the Admin is
public facing.

Looking at the source, I would have to override an awful lot of
templates with ...

<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>

It looks impossible to do elegantly. I shudder at scripting a global
search and replace.

Is this worth putting in the effort to make 'Home' a setting - if that
is even possible.

If so, how do I get started on that?

Thanks

Mike

--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/80a0be6b-8064-45bf-b053-974c56d1b89dn%40googlegroups.com.

Re: UML to Django models

theres a lot of different ways you can do this, depending on your desired functionality, the amount of data you intend to store etc,

// Simple Example
class Product(models.Model):
   name = models.Charfield(max_length=255)


class ProductFeature(models.Model):
    product = models.ForeignKey(Product, on_delete=models.CASCADE)
    feature = models.ForeignKey("Feature", on_delete=models.CASCADE)

class Feature(models.Model):
    name = models.CharField(max_length=60)
    value = models.CharField(max_length=60)

On Thursday, 26 August 2021 at 16:14:04 UTC+1 abubak...@gmail.com wrote:
Hi Derek it is not difficult for me to write the model for the product entity. but there are also other diagrams that I want to convert into models. so I was just wanted to clear my concept.
I am confused in Super types and sub types as you can see an entity within the entity. how should I convert them into models?

On Thu, Aug 26, 2021 at 6:50 PM Derek <game...@gmail.com> wrote:
There is not sufficient data in that image to create models.  You don't know the field types, for example.

Once you have those, it should not be too hard e.g.:

from django.db import models

class Product(models.Model):
    product_id = models.AutoField()
    name = models.CharField( max_length=255)
    date_introduction = models.DateField()
    comment = models.TextField()

#etc.

You'll need to use ForeignKey fields to link related tables, of course.

HTH.

On Thursday, 26 August 2021 at 10:28:23 UTC+2 abubak...@gmail.com wrote:
can anyone help me?

On Thu, Aug 26, 2021 at 9:32 AM DJANGO DEVELOPER <abubak...@gmail.com> wrote:
Currently, I am working on an inventory management system and I have got some UML diagrams and want to convert those uml diagrams into django models. So can anyone guide me on how to convert those UML diagrams into django models?
an example is below of uml diagram

--
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/d7cc08c3-cb88-422b-8cb3-a15130abeba1n%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.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dbc1bde9-06d9-440d-95ea-1c9c55d1c698n%40googlegroups.com.

Wednesday, August 25, 2021

FILE UPLOAD IN Nested Serializer

I have a plain text field in Parent Table and should upload a file in child table and has a foreign key relation in both table. I cannot upload a file in nested serializer. I didn't get a file data in serializer create function. it take a data of parent serializer and delete the data of Nested Serializer. Can somebody help me to upload a file with nested serializer. 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9c0490f5-3532-4acb-ba0e-9918669d49c4n%40googlegroups.com.