Tuesday, August 31, 2021

Re: Need to volunteer in Django project-as a beginner

did you get volunteers already on your project?

On Mon, 30 Aug 2021 at 11:13, FLAVIEN HERI <flavien.heri@gmail.com> wrote:
hello guys i would like to volunteer in some project.
i'm  currently a beginner in django. having knowledge on:
- template inheritance,
-creating form,
-managing with views, url,
-django model
this is my whatsapp number: +243815357825
Regards

--
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/CAG3GEnyi985Q%3DO3xuS-dFuA_4zh%3DNdHJTazNBfXK_hQvjhBV4Q%40mail.gmail.com.


--
Mugoya Dihfahsih
Software Engineer
Kampala, Uganda
Whatsapp: +256 751612792 
Profile: dihfahsih1.github.io/profile

--
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/CAP%3DJD9x_8-1DF-GFK7Cp-vfUHsTTLb3u5sEAND5iny031zU37g%40mail.gmail.com.

Monday, August 30, 2021

Need to volunteer in Django project-as a beginner

hello guys i would like to volunteer in some project.
i'm currently a beginner in django. having knowledge on:
- template inheritance,
-creating form,
-managing with views, url,
-django model
this is my whatsapp number: +243815357825
Regards

--
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/CAG3GEnyi985Q%3DO3xuS-dFuA_4zh%3DNdHJTazNBfXK_hQvjhBV4Q%40mail.gmail.com.

Sunday, August 29, 2021

examples of django + neo4j projects

Hi Django users,

I'm looking for examples of Django + Neo4j projects. Any examples / projects / blog posts from the past ~5 years anyone might remember would be appreciated.

Here's an incomplete list of what I have found so far

Description of https://cementjob.com/
https://medium.com/@webchad/neo4j-and-django-c12c7a1581a3

Create REST API With Django and Neo4j Database Using Django_nemodel
https://medium.com/swlh/create-rest-api-with-django-and-neo4j-database-using-django-nemodel-1290da717df9

Resotrack: Exploring the Resonate API with Django-Neomodel on Aura
https://medium.com/neo4j/resotrack-exploring-the-resonate-api-with-django-neomodel-on-aura-da0eef97e65a

Thank you

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone.

--
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/0ad44edc-811e-44b7-be87-b856a22d75f4n%40googlegroups.com.

Thursday, August 26, 2021

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

On 27/08/2021 2:09 am, Nigel Copley wrote:
> 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

Overkill, underkill - looks like no other solution at the moment. I'll
look a bit deeper.

>
> 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
> <mailto: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
> <https://groups.google.com/d/msgid/django-users/76e4665b-cd9c-4bc2-b92f-0e6801b52c3fn%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
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/1ec2797d-97c8-4d0c-fd75-0558d111ed08%40dewhirst.com.au.

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

On 27/08/2021 1:50 am, Cale Roco wrote:
> haven't tried it but you could potentially just override the
> "/admin/base.html" template in your templates directory

That does change it but only at the top level admin:index page which
shows all the apps

Doesn't seem to be inherited by child pages.

>
> 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
> <mailto: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
> <https://groups.google.com/d/msgid/django-users/80a0be6b-8064-45bf-b053-974c56d1b89dn%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
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/c1555c89-ce62-f317-008e-be6718abd796%40dewhirst.com.au.

Re: Django and Progressive web application

Do you have any other suggestions? I see pythonyoga charge 97$ , for the whole course. and am only interested in PWA only. I kind of feel confident with the rest of the stuff they wanna teach

On Thu, Aug 26, 2021 at 11:41 AM 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.

--
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/CACPcFd%2BBADkq6NapcRKi%2Bp7p9EcSXbZy%3DfpH8dbs-%2B%2Bh6Kk6aw%40mail.gmail.com.

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.

Monday, August 23, 2021

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

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/3306675c-6079-324e-0fad-b0857a9140a8%40dewhirst.com.au.

Friday, August 20, 2021

Strange Errors when Using MySQL DB

