Re: how to pass multiple query sets in Django

2021-02-16 Thread Anil s
Hi thanks for the response.

can you please let me know how to pass the below array in the serializer

project_array = {'project_type': project_type}
serializer = ProjectListSerializer(project_array, many=True)
return Response(serializer.data)

when i pass this i am getting the below error

Got AttributeError when attempting to get a value for field
`project_number` on serializer `ProjectListSerializer`

please help me how to resolve this.

Regards,

Anil Sebastin


On Tue, Feb 16, 2021 at 7:58 PM Omkar Parab  wrote:

> pass your multiple query sets using the get_context_data" method.
>
> 
>
> https://docs.djangoproject.com/en/3.1/topics/class-based-views/generic-display/
>
> On Tue, Feb 16, 2021, 7:28 PM Anil s  wrote:
>
>>
>> Hello Everyone:
>>
>> Can somebody please tell me how to pass multiple query sets in Django.
>>
>> Thank you for your help.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/a9b86c7a-e084-4f86-8c78-db8c4c56f82en%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/2wd6MUE9iqo/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/CAJY8mfwVnvzWjzgLrmJ2akcuVv-szk0oeWkJK74LfmbPPmvuOw%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/CAH9gtO9YzdGxECJr1j%3De_%3Di1_gvkwS%3DcMpdfMZpfG9PFRHgnug%40mail.gmail.com.


setting up urls of many apps

2021-02-16 Thread Peter Kirieny
someone to help me to set up urls of two different apps in django project
please, i keep on getting errors
am new

-- 
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/CAL8t8eoZbPizoFodfX_TSXkAr%2B1CsNY8%3D2rNpobTcn4Of-ZXjg%40mail.gmail.com.


Re: Library for calculating distance between ZIP codes

2021-02-16 Thread Ram
Thank you very much, Thomas. We will explore Geodetic and see if it is
helpful. I really appreciate for the pointer.

Best regards,
~Ram

On Tue, Feb 16, 2021 at 10:02 PM Thomas Lockhart 
wrote:

> Pre-calculating is pretty expensive: 81939*81938/2 = 3,356,958,891 entries
> make a pretty big table. Calculating on the fly is probably not horribly
> expensive and you could calculate and save, thereby caching values which
> have been used before.
>
> Anyway, geodjango might be what you need. Plus the info on the geodetic
> coordinates for each zip code of course.
>
> hth
>
> - Tom
>
> On Feb 16, 2021, at 8:27 PM, Ram  wrote:
>
> Hi,
>
> We've USA ZIP codes table with the following values. and we have a total
> of 81,939 ZIP codes.
>
> INSERT INTO pages_zip_code (id, zip, city, st) VALUES
>> (1, '00501', 'Holtsville', 'NY'),
>> (2, '00544', 'Holtsville', 'NY'),
>> (3, '00601', 'Adjuntas', 'PR'),
>> (4, '00602', 'Aguada', 'PR'),
>> (5, '00603', 'Aguadilla', 'PR'),
>> ...
>>
>
> We need to calculate the distance between each zip code and save the
> distance value in table like "zip_codes_distance" with the following table
> columns
>
> zip_codes_distance table
>> id | from_zip | to_zip | distancev
>
>
> We're looking for an appropriate library that might be available in
> Python/Django to calculate the distance easily instead of using any API. We
> know we can use Google's distance API with allowable requests, but we are
> trying to see if any Python library out there that is capable of doing the
> same calculation.
>
> I would appreciate expert advice on this.
>
> Best regards
> ~Ram
>
> --
> 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/CA%2BOi5F1-E-70zWo-8EPu0%2BrWD%2BCjFqZaCVaUEtbb9mRNKjpMNQ%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/6921E387-014E-4C71-AAB8-80295C7A5C5D%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/CA%2BOi5F3mYMzTJsddV6ATcpbn5FEDcDf2zTGHQVkk72wYb2thLQ%40mail.gmail.com.


Re: Library for calculating distance between ZIP codes

2021-02-16 Thread Thomas Lockhart
Pre-calculating is pretty expensive: 81939*81938/2 = 3,356,958,891 entries make 
a pretty big table. Calculating on the fly is probably not horribly expensive 
and you could calculate and save, thereby caching values which have been used 
before.

Anyway, geodjango might be what you need. Plus the info on the geodetic 
coordinates for each zip code of course.

hth

- Tom

