Urgent help

2021-02-25 Thread neha bhurke
Hello Everyone 

I want to create a calendar base view as attached in the file .Please help 
me 

-- 
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/75810875-8b82-4fe6-aff4-8b7775715403n%40googlegroups.com.


Re: Urgent help

2021-02-25 Thread AMRIT SHAHI
use jquery

On Thu, Feb 25, 2021 at 3:04 PM neha bhurke  wrote:

> Hello Everyone
>
> I want to create a calendar base view as attached in the file .Please help
> me
>
> --
> 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/75810875-8b82-4fe6-aff4-8b7775715403n%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/CADydCv958av4aQnZMzrJqOjHz0TMEThbSNaTO5WUtHMp%3D_7-5w%40mail.gmail.com.


Re: Problem with view

2021-02-25 Thread Umberto Moffa
Di niente!

Il giorno gio 25 feb 2021 alle 07:47 Maurizio Faccin <
maurizio.fac...@tiscali.it> ha scritto:

>
> Ciao,
> cambiando il nome delle classi funziona.
>
> Grazie mille!
>
>
> Maurizio
>
>
> Il 25/02/2021 01:14, Umberto Moffa ha scritto:
>
> Ciao, prova a cambiare il nome delle classi, forse chiamandosi Fatture sia
> il Model che la View va in pappa, oppure sovrascrivi il nome del Model
> quando lo importi nella view
>
> Esempio:
> “from model. import Fatture as *qualsiasi altro nome*
>
> Il giorno gio 25 feb 2021 alle 00:54 Maurizio Faccin <
> maurizio.fac...@tiscali.it> ha scritto:
>
>>
>> Hello,
>> I'am a newbie in usign django and django rest.
>> I have a problem with a modelsetview
>> The message error is:
>>
>> Exception Type: AttributeError
>> Exception Value:
>>
>> type object 'Fatture' has no attribute 'objects'
>>
>> Exception Location:
>> C:\Lavoro\Python\scambiosdi\scambiosdi\fatture\api\views.py, line 15, in
>> get_queryset
>>
>> This is the model.py:
>> from django.db import models
>> from scambiosdi import dataset
>> from utenti.models import Utenti
>>
>> class Fatture(models.Model):
>> utente = models.ForeignKey(Utenti, on_delete=models.CASCADE,
>> related_name="fatture")
>> tipo_fattura = models.IntegerField(choices=dataset.TIPOFATTURA)
>> denominazione = models.CharField(max_length=80)
>> numero = models.CharField(max_length=20)
>> data = models.DateField()
>> totale = models.DecimalField(max_digits=18, decimal_places=2,
>> default=0)
>> identificativo_sdi = models.CharField(max_length=50, blank=True)
>> percorso_file_originale = models.CharField(max_length=240, blank=True)
>> percorso_file_pulito = models.CharField(max_length=240, blank=True)
>>
>> class Meta():
>> verbose_name = 'Fattura'
>> verbose_name_plural = 'Fatture'
>>
>> def __str__(self):
>> return '{} {} {}'.format(self.denominazione, self.numero,
>> self.data)
>>
>>
>> This is the serializers.py:
>> from rest_framework import serializers
>> from fatture.models import Fatture
>>
>> class FatturaSerializer(serializers.ModelSerializer):
>> user = serializers.StringRelatedField(read_only=True)
>>
>> class Meta:
>> model = Fatture
>> fields = "__all__"
>>
>>
>>
>> And this is the views.py:
>> from rest_framework.viewsets import ModelViewSet
>> from rest_framework.permissions import IsAuthenticated
>> from fatture.models import Fatture
>> from fatture.api.serializers import FatturaSerializer
>>
>> class Fatture(ModelViewSet):
>> serializer_class = FatturaSerializer
>> permission_classes = [IsAuthenticated]
>>
>> def get_queryset(self):
>> queryset = Fatture.objects.all()
>> idfattura =  self.request.query_params.get("idfattura", None)
>> if idfattura is not None:
>> queryset = queryset.filter(id=idfattura)
>> return queryset
>>
>> If I change the Fatture class in this way works correctly:
>> class Fatture(ModelViewSet):
>> queryset = Fatture.objects.all()
>> serializer_class = FatturaSerializer
>> permission_classes = [IsAuthenticated]
>>
>>
>>
>>
>> Maurizio
>> --
>> 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/d1883242-9b48-a158-1e27-cd021c60fd85%40tiscali.it
>> 
>> .
>>
> --
> 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/CAFdc%3DxTYDDDb0yKme0Nsu-73ORhfpf9938%2B8nS3wFkZf6SxRcQ%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/4acfb8fc-d9f1-e9f6-efa1-1a93a65e1a7e%40tiscali.it
> 
> .
>