I have a Django (v2.2.23) application connected to a MySQL (v5.7) database. Every now and then, for a few minutes at a time, all my DB queries start to fail with one of the following errors: "Unknown MySQL Error" (error code 2000), "InterfaceError", or "Malformed Packet" (error code 2027). The errors resolve themselves on their own after a few minutes, but then they pop up again a some time later (on average, every few hours). These errors happen seemingly at random and I haven't found any reliable way to reproduce them till now. There is nothing wrong with the code as far as I can see because when the queries do execute, they work as expected and give the correct results.

I have already made several attempts to fix the issue to no avail, including :-

This error is occuring both on local and staging environments.

In order to debug this further, I create a custom exception handler and logged the error as well as the last 3 SQL queries executed (which I got using connection.queries[-3:]).

The result is given below:

'EXCEPTION': InterfaceError(0, ''), 'LAST_QUERIES': [{'sql': 'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED', 'time': '0.000'}, {'sql': None, 'time': '0.000'}]

Notice that for the second query, the value of 'sql' is coming as None. Is Django trying to execute a null query? Could this be the cause of the strange, intermittent errors? Is this a bug inside Django or have I configured something incorrectly?


--
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/f81df377-2ddf-4b18-89e1-8991b028dea2n%40googlegroups.com.

Thursday, August 19, 2021

Re: Python code changes are not reflecting on Django-based web server.

Yes systemctl stop and start httpd, i verified by checking the web page. How can i check pid? 

Regards
Hasan

On Aug 19, 2021, at 8:55 AM, Ryan Nowakowski <tubaman@fattuba.com> wrote:

I'd verify that the systemctl commands are actually starting and stopping httpd. Does the pid change?

On August 18, 2021 11:04:07 AM CDT, Hasan Baig <hasanbaigg@gmail.com> wrote:
Hi,

I have been hosting a django-based web server (httpd with mod_wsgi package) on Linux CentOS 7. I used to reflect the changes made in my code by restarting the web server using the following commands:

sudo systemctl stop httpd
sudo systemctl start httpd


and it would reflect the changes smoothly. Since few days back, this strategy has not been work at all. That is, whenever I make any changes in my python code, even simply printing a message in log file, it is not reflected. To reflect the changes every time, I have to reboot the VM. I tried the following things already which did not help at all:

• Clearing .pyc files
• Restarting/Reloading httpd server
• touch wsgi file
• http is running without caching or proxying (modules have been commented out)


All of the above mentioned tries did not appear to work. The changes are only reflected once when the VM is rebooted. 

What do I need to do to make the code changes reflected without rebooting the VM every time? Any clues, help or suggestions are highly appreciated.

Thanks.

regards
HB

--
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/06AA5FDA-FF21-498E-A2B5-AE3AC7252333%40fattuba.com.

Re: Python code changes are not reflecting on Django-based web server.

I have been using the apachectl command instead and it works without an issue.

sudo apachectl stop
sudo apachectl start
sudo apachectl restart

On Thu, Aug 19, 2021 at 2:54 PM Ryan Nowakowski <tubaman@fattuba.com> wrote:
I'd verify that the systemctl commands are actually starting and stopping httpd. Does the pid change?

On August 18, 2021 11:04:07 AM CDT, Hasan Baig <hasanbaigg@gmail.com> wrote:
Hi,

I have been hosting a django-based web server (httpd with mod_wsgi package) on Linux CentOS 7. I used to reflect the changes made in my code by restarting the web server using the following commands:

sudo systemctl stop httpd
sudo systemctl start httpd


and it would reflect the changes smoothly. Since few days back, this strategy has not been work at all. That is, whenever I make any changes in my python code, even simply printing a message in log file, it is not reflected. To reflect the changes every time, I have to reboot the VM. I tried the following things already which did not help at all:

• Clearing .pyc files
• Restarting/Reloading httpd server
• touch wsgi file
• http is running without caching or proxying (modules have been commented out)


All of the above mentioned tries did not appear to work. The changes are only reflected once when the VM is rebooted. 