> On Feb 16, 2021, at 8:27 PM, Ram  wrote:
> 
> Hi,
> 
> We've USA ZIP codes table with the following values. and we have a total of 
> 81,939 ZIP codes.
> 
> INSERT INTO pages_zip_code (id, zip, city, st) VALUES
> (1, '00501', 'Holtsville', 'NY'),
> (2, '00544', 'Holtsville', 'NY'),
> (3, '00601', 'Adjuntas', 'PR'),
> (4, '00602', 'Aguada', 'PR'),
> (5, '00603', 'Aguadilla', 'PR'),
> ...
> 
> We need to calculate the distance between each zip code and save the distance 
> value in table like "zip_codes_distance" with the following table columns
> 
> zip_codes_distance table
> id | from_zip | to_zip | distancev
> 
> We're looking for an appropriate library that might be available in 
> Python/Django to calculate the distance easily instead of using any API. We 
> know we can use Google's distance API with allowable requests, but we are 
> trying to see if any Python library out there that is capable of doing the 
> same calculation.
> 
> I would appreciate expert advice on this.
> 
> Best regards
> ~Ram
> 
> -- 
> 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/CA%2BOi5F1-E-70zWo-8EPu0%2BrWD%2BCjFqZaCVaUEtbb9mRNKjpMNQ%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/6921E387-014E-4C71-AAB8-80295C7A5C5D%40gmail.com.


Library for calculating distance between ZIP codes

2021-02-16 Thread Ram
Hi,

We've USA ZIP codes table with the following values. and we have a total of
81,939 ZIP codes.

INSERT INTO pages_zip_code (id, zip, city, st) VALUES
> (1, '00501', 'Holtsville', 'NY'),
> (2, '00544', 'Holtsville', 'NY'),
> (3, '00601', 'Adjuntas', 'PR'),
> (4, '00602', 'Aguada', 'PR'),
> (5, '00603', 'Aguadilla', 'PR'),
> ...
>

We need to calculate the distance between each zip code and save the
distance value in table like "zip_codes_distance" with the following table
columns

zip_codes_distance table
> id | from_zip | to_zip | distancev


We're looking for an appropriate library that might be available in
Python/Django to calculate the distance easily instead of using any API. We
know we can use Google's distance API with allowable requests, but we are
trying to see if any Python library out there that is capable of doing the
same calculation.

I would appreciate expert advice on this.

Best regards
~Ram

-- 
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/CA%2BOi5F1-E-70zWo-8EPu0%2BrWD%2BCjFqZaCVaUEtbb9mRNKjpMNQ%40mail.gmail.com.


Re: I have created a application in which i want to filter table between dates (from and to date) but i am not getting desired out put... Please guide me

2021-02-16 Thread Jim Illback
Neha, try changing your template for loop from:
{% for results in formdata %}

To:
{% for results in search %}

The name of your queryset in your context (d = {'search': search, 'fd': fd, 
'td': td}) is search, not formdata.

Also, I’d recommend improving your names. Things like “data”  and “results” are 
not the most meaningful names to use.


Good luck!
Jim


On Feb 16, 2021, at 1:57 AM, neha bhurke 
mailto:bhurkene...@gmail.com>> wrote:

hi Everyone ,

I have created a application in which I want to  filter table between dates 
(from and to)dates
But not getting a desired output .

This is my models.py

class data(models.Model):
machinename = models.CharField(max_length=100)
activity = models.CharField(max_length=255)
description = models.CharField(max_length=500)
datetime = models.DateField()


This is my html page


{% csrf_token %}






>From :
To :








Datetime
Machine Name
Activity
Description




{% for results in formdata %}

{{results.datetime}}
{{results.machinename}}
{{results.activity}}
{{results.description}}

{% endfor %}






This is my views.py

def showresults(request):
if request.method == "POST":
fd = request.POST.get['fromdate']
td = request.POST.get['todate']
search = data.objects.filter(Q(datetime__gte=fd) & Q(datetime__lte=td))
d = {'search': search, 'fd': fd, 'td': td}
return render(request, 'dashboard.html', d)
else:
result = data.objects.all()
return render(request, 'dashboard.html', {'formdata': result})


Please help me..
Thank You !!

-- 
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/11780FCE-6C09-4B48-A61D-42B3FA7FCCD7%40hotmail.com.


Re: weird memory error on Centos7

2021-02-16 Thread Michael Johnson
Hi Wouter,

I am having this same issue (or a very similar one - I am using Centos 8), 
and this is the only place I have seen someone else with it. Do you mind 
sharing your solution? I have the packages installed as suggested by DANIEL 
URBANO DE LA RUA, and I see on the docs that geodjango suports gdal3

Thanks in advance

mod_wsgi (pid=584037): Exception occurred processing WSGI script 
'/django/myapp/wsgi.py'.
Traceback (most recent call last):
   File "/django/myapp/wsgi.py", line 20, in 
 application = get_wsgi_application()
   File "/usr/local/lib/python3.6/site-packages/django/core/wsgi.py", line 
12, in get_wsgi_application
 django.setup(set_prefix=False)
   File "/usr/local/lib/python3.6/site-packages/django/__init__.py", line 