-- 
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.c

Re: Urgent help

2021-02-25 Thread neha bhurke
Can You help me with code .
*Regard,*
*Neha Bhurke*



On Thu, Feb 25, 2021 at 2:59 PM AMRIT SHAHI  wrote:

> use jquery
>
> On Thu, Feb 25, 2021 at 3:04 PM neha bhurke  wrote:
>
>> Hello Everyone
>>
>> I want to create a calendar base view as attached in the file .Please
>> help me
>>
>> --
>> 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/75810875-8b82-4fe6-aff4-8b7775715403n%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/CADydCv958av4aQnZMzrJqOjHz0TMEThbSNaTO5WUtHMp%3D_7-5w%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/CAEwf5Q06bKo2aA3P4FOQ6rLuhuW3XkpuNCKtx6ote51Yr0b4MA%40mail.gmail.com.


Re: Urgent help

2021-02-25 Thread AMRIT SHAHI
These videos might help you if you find helpful replay me, link attached
here
https://www.youtube.com/watch?v=siQVB7KbSPg&t=126s

On Thu, Feb 25, 2021 at 3:16 PM neha bhurke  wrote:

> Can You help me with code .
> *Regard,*
> *Neha Bhurke*
>
>
>
> On Thu, Feb 25, 2021 at 2:59 PM AMRIT SHAHI 
> wrote:
>
>> use jquery
>>
>> On Thu, Feb 25, 2021 at 3:04 PM neha bhurke 
>> wrote:
>>
>>> Hello Everyone
>>>
>>> I want to create a calendar base view as attached in the file .Please
>>> help me
>>>
>>> --
>>> 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/75810875-8b82-4fe6-aff4-8b7775715403n%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/CADydCv958av4aQnZMzrJqOjHz0TMEThbSNaTO5WUtHMp%3D_7-5w%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/CAEwf5Q06bKo2aA3P4FOQ6rLuhuW3XkpuNCKtx6ote51Yr0b4MA%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/CADydCv-VNvp2ps3y-1gUeV1u-aqeSf1cNKgWBBfjUXzW2xHjyA%40mail.gmail.com.


Re: Urgent help

2021-02-25 Thread Kasper Laudrup

On 25/02/2021 10.32, neha bhurke wrote:

Can You help me with code .


Try to do at least some minimal effort yourself.

The least you could do would be to spend some time on actually writing a 
question, explaining what you've done, where you're having issues etc.


The posts you're making here seems like you mostly just expect people to 
do your work for you for free without even bothering to explain what you 
actually need. That's extremely rude and doesn't really help you get the 
help you might be looking for as most people will simply ignore it.


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/cc7b5be4-bc15-27a1-da1d-85f460bd2286%40stacktrace.dk.


How to use .vue files in Django project

2021-02-25 Thread Salima Begum
Hi all,
I have developed a project by using django and for front end functionality
I am using vuejs so, how to use .vue files in django project in my project
.vue files are not accepting.

Thanks
~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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMSz6bkEFFhe_xs5e1VkQH%2BAOjD5d2q9svDz35MwD90GueA2ow%40mail.gmail.com.


requirements.txt

2021-02-25 Thread Spence Buzz
Hello
I'm new to django and I've just finished my first website.
After pushing my project to github, I decided to take it live through my 
host's cpanel.
At the "Run Pip Install" button I encounter the below error:

Error
ERROR: Could not install packages due to an OSError: [Errno 2] No such file 
or directory: '/tmp/build/80754af9/attrs_1604765588209/work'

my requirements.txt file looks like this:

asgiref==3.3.1
atomicwrites==1.4.0
attrs @ file:///tmp/build/80754af9/attrs_1604765588209/work
certifi==2020.12.5
chardet==4.0.0
colorama @ file:///tmp/build/80754af9/colorama_1607707115595/work
Django==3.1.5
djangorestframework==3.12.2
idna==2.10
importlib-metadata @ 
file:///tmp/build/80754af9/importlib-metadata_1602276842396/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ 
file:///tmp/build/80754af9/more-itertools_1613676688952/work
packaging @ file:///tmp/build/80754af9/packaging_1611952188834/work
pluggy==0.12.0
py @ file:///tmp/build/80754af9/py_1607971587848/work
pyparsing @ file:///home/linux1/recipes/ci/pyparsing_1610983426697/work
pytest==6.2.2
pytz==2020.5
requests==2.25.1
six @ file:///C:/ci/six_1605205404068/work
sqlparse==0.4.1
toml @ file:///tmp/build/80754af9/toml_1592853716807/work
urllib3==1.26.3
wincertstore==0.2
zipp @ file:///tmp/build/80754af9/zipp_1604001098328/work