What do I need to do to make the code changes reflected without rebooting the VM every time? Any clues, help or suggestions are highly appreciated.

Thanks.

regards
HB

--
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/06AA5FDA-FF21-498E-A2B5-AE3AC7252333%40fattuba.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/CACbngZd259COib5Vs_N_iOazqmgjrJj5scbYV-M244pgfhUUZg%40mail.gmail.com.

Re: Python code changes are not reflecting on Django-based web server.

I'd verify that the systemctl commands are actually starting and stopping httpd. Does the pid change?

On August 18, 2021 11:04:07 AM CDT, Hasan Baig <hasanbaigg@gmail.com> wrote:
Hi,

I have been hosting a django-based web server (httpd with mod_wsgi package) on Linux CentOS 7. I used to reflect the changes made in my code by restarting the web server using the following commands:

sudo systemctl stop httpd
sudo systemctl start httpd


and it would reflect the changes smoothly. Since few days back, this strategy has not been work at all. That is, whenever I make any changes in my python code, even simply printing a message in log file, it is not reflected. To reflect the changes every time, I have to reboot the VM. I tried the following things already which did not help at all:

• Clearing .pyc files
• Restarting/Reloading httpd server
• touch wsgi file
• http is running without caching or proxying (modules have been commented out)


All of the above mentioned tries did not appear to work. The changes are only reflected once when the VM is rebooted. 

What do I need to do to make the code changes reflected without rebooting the VM every time? Any clues, help or suggestions are highly appreciated.

Thanks.

regards
HB

Wednesday, August 18, 2021

Python code changes are not reflecting on Django-based web server.

Hi,

I have been hosting a django-based web server (httpd with mod_wsgi package) on Linux CentOS 7. I used to reflect the changes made in my code by restarting the web server using the following commands:

sudo systemctl stop httpd
sudo systemctl start httpd


and it would reflect the changes smoothly. Since few days back, this strategy has not been work at all. That is, whenever I make any changes in my python code, even simply printing a message in log file, it is not reflected. To reflect the changes every time, I have to reboot the VM. I tried the following things already which did not help at all:

• Clearing .pyc files
• Restarting/Reloading httpd server
• touch wsgi file
• http is running without caching or proxying (modules have been commented out)


All of the above mentioned tries did not appear to work. The changes are only reflected once when the VM is rebooted. 

What do I need to do to make the code changes reflected without rebooting the VM every time? Any clues, help or suggestions are highly appreciated.

Thanks.

regards
HB

Monday, August 16, 2021

Re: Error: NoReverseMatch at

Add an absolute url to your model.


El lun., 16 de agosto de 2021 3:57 a. m., 'Rahul Chauhan' via Django users <django-users@googlegroups.com> escribió:
Hi All,

I have a customized/override "changelist_view.html" to display hierarchical data in Django admin panel.

The problem is that the default form to add the Model data throws below error when clicked the button "add category". Please refer to the attached screenshot.



NoReverseMatch at /admin/category/category/add/

Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not found. 1 pattern(s) tried: ['admin/(?P<app_label>category|auth)/$']



If I remove the function "def changelist_view(self, request, extra_context={}):", the model starts appearing fine. Please refer to the screenshot below. But then I loose the functionality to display custom hierarchical data.



How can I still show the default form to add data to the model and override the  changelist_view.html" .

Appreciate any help in advance.

Thanks
Rahul

This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclaimer@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

--
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/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%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/CAHRQUHmqqZEXH0bshLVbKnOSDkV2L%3DCVKv_wa3rKx6%3DbxAgnpA%40mail.gmail.com.

Re: Error: NoReverseMatch at

show me your django app url and views as well.

On Tue, Aug 17, 2021 at 1:10 AM DJANGO DEVELOPER <abubakarbryar@gmail.com> wrote:
okay add a url. first of all import the view into urls.py file and make a path.

On Mon, Aug 16, 2021 at 5:32 PM 'Rahul Chauhan' via Django users <django-users@googlegroups.com> wrote:
Here is how the the project's url.py looks like. Not made any changes to it.