24, in setup
 apps.populate(settings.INSTALLED_APPS)
   File "/usr/local/lib/python3.6/site-packages/django/apps/registry.py", 
line 114, in populate
 app_config.import_models()
   File "/usr/local/lib/python3.6/site-packages/django/apps/config.py", 
line 211, in import_models
 self.models_module = import_module(models_module_name)
   File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in 
import_module
 return _bootstrap._gcd_import(name[level:], package, level)
   File "", line 994, in _gcd_import
   File "", line 971, in _find_and_load
   File "", line 955, in 
_find_and_load_unlocked
   File "", line 665, in _load_unlocked
   File "", line 678, in exec_module
   File "", line 219, in 
_call_with_frames_removed
   File "/django/myapp/app/models.py", line 2, in 
 from django.contrib.auth.models import User
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/auth/models.py", 
line 2, in 
 from django.contrib.auth.base_user import AbstractBaseUser, 
BaseUserManager
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/auth/base_user.py", 
line 48, in 
 class AbstractBaseUser(models.Model):
   File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", 
line 122, in __new__
 new_class.add_to_class('_meta', Options(meta, app_label))
   File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", 
line 326, in add_to_class
 value.contribute_to_class(cls, name)
   File 
"/usr/local/lib/python3.6/site-packages/django/db/models/options.py", line 
206, in contribute_to_class
 self.db_table = truncate_name(self.db_table, 
connection.ops.max_name_length())
   File "/usr/local/lib/python3.6/site-packages/django/db/__init__.py", 
line 28, in __getattr__
 return getattr(connections[DEFAULT_DB_ALIAS], item)
   File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 
214, in __getitem__
 backend = load_backend(db['ENGINE'])
   File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 
111, in load_backend
 return import_module('%s.base' % backend_name)
   File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in 
import_module
 return _bootstrap._gcd_import(name[level:], package, level)
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/db/backends/postgis/base.py",
 
line 6, in 
 from .features import DatabaseFeatures
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/db/backends/postgis/features.py",
 
line 1, in 
 from django.contrib.gis.db.backends.base.features import 
BaseSpatialFeatures
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/db/backends/base/features.py",
 
line 3, in 
 from django.contrib.gis.db import models
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/db/models/__init__.py",
 
line 3, in 
 import django.contrib.gis.db.models.functions  # NOQA
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/db/models/functions.py",
 
line 3, in 
 from django.contrib.gis.db.models.fields import BaseSpatialField, 
GeometryField
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/db/models/fields.py",
 