Please 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/721f8f00-f630-4495-8e07-35da0de6292bn%40googlegroups.com.


Re: Urgent help

2021-02-25 Thread Nagaraju Singothu
Write a program to find the number ends with digit 3 in a array,

For example for a array input [6,83,12,54,71,44,293,43,66,13,72,42,163],
the output should be 83, 293, 43, 13, 163 - all numbers ends with digit 3.



You can choose any programming language to write this program
please send answer this question

On Thu 25 Feb, 2021, 2:50 PM neha bhurke,  wrote:

> Hello Everyone
>
> I want to create a calendar base view as attached in the file .Please help
> me
>
> --
> 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/75810875-8b82-4fe6-aff4-8b7775715403n%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/CAMyGuAZYRKVKYUUXUELv2YHFgAAY9vjsA_TmSHGW0QBVFtSuqQ%40mail.gmail.com.


Re: Urgent help

2021-02-25 Thread Kasper Laudrup

On 25/02/2021 16.59, Nagaraju Singothu wrote:

Write a program to find the number ends with digit 3 in a array,

For example for a array input [6,83,12,54,71,44,293,43,66,13,72,42,163], 
the output should be 83, 293, 43, 13, 163 - all numbers ends with digit 3.




It's probably just my lack of imagination, but I have a very hard time 
seeing how such an algorithm could end up as a calendar widget, but 
please do enlighten us.


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/04e4e878-7bdf-9aba-31a9-21aa8627f1c1%40stacktrace.dk.


Re: Urgent help

2021-02-25 Thread Anirudh choudhary
Hello everyone
 So The possible Solution
Could be

for python:

arr = 

for i in arr:
if i % 10 == 3:
  print(i)


for java

int[] arr = new int[10]; // Suppose you have 10 element in your array if
you want dynamic array use ArrayList