change_list.html: Copied this (https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/change_list.html) to the local app folder.

On Monday, August 16, 2021 at 3:36:27 PM UTC+5:30 abubak...@gmail.com wrote:
show your url, view and html code.

On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <django...@googlegroups.com> wrote:
Hi All,

I have a customized/override "changelist_view.html" to display hierarchical data in Django admin panel.

The problem is that the default form to add the Model data throws below error when clicked the button "add category". Please refer to the attached screenshot.

dj_1.jpg

NoReverseMatch at /admin/category/category/add/

Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not found. 1 pattern(s) tried: ['admin/(?P<app_label>category|auth)/$']

dj_2.jpg

If I remove the function "def changelist_view(self, request, extra_context={}):", the model starts appearing fine. Please refer to the screenshot below. But then I loose the functionality to display custom hierarchical data.

dj_3.jpg

How can I still show the default form to add data to the model and override the  changelist_view.html" .

Appreciate any help in advance.

Thanks
Rahul

This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to discl...@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

--
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/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com.

This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclaimer@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

--
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/0b99bc76-6423-432e-b114-107b88976fc4n%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/CAKPY9pmTXmUZQ--W6wTFQpr0jstahL%2BdUjPh2DQ7CRcxb%2B%3D7dg%40mail.gmail.com.

Re: Error: NoReverseMatch at

okay add a url. first of all import the view into urls.py file and make a path.

On Mon, Aug 16, 2021 at 5:32 PM 'Rahul Chauhan' via Django users <django-users@googlegroups.com> wrote:
Here is how the the project's url.py looks like. Not made any changes to it.



change_list.html: Copied this (https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/change_list.html) to the local app folder.

On Monday, August 16, 2021 at 3:36:27 PM UTC+5:30 abubak...@gmail.com wrote:
show your url, view and html code.

On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <django...@googlegroups.com> wrote:
Hi All,

I have a customized/override "changelist_view.html" to display hierarchical data in Django admin panel.

The problem is that the default form to add the Model data throws below error when clicked the button "add category". Please refer to the attached screenshot.

dj_1.jpg

NoReverseMatch at /admin/category/category/add/

Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not found. 1 pattern(s) tried: ['admin/(?P<app_label>category|auth)/$']

dj_2.jpg

If I remove the function "def changelist_view(self, request, extra_context={}):", the model starts appearing fine. Please refer to the screenshot below. But then I loose the functionality to display custom hierarchical data.

dj_3.jpg

How can I still show the default form to add data to the model and override the  changelist_view.html" .

Appreciate any help in advance.

Thanks
Rahul

This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to discl...@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

--
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/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com.

This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclaimer@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

--
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/0b99bc76-6423-432e-b114-107b88976fc4n%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/CAKPY9pnb52b%2BtTTo3Zx-KnvBCewrQtWcVSA6APGxEm7KU5azSw%40mail.gmail.com.

Re: Error: NoReverseMatch at

Here is how the the project's url.py looks like. Not made any changes to it.

dj_4.jpg

change_list.html: Copied this (https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/change_list.html) to the local app folder.

On Monday, August 16, 2021 at 3:36:27 PM UTC+5:30 abubak...@gmail.com wrote:
show your url, view and html code.

On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <django...@googlegroups.com> wrote:
Hi All,

I have a customized/override "changelist_view.html" to display hierarchical data in Django admin panel.

The problem is that the default form to add the Model data throws below error when clicked the button "add category". Please refer to the attached screenshot.

dj_1.jpg

NoReverseMatch at /admin/category/category/add/

Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not found. 1 pattern(s) tried: ['admin/(?P<app_label>category|auth)/$']

dj_2.jpg

If I remove the function "def changelist_view(self, request, extra_context={}):", the model starts appearing fine. Please refer to the screenshot below. But then I loose the functionality to display custom hierarchical data.

dj_3.jpg

How can I still show the default form to add data to the model and override the  changelist_view.html" .