line 3, in 
 from django.contrib.gis import forms, gdal
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/forms/__init__.py", 
line 3, in 
 from .fields import (  # NOQA
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/forms/fields.py", 
line 2, in 
 from django.contrib.gis.gdal import GDALException
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/gdal/__init__.py", 
line 28, in 
 from django.contrib.gis.gdal.datasource import DataSource
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/gdal/datasource.py", 
line 39, in 
 from django.contrib.gis.gdal.driver import Driver
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/gdal/driver.py", 
line 5, in 
 from django.contrib.gis.gdal.prototypes import ds as vcapi, raster as 
rcapi
   File 
"/usr/local/lib/python3.6/site-packages/django/contrib/gis/gdal/prototypes/ds.py",
 
line 9, in 
 from django.contrib.gis.gdal.libgdal import GDAL_VERSION, 

Django “Did you mean?” search query

2021-02-16 Thread dupakoor kannan
Hello everyone,

I would like to implement a search for miss spelled words from the
database. I read this
https://stackoverflow.com/questions/476394/django-did-you-mean-query. Do we
have Django apps for that?

Thank you

Kannan

-- 
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/CADiZb_cQmQcpTdFFK5ZX%3D_7h3qUze2jNYNAGuv5ZYJqeDd69Ww%40mail.gmail.com.


Re: how to pass multiple query sets in Django

2021-02-16 Thread Omkar Parab
pass your multiple query sets using the get_context_data" method.


https://docs.djangoproject.com/en/3.1/topics/class-based-views/generic-display/

On Tue, Feb 16, 2021, 7:28 PM Anil s  wrote:

>
> Hello Everyone:
>
> Can somebody please tell me how to pass multiple query sets in Django.
>
> Thank you for your help.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a9b86c7a-e084-4f86-8c78-db8c4c56f82en%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/CAJY8mfwVnvzWjzgLrmJ2akcuVv-szk0oeWkJK74LfmbPPmvuOw%40mail.gmail.com.


Re: using variable in django template

2021-02-16 Thread Kasper Laudrup

On 16/02/2021 13.18, Jiffin George Kokkat wrote:

Hi guys,
i want to declare a variable in django template and update value of 
variable inside a loop




https://pythoncircle.com/post/701/how-to-set-a-variable-in-django-template/

https://pythoncircle.com/post/685/for-loop-in-django-template/

Kind regards,

Kasper Laudrup

--
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/e99aad17-ddf3-69c0-fe90-e8b6be4c45b9%40stacktrace.dk.


how to pass multiple query sets in Django

2021-02-16 Thread Anil s

Hello Everyone:

Can somebody please tell me how to pass multiple query sets in Django.

Thank you for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a9b86c7a-e084-4f86-8c78-db8c4c56f82en%40googlegroups.com.


Implementing a map within a form

2021-02-16 Thread Ziyad Alshaikh
Hi, 
I'm currently trying to implement a map within a form using class based 
model.
The map does not show on the page/form. The map, however, shows on the 
*admin* page
and stores the location successfully.

Any thoughts on where is the problem?

*Model*
from django.contrib.gis.db import models

class Property(models.Model):

location = models.PointField()


*View*

class PropertyCreate(CreateView):
form_class = PropertyForm
model = Property
.

*Forms*
class PropertyForm(forms.ModelForm):

location = forms.PointField(widget=
forms.OSMWidget(attrs={'map_width': 800, 'map_height': 500}))

class Meta:
model = Property

*Template*



 {{form.location }}


-- 
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/e7d61f5d-7c5c-40dd-bfbc-28b032ac7263n%40googlegroups.com.


How to pass multiple query sets in Django?

2021-02-16 Thread Anil s

How to pass multiple query sets in Django?

-- 
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/f6c9f411-3d7d-4739-ae85-865549c00e5an%40googlegroups.com.


Class-Based_views | DetailView | send_email with attachments

2021-02-16 Thread Sachin KODAD
Hello Django Users,

I need help with one of my views in Django DetailView. I want to send_mail 
from my HTML form (post method). 

Requrirement:

1. HTML Form (method=post)
2. Django DetailView (send_mail with attachments)

***

I have already set up my send_mail and email config in setting.py and it is 
working fine in another app within the project. I just need to make it work 
in my current app within the same project. 

Any help would be appreciated. 

Regards,

SKODAD

-- 
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/49ab4d08-a80b-49fa-b404-3ba0e9dccd75n%40googlegroups.com.


using variable in django template

2021-02-16 Thread Jiffin George Kokkat
Hi guys,
i want to declare a variable in django template and update value of
variable inside a loop

how to do
Thanks,
Jiffin George Kokkat

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


I have created a application in which i want to filter table between dates (from and to date) but i am not getting desired out put... Please guide me

2021-02-16 Thread neha bhurke
hi Everyone ,

I have created a application in which I want to  filter table between dates 
(from and to)dates 
But not getting a desired output .

This is my models.py

class data(models.Model):
machinename = models.CharField(max_length=100)
activity = models.CharField(max_length=255)
description = models.CharField(max_length=500)
datetime = models.DateField()


This is my html page


{% csrf_token %}






>From :
To :








Datetime
Machine Name
Activity
Description




{% for results in formdata %}

{{results.datetime}}
{{results.machinename}}
{{results.activity}}
{{results.description}}

{% endfor %}






This is my views.py 

def showresults(request):
if request.method == "POST":
fd = request.POST.get['fromdate']
td = request.POST.get['todate']
search = data.objects.filter(Q(datetime__gte=fd) & Q(datetime__lte=td))
d = {'search': search, 'fd': fd, 'td': td}
return render(request, 'dashboard.html', d)
else:
result = data.objects.all()
return render(request, 'dashboard.html', {'formdata': result})


Please help me..
Thank You !!

-- 
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/f2e82200-697e-4deb-b6f5-68e48e1c4a81n%40googlegroups.com.


Does Django 2.2 LTS supports Postgresql 11 ?

2021-02-16 Thread phep

Hi,

Pretty much everything is in the subject line!

The release-notes say Postgresql 9.4 or higher is supported, but Postgresql 
11 had been released only 6 months before Django 2.2, so I'd prefer to be sure.


Thanks in advance,

phep

--
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/4324affb-f01c-bfe5-6e93-b96cabddaf73%40wakzo.net.


Re: maping url

2021-02-16 Thread Parul.
Hi,
can you please provide code snapshots of where you are getting this error?

a possibility can be you are trying to iterate in a dictionary.

On Tue, Feb 16, 2021 at 12:27 PM Peter Kirieny 
wrote:

> hi guys, i cloned a project from github and then added a new app into my
> project
> now am trying to map my app's url to my project but i get this error
>
> TypeError: argument of type 'type' is not iterable
>
> anyone with any idea kindly help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL8t8eqA0%2B_vumUtLX%3Dy8KhR7Cb2ZCMOxfs-HrRoYnwwR5QP-A%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/CAHjHRFrC-sp363cXUsW%2Bfqm0b8fWG-umbxj2DGEBGfTg1LO06w%40mail.gmail.com.