for(int i : arr){
   if(i % 10 == 3){
  System.out.println(i);

This Solution will Only work for the positive element.


Thank You



On Thu, Feb 25, 2021 at 9:44 PM Kasper Laudrup 
wrote:

> On 25/02/2021 16.59, Nagaraju Singothu wrote:
> > Write a program to find the number ends with digit 3 in a array,
> >
> > For example for a array input [6,83,12,54,71,44,293,43,66,13,72,42,163],
> > the output should be 83, 293, 43, 13, 163 - all numbers ends with digit
> 3.
> >
>
> It's probably just my lack of imagination, but I have a very hard time
> seeing how such an algorithm could end up as a calendar widget, but
> please do enlighten us.
>
> 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/04e4e878-7bdf-9aba-31a9-21aa8627f1c1%40stacktrace.dk
> .
>

-- 
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/CAL8_rkHaZhFvCF_ByJUEFEcgp-6EiLANRDSP0dcR_TjLUGDyBg%40mail.gmail.com.


How to protect Python Source Code

2021-02-25 Thread Kommula Kavitha
Hi Team,

We have application developed using Python. Want to know how to protect 
source code?

Thanks 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5bd34cb7-2593-4850-9431-e9b1c97b7a97n%40googlegroups.com.


How to use the PostGIS aggregate function ST_AsMVT with Django ORM

2021-02-25 Thread Stefan Brand
Hello everyone, 

this is a repost of 
https://stackoverflow.com/questions/65508291/how-to-use-the-postgis-aggregate-function-st-asmvt-with-django-orm
 (click for nice
formatting).

I'm providing the problem description below as well.

Thank you, for your kind consideration!

Best, Stefan




## Problem

I would like to create a Mapbox vector tile (MVT) in Django, using the
ORM.
In SQL (PostgreSQL, PostGIS) the SQL query looks like this for the tile
with zoom=8, x=137, y=83:

```sql
SELECT ST_AsMVT(tile)
FROM (SELECT id, ST_AsMVTGeom(geometry, ST_TileEnvelope(8, 137, 83)) AS
"mvt_geom"
  FROM geomodel
  WHERE ST_Intersects(geometry, ST_TileEnvelope(8, 137, 83))
 ) AS tile;
```

`ST_AsMVT` aggregates all rows and the output is a binary Field
(`bytea`) which can be sent as response.

As GeoDjango does not include the specific PostGIS functions I created
custom functions for them:

```python
class TileEnvelope(Func):
function = "ST_TileEnvelope"
arity = 3
output_field = models.GeometryField()


class AsMVTGeom(GeoFunc):
function = "ST_AsMVTGeom"
arity = 2
output_field = models.GeometryField()
```

I managed to create the inner subquery and it works:

```python
tile_envelope = TileEnvelope(8, 137, 83)
tile_geometries =
GeoModel.objects.filter(geometry__intersects=tile_envelope)
tile_geometries_mvt =
tile_geometries.annotate(mvt_geom=AsMVTGeom("geometry", tile_envelope))
tile_geometries_mvt = tile_geometries_mvt.values("id", "mvt_geom")

print(tile_geometries_mvt)
> > }, {'id': 166, 'mvt_geom': },...>
```

Now the last part is missing. I would like run `ST_AsMVT` on
`tile_geometries_mvt`:

```sql
SELECT ST_AsMVT(tile)
FROM 'tile_geometries_mvt' AS tile;
```

## Question

I tried to create a custom Aggregate function for [`ST_AsMVT`](
https://postgis.net/docs/manual-dev/ST_AsMVT.html), but was not
successful.
Normally aggregate functions like `MAX`, for example, expect one column
as input, whereas `ST_AsMVT` expects an `anyelement set row`.

**How can I turn `ST_AsMVT` into a Django `Aggregate` (similar to [this
SO question](https://stackoverflow.com/a/31337612/9778755))?**

I know, that I can use `raw_sql` queries in Django, but this question
is explicitly about solving it with the Django ORM.



-- 
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/14f86dc0f33ca429a53c31311dca1089e0b0e51f.camel%40eox.at.


Re: How to protect Python Source Code

2021-02-25 Thread Kasper Laudrup

On 25/02/2021 18.56, Kommula Kavitha wrote:
We have application developed using Python. Want to know how to protect 
source code?




Protect from what?

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/b4dd0788-88a4-959b-773d-4fa71e0e7a28%40stacktrace.dk.


Re: requirements.txt

2021-02-25 Thread Mike Dewhirst

On 25/02/2021 8:38 pm, Spence Buzz wrote:

Hello
I'm new to django and I've just finished my first website.
After pushing my project to github, I decided to take it live through 
my host's cpanel.

At the "Run Pip Install" button I encounter the below error:

Error
ERROR: Could not install packages due to an OSError: [Errno 2] No such 
file or directory: '/tmp/build/80754af9/attrs_1604765588209/work'


Pip is clever enough to install from many places but when using the 
requirements.txt approach, the named items must exist in the PyPI 
ecosystem or in a named local file.


I have never used attrs @ 
file:///tmp/build/80754af9/attrs_1604765588209/work in a requirements 
file because I didn't know about @ semantics in pip. It is new. To me.


If I encountered that problem I would replace such lines with just the 
name of the package and let pip go find them.




my requirements.txt file looks like this:

asgiref==3.3.1
atomicwrites==1.4.0
attrs @ file:///tmp/build/80754af9/attrs_1604765588209/work
certifi==2020.12.5
chardet==4.0.0
colorama @ file:///tmp/build/80754af9/colorama_1607707115595/work
Django==3.1.5
djangorestframework==3.12.2
idna==2.10
importlib-metadata @ 
file:///tmp/build/80754af9/importlib-metadata_1602276842396/work

iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ 
file:///tmp/build/80754af9/more-itertools_1613676688952/work

packaging @ file:///tmp/build/80754af9/packaging_1611952188834/work
pluggy==0.12.0
py @ file:///tmp/build/80754af9/py_1607971587848/work
pyparsing @ file:///home/linux1/recipes/ci/pyparsing_1610983426697/work
pytest==6.2.2
pytz==2020.5
requests==2.25.1
six @ file:///C:/ci/six_1605205404068/work
sqlparse==0.4.1
toml @ file:///tmp/build/80754af9/toml_1592853716807/work
urllib3==1.26.3
wincertstore==0.2
zipp @ file:///tmp/build/80754af9/zipp_1604001098328/work



Please 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/721f8f00-f630-4495-8e07-35da0de6292bn%40googlegroups.com 
.



--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/784ced4f-d1b1-a51e-2cba-5b8a11b87ea6%40dewhirst.com.au.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Django does't send email on the remote server

2021-02-25 Thread ule...@gmail.com
Any solution ?

Op dinsdag 23 februari 2021 om 18:42:42 UTC+1 schreef ule...@gmail.com:

> I have this same problem when i use smtp = out.telenet.be
> on my local server it works fine but when it use pythonanywhere.com i get 
> OSError: [Errno 101] Network is unreachable
>
> Op dinsdag 23 februari 2021 om 11:06:09 UTC+1 schreef soko...@gmail.com:
>
>> I am trying to send an email when a user fills out a form on my site.
>> Everything works on my local server, letters are sent and I am got them.
>> On a remote timeweb.com server with the same settings, letters are not 
>> sent.
>> Tried DEBUG = False and True
>> I tried different mail services: gmail, mail, yandex, timeweb mail.
>> In gmail included "Unreliable applications that have access to the 
>> account".
>> And here I included https://accounts.google.com/DisplayUnlockCaptcha
>> Nothing helps.
>>
>> Who knows, please tell me where to dig.
>>
>

-- 
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/671d189a-3fc3-426b-a579-18e8f08421b9n%40googlegroups.com.


Re: How to protect Python Source Code

2021-02-25 Thread Matthew Sargent
I think he wants to obfuscate the source.  I remember one project I worked on 
only released pyc files

Sent from my iPhone

> On Feb 25, 2021, at 2:22 PM, Kasper Laudrup  wrote:
> 
> On 25/02/2021 18.56, Kommula Kavitha wrote:
>> We have application developed using Python. Want to know how to protect 
>> source code?
> 
> Protect from what?
> 
> 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/b4dd0788-88a4-959b-773d-4fa71e0e7a28%40stacktrace.dk.

-- 
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/F6CD1F4C-A978-4B61-B201-6EEF6BBCD3D4%40gmail.com.


Re: Django does't send email on the remote server

2021-02-25 Thread Mike Dewhirst

On 26/02/2021 7:26 am, ule...@gmail.com wrote:

Any solution ?


You need a friendly sysadmin from your mail provider. Nowadays with so 
much spam and botnet activity there are  many email relay checks and 
hurdles to deal with. Your remote server has to be established with your 
provider and recognised as a bona fide sender.




Op dinsdag 23 februari 2021 om 18:42:42 UTC+1 schreef ule...@gmail.com:

I have this same problem when i use smtp = out.telenet.be

on my local server it works fine but when it use
pythonanywhere.com  i get OSError:
[Errno 101] Network is unreachable

Op dinsdag 23 februari 2021 om 11:06:09 UTC+1 schreef
soko...@gmail.com:

I am trying to send an email when a user fills out a form on
my site.
Everything works on my local server, letters are sent and I am
got them.
On a remote timeweb.com  server with the
same settings, letters are not sent.
Tried DEBUG = False and True
I tried different mail services: gmail, mail, yandex, timeweb
mail.
In gmail included "Unreliable applications that have access to
the account".
And here I included
https://accounts.google.com/DisplayUnlockCaptcha

Nothing helps.

Who knows, please tell me where to dig.

--
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/671d189a-3fc3-426b-a579-18e8f08421b9n%40googlegroups.com 
.



--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6af48bed-7623-d7ba-3b8c-af1a9b76abec%40dewhirst.com.au.


OpenPGP_signature
Description: OpenPGP digital signature


Re: How to protect Python Source Code

2021-02-25 Thread Larry Martell
On Thu, Feb 25, 2021 at 11:10 AM Kommula Kavitha
 wrote:
>
> Hi Team,
>
> We have application developed using Python. Want to know how to protect 
> source code?

There is pyinstaller (http://www.pyinstaller.org/). I tried to use it
4 or 5 years ago and it could not handle all the dependencies I had. I
have heard it's gotten better, but have not tried it since.

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


Re: Django does't send email on the remote server

2021-02-25 Thread ule...@gmail.com
i can send email when i use a local server 127.0.0.1:8000 but when i use 
pythonanywhere.com or eu.pythonanywhere.com 
i can not send mails

Op donderdag 25 februari 2021 om 21:44:53 UTC+1 schreef Mike Dewhirst:

> On 26/02/2021 7:26 am, ule...@gmail.com wrote:
> > Any solution ?
>
> You need a friendly sysadmin from your mail provider. Nowadays with so 
> much spam and botnet activity there are  many email relay checks and 
> hurdles to deal with. Your remote server has to be established with your 
> provider and recognised as a bona fide sender.
>
> >
> > Op dinsdag 23 februari 2021 om 18:42:42 UTC+1 schreef ule...@gmail.com:
> >
> > I have this same problem when i use smtp = out.telenet.be
> > 
> > on my local server it works fine but when it use
> > pythonanywhere.com  i get OSError:
> > [Errno 101] Network is unreachable
> >
> > Op dinsdag 23 februari 2021 om 11:06:09 UTC+1 schreef
> > soko...@gmail.com:
> >
> > I am trying to send an email when a user fills out a form on
> > my site.
> > Everything works on my local server, letters are sent and I am
> > got them.
> > On a remote timeweb.com  server with the
> > same settings, letters are not sent.
> > Tried DEBUG = False and True
> > I tried different mail services: gmail, mail, yandex, timeweb
> > mail.
> > In gmail included "Unreliable applications that have access to
> > the account".
> > And here I included
> > https://accounts.google.com/DisplayUnlockCaptcha
> > 
> > Nothing helps.
> >
> > Who knows, please tell me where to dig.
> >
> > -- 
> > 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/671d189a-3fc3-426b-a579-18e8f08421b9n%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/django-users/671d189a-3fc3-426b-a579-18e8f08421b9n%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/770dc183-2b85-493c-98cf-38c1e1602144n%40googlegroups.com.


Re: How to use .vue files in Django project

2021-02-25 Thread Ryan Nowakowski
On Thu, Feb 25, 2021 at 04:24:25PM +0530, Salima Begum wrote:
> I have developed a project by using django and for front end functionality
> I am using vuejs so, how to use .vue files in django project in my project
> .vue files are not accepting.

Can you provide more details like the error messages you're seeing?

You might need to use the Vue CLI[1] to transform the .vue files into .js
that you can then serve using Django's staticfiles.  There are several[3]
tutorials[4] online.

[1] 
https://vuejs.org/v2/guide/single-file-components.html#For-Users-New-to-Module-Build-Systems-in-JavaScript
[2] https://docs.djangoproject.com/en/3.1/howto/static-files/
[3] 
https://www.valentinog.com/blog/vue-django/#serving-the-single-page-with-django-in-production
[4] https://www.google.com/search?q=django+vuejs

-- 
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/20210225223441.GD19963%40fattuba.com.


Re: Question about models. test

2021-02-25 Thread Ryan Nowakowski
On Thu, Feb 25, 2021 at 01:06:00AM -0500, dupakoor kannan wrote:
> I have the following model
> 
> class Publication(models.Model):
> name = models.CharField(max_length=25, blank=True, null=False)
> publication_url = models.TextField(blank=True)

Once you clean out all the bad data, you might want to migrate from
TextField to URLField here.  That would help prevent data entry
mistakes assuming some of the errors are invalid URLs.

One other suggestion, even though you didn't ask :)  I'd rename
publication_url to just url since it's a part of the Publication model,
the "publication" part is redundant.

> and observed there are some inactive URLs on the production server (due to
> data entry mistakes). Is there any way I can write a test for the inactive
> URLs from the database (local copy)?.

I assume "inactive" here means that the URLs are returning HTTP 404.
For the test, you can run this in `python manage.py shell`:

import requests  # you'll need to pip install requests

for publication in Publication.objects.all():
response = requests.get(publication.publication_url)
try:
response.raise_for_status()
except requests.exceptions.HTTPError:
# do something here with your "inactive" URL
pass


If you want to make this easier to run in the future, I suggest making a
custom management command[1].  If you want this test to run anytime
Publication.save() is called, add a validator[2] to publication_url.

[1] https://docs.djangoproject.com/en/3.1/howto/custom-management-commands/
[2] https://docs.djangoproject.com/en/3.1/ref/validators/

-- 
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/20210225225044.GE19963%40fattuba.com.


Re: SVG, clipPath, listview django.

2021-02-25 Thread Ryan Nowakowski
On Wed, Feb 24, 2021 at 12:50:43AM -0800, Siarhei Siarhei wrote:
> Есть слайдер - файл "svg", картинки - "обтравка-clipPath"
> 
> 
> (image cont от 6 и более)
> Как же, это пропустить через - ListView?
> Надеюсь что кто то, с таким сталкивался...

(Google Translation from Russian below)
> There is a slider - "svg" file, pictures
> 
> (image cont from 6 or more)
> How, then, can this be passed through - ListView?
> I hope that someone came across this ... 

I'm assuming the "list" in ListView here is the list of 6 pictures.
Are the pictures stored in an ImageField of a Django model?  If not,
that's your first step since ListView is designed to display a list
of django model objects.

On the other hand, if the pictures are static as it appears above {%
static...
...then you'll instead need to create a for loop in your template to
display the 6 pictures:

{% comment %}
  from your view: context = {'picrange': range(6)}
{% endcomment %}
{% for picnum in picrange %}
  
{% endfor %}


This assumes that your images are sequential of the form
"index_[N]_radius.jpg"

Anyway, lots of assumptions here so replying with more detail would
defintely 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/20210225230744.GF19963%40fattuba.com.


Re: Log out all sessions for current user logged in

2021-02-25 Thread Ryan Nowakowski
On Wed, Feb 17, 2021 at 08:23:08AM +0530, Salima Begum wrote:
> Logout all sessions based on current user id and clear django sessions
> table based on user id. It is logging off all sessions.
> 
> ```
> # Logout all devices in account security page.
> def logoff_all(request):
> try:
> 
> # Filtering all session objects.
> session_query = Session.objects.all()
> 
> # Iterating session_query and fetching session key.
> for s in session_query:
> # Decoding session key and getting id from that.
> var_id = s.get_decoded().get('id')
> # Converting string to int data type.
> var_id_user = int(var_id)
> # Id from decode and logged in session id is same then
> # delete that session key from Session table from database.
> if var_id_user == request.session.get('id'):
> s.delete()
> messages.success(request, "All sessions are logged off
> successfully.")
> return HttpResponseRedirect("/home")
> except Exception as e:
> logging.error(e)
> print(e)
> return HttpResponseRedirect("/home")
> ```

I would call s.flush() instead of s.delete().  That's what Django's
normal logout function does[1].

[1] 
https://github.com/django/django/blob/a948d9df394aafded78d72b1daa785a0abfeab48/django/contrib/auth/__init__.py#L149

-- 
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/20210225232524.GG19963%40fattuba.com.


Re: Urgent help

2021-02-25 Thread neha bhurke
Thank u so much for your help 😊
*Regard,*
*Neha Bhurke*




On Thu, Feb 25, 2021 at 3:09 PM Kasper Laudrup 
wrote:

> On 25/02/2021 10.32, neha bhurke wrote:
> > Can You help me with code .
>
> Try to do at least some minimal effort yourself.
>
> The least you could do would be to spend some time on actually writing a
> question, explaining what you've done, where you're having issues etc.
>
> The posts you're making here seems like you mostly just expect people to
> do your work for you for free without even bothering to explain what you
> actually need. That's extremely rude and doesn't really help you get the
> help you might be looking for as most people will simply ignore it.
>
> 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/cc7b5be4-bc15-27a1-da1d-85f460bd2286%40stacktrace.dk
> .
>

-- 
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/CAEwf5Q1%2BhVz%3DUaTJemOgDTofxe%3DbH0iJU%3DmkF82OraQFdPmy-g%40mail.gmail.com.


Re: Urgent help

2021-02-25 Thread Jacob Greene
I would also like some urgent free work done for me. Please anyone. Drop
what you are doing and help me now.

On Thu, Feb 25, 2021, 9:26 PM neha bhurke  wrote:

> Thank u so much for your help 😊
> *Regard,*
> *Neha Bhurke*
>
>
>
>
> On Thu, Feb 25, 2021 at 3:09 PM Kasper Laudrup 
> wrote:
>
>> On 25/02/2021 10.32, neha bhurke wrote:
>> > Can You help me with code .
>>
>> Try to do at least some minimal effort yourself.
>>
>> The least you could do would be to spend some time on actually writing a
>> question, explaining what you've done, where you're having issues etc.
>>
>> The posts you're making here seems like you mostly just expect people to
>> do your work for you for free without even bothering to explain what you
>> actually need. That's extremely rude and doesn't really help you get the
>> help you might be looking for as most people will simply ignore it.
>>
>> 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/cc7b5be4-bc15-27a1-da1d-85f460bd2286%40stacktrace.dk
>> .
>>
> --
> 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/CAEwf5Q1%2BhVz%3DUaTJemOgDTofxe%3DbH0iJU%3DmkF82OraQFdPmy-g%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/CAF-Y%3De7uOt%2BW4ud9W5ccUvvbuBEE-wReXxyUS2hgxGh_LYZSHQ%40mail.gmail.com.


Re: Log out all sessions for current user logged in

2021-02-25 Thread Salima Begum
Logout all sessions belong to logged in user Can you please how can I
achieve this?

Thanks
~salima

On Fri, Feb 26, 2021 at 4:56 AM Ryan Nowakowski  wrote:

> On Wed, Feb 17, 2021 at 08:23:08AM +0530, Salima Begum wrote:
> > Logout all sessions based on current user id and clear django sessions
> > table based on user id. It is logging off all sessions.
> >
> > ```
> > # Logout all devices in account security page.
> > def logoff_all(request):
> > try:
> >
> > # Filtering all session objects.
> > session_query = Session.objects.all()
> >
> > # Iterating session_query and fetching session key.
> > for s in session_query:
> > # Decoding session key and getting id from that.
> > var_id = s.get_decoded().get('id')
> > # Converting string to int data type.
> > var_id_user = int(var_id)
> > # Id from decode and logged in session id is same then
> > # delete that session key from Session table from database.
> > if var_id_user == request.session.get('id'):
> > s.delete()
> > messages.success(request, "All sessions are logged off
> > successfully.")
> > return HttpResponseRedirect("/home")
> > except Exception as e:
> > logging.error(e)
> > print(e)
> > return HttpResponseRedirect("/home")
> > ```
>
> I would call s.flush() instead of s.delete().  That's what Django's
> normal logout function does[1].
>
> [1]
> https://github.com/django/django/blob/a948d9df394aafded78d72b1daa785a0abfeab48/django/contrib/auth/__init__.py#L149
>
> --
> 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/20210225232524.GG19963%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMSz6bnC0q08HP%3DNMxXqMd82UVvv9a_U2_tvUukMJYe5p5KRAw%40mail.gmail.com.


Re: Urgent help

2021-02-25 Thread AMRIT SHAHI
did that video helped you or not

On Fri, Feb 26, 2021 at 9:11 AM neha bhurke  wrote:

> Thank u so much for your help 😊
> *Regard,*
> *Neha Bhurke*
>
>
>
>
> On Thu, Feb 25, 2021 at 3:09 PM Kasper Laudrup 
> wrote:
>
>> On 25/02/2021 10.32, neha bhurke wrote:
>> > Can You help me with code .
>>
>> Try to do at least some minimal effort yourself.
>>
>> The least you could do would be to spend some time on actually writing a
>> question, explaining what you've done, where you're having issues etc.
>>
>> The posts you're making here seems like you mostly just expect people to
>> do your work for you for free without even bothering to explain what you
>> actually need. That's extremely rude and doesn't really help you get the
>> help you might be looking for as most people will simply ignore it.
>>
>> 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/cc7b5be4-bc15-27a1-da1d-85f460bd2286%40stacktrace.dk
>> .
>>
> --
> 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/CAEwf5Q1%2BhVz%3DUaTJemOgDTofxe%3DbH0iJU%3DmkF82OraQFdPmy-g%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/CADydCv8if5xJy%2Bq-AXP9mn%3DH_-%3DODo0b-enZFKRVsHPG3e8bMg%40mail.gmail.com.


Re: SVG, clipPath, listview django.

2021-02-25 Thread Siarhei Siarhei
все упирается в: (path id=), (clipPath id=) - к каждому (image)... Я, уже 
отказался от варианта в "svg" и сделал в "js"


http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; x="0px" y="0px"
viewBox="0 0 1050.2747803 1050.2747803" style="enable-background:new 0 0 
1050.2747803 1050.2747803;" xml:space="preserve">












































































































пятница, 26 февраля 2021 г. в 02:08:29 UTC+3, Ryan Nowakowski: 

> On Wed, Feb 24, 2021 at 12:50:43AM -0800, Siarhei Siarhei wrote:
> > Есть слайдер - файл "svg", картинки - "обтравка-clipPath"
> > 
> > 
> > (image cont от 6 и более)
> > Как же, это пропустить через - ListView?
> > Надеюсь что кто то, с таким сталкивался...
>
> (Google Translation from Russian below)
> > There is a slider - "svg" file, pictures
> > 
> > (image cont from 6 or more)
> > How, then, can this be passed through - ListView?
> > I hope that someone came across this ... 
>
> I'm assuming the "list" in ListView here is the list of 6 pictures.
> Are the pictures stored in an ImageField of a Django model? If not,
> that's your first step since ListView is designed to display a list
> of django model objects.
>
> On the other hand, if the pictures are static as it appears above {%
> static...
> ...then you'll instead need to create a for loop in your template to
> display the 6 pictures:
>
> {% comment %}
> from your view: context = {'picrange': range(6)}
> {% endcomment %}
> {% for picnum in picrange %}
> 
> {% endfor %}
>
>
> This assumes that your images are sequential of the form
> "index_[N]_radius.jpg"
>
> Anyway, lots of assumptions here so replying with more detail would
> defintely 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/b29f58eb-084f-486f-b6d3-04a842f695den%40googlegroups.com.


Re: Urgent help

2021-02-25 Thread Madhav Nandan
Yeah kasper. I totally agree with you. If she could have attached
repository link and where she was facing issues. I could have suggested
improvement in her code.

On Thu, Feb 25, 2021, 3:08 PM Kasper Laudrup  wrote:

> On 25/02/2021 10.32, neha bhurke wrote:
> > Can You help me with code .
>
> Try to do at least some minimal effort yourself.
>
> The least you could do would be to spend some time on actually writing a
> question, explaining what you've done, where you're having issues etc.
>
> The posts you're making here seems like you mostly just expect people to
> do your work for you for free without even bothering to explain what you
> actually need. That's extremely rude and doesn't really help you get the
> help you might be looking for as most people will simply ignore it.
>
> 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/cc7b5be4-bc15-27a1-da1d-85f460bd2286%40stacktrace.dk
> .
>

-- 
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/CAGXYL6%2B8sxKPD%3D45QbQJ88uscxyj-%3DmnktVkJ0vepd%3DjRHJJng%40mail.gmail.com.