Appreciate any help in advance.

Thanks
Rahul

This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to discl...@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

--
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/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com.

This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclaimer@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

--
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/0b99bc76-6423-432e-b114-107b88976fc4n%40googlegroups.com.

Re: Error: NoReverseMatch at

show your url, view and html code.

On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <django-users@googlegroups.com> wrote:
Hi All,

I have a customized/override "changelist_view.html" to display hierarchical data in Django admin panel.

The problem is that the default form to add the Model data throws below error when clicked the button "add category". Please refer to the attached screenshot.



NoReverseMatch at /admin/category/category/add/

Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not found. 1 pattern(s) tried: ['admin/(?P<app_label>category|auth)/$']



If I remove the function "def changelist_view(self, request, extra_context={}):", the model starts appearing fine. Please refer to the screenshot below. But then I loose the functionality to display custom hierarchical data.



How can I still show the default form to add data to the model and override the  changelist_view.html" .

Appreciate any help in advance.

Thanks
Rahul

This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclaimer@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

--
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/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%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/CAKPY9p%3DvSWKzR3LXK_noXvZG2OwYxNwAHkkvTYt13ZwMLq_XNA%40mail.gmail.com.

Error: NoReverseMatch at

Hi All,

I have a customized/override "changelist_view.html" to display hierarchical data in Django admin panel.

The problem is that the default form to add the Model data throws below error when clicked the button "add category". Please refer to the attached screenshot.

dj_1.jpg

NoReverseMatch at /admin/category/category/add/

Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not found. 1 pattern(s) tried: ['admin/(?P<app_label>category|auth)/$']

dj_2.jpg

If I remove the function "def changelist_view(self, request, extra_context={}):", the model starts appearing fine. Please refer to the screenshot below. But then I loose the functionality to display custom hierarchical data.

dj_3.jpg

How can I still show the default form to add data to the model and override the  changelist_view.html" .

Appreciate any help in advance.

Thanks
Rahul

This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclaimer@email-abuse.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.

--
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/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com.

Sunday, August 15, 2021

Re: Added new column to model and run migrations but not applied to database table

Hi,
I am hitting this problem again with new code merges into the deployment server. Last time, I fixed the issue by doing like this

"I have tried all the ways what you guys suggested me But here I don't want change database why because it is deployment server so, when I run manage.py makemigrations migrations are applied and changes are reading but when I run manage.py migrate changes are not taken to database so, Manually I queried queries to add columns into respected tables into database."

I really think this might not be a sustainable solution. So, I would really like to fix this permanently. I would appreciate it if someone could suggest a remedy for this issue.

Thank you in advance
~Salima

On Tue, Jul 27, 2021 at 5:18 AM guna visva <gunaselanv@gmail.com> wrote:
having had the unfortunate phase of dealing with it , sorting it requires some patience

the issue is the tables in django_migrations is not in sync with rest the rest of your database or migrations files. 

You have to first remove the addition in field etc and make sure the database tables are first in sync with your models, then 1. delete migrations files and 2. delete django_migrations. Then 3.makemigrations and 4. migrate fake.  All risks are yours to take

Then finally just add your fields and makemigrations and migrate

The above might/or not work as it might give some content type errors 




On Wednesday, July 21, 2021 at 2:39:56 AM UTC+8 sebasti...@gmail.com wrote:
Is in settings.py also in installed app? Without that migrations don't work

Salima Begum <sali...@rohteksolutions.com> schrieb am Di., 20. Juli 2021, 19:00:
Hi ,
Thank you for your responses.
 I have tried all the ways Which you people suggested I am not getting any error while running makemigrations or migrate and 
python manage.py migrate --fake-initial. But those migrations are not applying to the database. How can I fix this issue without deleting the database? 

Thank you
~Salima
 

On Mon, Jul 19, 2021 at 7:02 PM Aman Vyas <amanv...@gmail.com> wrote:
if it is saying no changes detected while running makemigrations and you are sure that you changed models.py  then these things you can try:

1: python manage.py makemigrations appname

if this will not work then do that

2: delete migrations folder from your app and delete database then run again python manage.py makemigrations




On Mon, Jul 19, 2021 at 6:07 AM Salima Begum <sali...@rohteksolutions.com> wrote:
Hi all,

I have added a new column to the existing model while developing. Then I run makemigrations and migrate. It is not applied to the database table which is created based on that model. How can I fix this issue? Please help me to complete this issue.

The below issue I am facing in deployment server after adding new field and deployed into server.

```
psycopg2.errors.UndefinedColumn: column shopping_ls_product_search.quality_prdct does not exist
LINE 1: ... Col1 FROM "shopping_ls_product_search" WHERE ("shopping_...
```
Thank you
~Salima

--
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/CAMSz6bnLkeN001UnxO3PdCg06Jc%3Dcr22kZXc71KL4w5CbYq_Cw%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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKZY6%3DAgrWzCmrBHpouSJG_Vfy7i6LQu81Q7EWBRq44Yf3053A%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...@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/f8458021-e0c0-4c30-8188-0c08932b1deen%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/CAMSz6bki3qrsof6JJC3PhcAGcFECEo-iOttsgXvQ3c2SBcyEWg%40mail.gmail.com.

Re: GeoDjango with SpatialLite on Windows 10

OK, I got it.

As it turns out, GDAL has everything you need, including the SQLite database. There is only one important fact, you have to load the DLL prior Django loads his SQLite. Because Django loads the one from Python it self. Therefore i did put the necessary code into the settings.py. Because Django has first to load the settings, before it can load the correct database middleware (SQLite, PostgreSQL, MariaDB,...). The code is in the Picture below.

P.S.: The Tutorial is not quiet accurate. The Geographic Model from there (https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/#defining-a-geographic-model) should allow NULL for the polygon field:
mpoly = models.MultiPolygonField(null=True)
This is neccessary because the ZIP you offer there has incomplete data. At least good old England (to be precise: United Kingdom) has no pylogon data, maybe some more countries. I didn't check further. Therefore you can't load the "TM_WORLD_BORDERS-0.3.shp" as instructed (https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/#layermapping).

Should I open a ticket for this, or is this mailing list enough?
settings.png
Tugg Speedman schrieb am Freitag, 13. August 2021 um 18:41:22 UTC+2:
Ah OK, this was helpful. I never thought about this, but as it turns out on Windows, Python ships with it's own compiled version of SQLite (see picture below). This is problematic. If i just swap this DLL with another one, I would change every other Python Script on my machine. Hmm..., is it possible to change some environment Paths in a venv and just point to another DLL? I have to look this up. Thanks a lot Micheal.

sqlite.png

Michael Ross schrieb am Freitag, 13. August 2021 um 00:51:02 UTC+2:
On Thu, 12 Aug 2021 04:15:57 -0700 (PDT)
Tugg Speedman <ts.sim...@gmail.com> wrote:

>
> Hello everyone,
>
> I'm new to GeoDjango and therefore I tried to follow the tutorial
> (https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/) first.
> But the problem is, it doesn't work with SQLite a.k.a SpatialLite. When I
> try to build the migrations, a Windows error pops up (see picture below).
> It's german and says there is no entry point in gdal301.dll.
>
> So why do I post this problem here in Django mailing list? Because the
> Tutorial is very fuzzy for Spatial & Windows. It basically just says
> download the SQLite files from here: https://www.gaia-gis.it/gaia-sins/
>
> But what to do with this files? Can I put them wherever I want? Do I have
> to add them on System/Python path?
>
> I would really appreciate any help
> Thank you[image: error.png]

Maybe this helps:

https://stackoverflow.com/questions/53682315/error-on-libcurl-dll-when-using-gdal-of-osgeo4w-in-django

TLDR: IntelliJ loads wrong sqlite3.dll?

--
Michael Ross <g...@ross.cx>

--
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/e0fb9baa-dbcb-4d6a-a566-a91c7b8d362cn%40googlegroups.com.