Re: Invite to join WhatsApp group

2022-08-07 Thread Saif
Please do not spam this email

Admins please look into it
Please remove him from google groups

On Fri, 5 Aug 2022, 21:17 Satyajit Barik, 
wrote:

> Hey,
>
> Join in Whatsapp python group using the below link to get solve your
> Python and Django related problems.
>
> https://chat.whatsapp.com/Bq2jcxLJVG50v9Wbkvz6Vy
>
> [Membership benefits] Here are some great perks you get for becoming a
> member:
> * Ask your python & django related problems: get quick possible answer.
> * Friendly environment: you can learn python & django from core.
> * Daily Python Assignment exercise.
>
>
> --
> 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/CANd-%2BoCUxfPQCK2eUPM2_ioKZUoN4UV6ziLThxJYwHHARf%3D3pw%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/CAOFieOCWrHvNiOGkcyMdTPHgCc%2BpwSTxMV%2B1JC5uB0FsecP7xA%40mail.gmail.com.


Multiple Primary Key composed by a Foreign key

2013-06-20 Thread Saif Jerbi
Hi,
I would like to implement multicolumns primary keys in django, i need to 
implement a UserPro model that allow that i have a multiple users who have 
the same username but belong to different Entreprise
this is my code 

#models.py

from django.db import models
from django.db.models.signals import post_save
from django.contrib.auth.models import User
class Provider(models.Model):
name = models.CharField(max_length=250)
adress = models.CharField(max_length=250)

def __unicode__(self):
return '%s %s' % (self.name, self.adress)



class Societe(models.Model):

name = models.CharField(max_length=250)
provider = models.ForeignKey(Provider)

def __unicode__(self):
return '%s -- %s' % (self.name, self.provider.name)

class UserPro(models.Model):

user = models.OneToOneField(User,primary_key=True)
adress = models.CharField(max_length=250)
telephone = models.CharField(max_length=250)
societe = models.ForeignKey(Societe,primary_key=True)
def __unicode__(self):
return '%s' % (self.user.first_name)

#admin.py

from django.contrib import admin
from geo.models import *

admin.site.register(UserPro)
admin.site.register(Societe)
admin.site.register(Provider)


-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Django Signal DataBase Change on Template

2013-08-01 Thread Saif Jerbi


I'm building a GPS Tracking System using Django, i should have a grid on my 
template that display real time information of cars (position,vitesse, 
temperature...). GPS send data to Postgres DataBase via a module that parse 
Data and saved it in specific table. What i need is how to make my Web App 
display data in real time? (when a row is inserted in Db, how can i display 
it in grid)

i tried this package https://pypi.python.org/pypi/django-db-signals/0.1.1, 
but my DataParser is external from my django web app, it work independently 
from other side

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django external libraries

2019-04-07 Thread Asif Saif Uddin
try to make MIDDLEWARE_CLASSES to MIDDLEWARE first, you didn't mentioned 
the version of django and the extension you installed.

On Sunday, April 7, 2019 at 3:58:18 PM UTC+6, Saeed Pooladzadeh wrote:
>
> Hello
>
> I've added an external library in django. I have installed in installed 
> apps but when I try to migrate the model I keep getting this error:
>
> ERRORS:
> ?: (admin.E408) 'django.contrib.auth.middleware.AuthenticationMiddleware' 
> must be in MIDDLEWARE in order to use the admin application.
> ?: (admin.E409) 'django.contrib.messages.middleware.MessageMiddleware' 
> must be in MIDDLEWARE in order to use the admin application.
> The interactive Python process has exited.
> The interactive Python process has exited.
>
> and my middleware is this:
>
> MIDDLEWARE_CLASSES = [
> 'django.middleware.security.SecurityMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware'
> ]
>
> Also my IDE is visual studio.
>
> Please inform me.
>
> Saeed
>
>
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/26cdf25a-0aa3-4803-a0a8-541ee9501201%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django saleor postgresql hstore issue

2019-04-10 Thread Asif Saif Uddin
facing this error even after creating hstore extension from pg shell and 
generated empty migrations for hstore:

 line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
  File 
"/usr/local/lib/python3.6/dist-packages/django/db/backends/utils.py", line 
84, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: permission denied to create extension 
"hstore"
HINT:  Must be superuser to create this extension.


the initial empty migration was modified to the following and regenerated. 
face error while migrating. created admin super user too. but still not 
working

# Generated by Django 2.2 on 2019-04-11 03:42

from django.db import migrations

from django.contrib.postgres.operations import HStoreExtension


class Migration(migrations.Migration):
dependencies = [
]

operations = [
HStoreExtension(),
]

 db settings; saleor and postgres both user permission granted to saleor db 
from pg shell.
DATABASES = {
'default': dj_database_url.config(
default='postgres://saleor:saleor@localhost:5432/saleor',
conn_max_age=600)}

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/22b3432d-6757-420a-b829-eababac9768d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django saleor postgresql hstore issue

2019-04-10 Thread Asif Saif Uddin
Fixed using this 
https://stackoverflow.com/questions/10757431/postgres-upgrade-a-user-to-be-a-superuser

On Thursday, April 11, 2019 at 10:05:58 AM UTC+6, Asif Saif Uddin wrote:
>
> facing this error even after creating hstore extension from pg shell and 
> generated empty migrations for hstore:
>
>  line 89, in __exit__
> raise dj_exc_value.with_traceback(traceback) from exc_value
>   File 
> "/usr/local/lib/python3.6/dist-packages/django/db/backends/utils.py", line 
> 84, in _execute
> return self.cursor.execute(sql, params)
> django.db.utils.ProgrammingError: permission denied to create extension 
> "hstore"
> HINT:  Must be superuser to create this extension.
>
>
> the initial empty migration was modified to the following and regenerated. 
> face error while migrating. created admin super user too. but still not 
> working
>
> # Generated by Django 2.2 on 2019-04-11 03:42
>
> from django.db import migrations
>
> from django.contrib.postgres.operations import HStoreExtension
>
>
> class Migration(migrations.Migration):
> dependencies = [
> ]
>
> operations = [
> HStoreExtension(),
> ]
>
>  db settings; saleor and postgres both user permission granted to saleor 
> db from pg shell.
> DATABASES = {
> 'default': dj_database_url.config(
> default='postgres://saleor:saleor@localhost:5432/saleor',
> conn_max_age=600)}
>
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ee3ee0b7-0e4d-492a-97ff-66cab875ff2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django ORM Model meta internal API to current API update

2020-08-18 Thread Asif Saif Uddin

Hi,
I have got an old project of django 1.8 which use codes like

links = [rel.get_accessor_name() for rel in 
self._meta.get_all_related_objects()]

How would I upgrade this code snippets to django 2.2 LTS?

TIA

-- 
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/c408d424-7c94-43de-beae-4071d424e2ecn%40googlegroups.com.


Re: Django ORM Model meta internal API to current API update

2020-09-07 Thread Asif Saif Uddin
any help? I can share the full function

On Wednesday, August 19, 2020 at 3:42:09 AM UTC+6 vickkymb...@gmail.com 
wrote:

> I don't bro i just started new in Django
>
> Victor
>
> On Tue, Aug 18, 2020, 3:46 PM Asif Saif Uddin  wrote:
>
>>
>> Hi,
>> I have got an old project of django 1.8 which use codes like
>>
>> links = [rel.get_accessor_name() for rel in 
>> self._meta.get_all_related_objects()]
>>
>> How would I upgrade this code snippets to django 2.2 LTS?
>>
>> TIA
>>
>> -- 
>> 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/c408d424-7c94-43de-beae-4071d424e2ecn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/c408d424-7c94-43de-beae-4071d424e2ecn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e83b7021-3158-41b2-b48f-33d9f45270a6n%40googlegroups.com.


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

2020-12-01 Thread Saif Ul Islam
Hello! 

This is really interesting - it's always fun to do work in teams and meet 
new people with similar skill sets and interests. I can't commit as a 
always available, but I'm happy to contribute whatever I can for some 
hobbyist projects, ideas.
About me, I'm a Undergrad at FAST NUCES, Karachi right now pursuing 
Bachelors in Computer Science. I have some experience with Data Science and 
Web Dev, Javascript and Python, React, Django, ExpressJS, heroku, vercel, 
netlify, Messenger API etc. Here' my github, https://github.com/rubix982, 
and my LinkedIn, https://www.linkedin.com/in/saif-ul-islam-93786b187/, if 
you want to get in contact with me,

Thanks! 

Hope to see amazing minds from this thread soon. 

Ciao! 

On Tuesday, December 1, 2020 at 7:17:41 PM UTC+5 vamshi...@gmail.com wrote:

> hi
> I am intrested 
>
> On Tuesday, December 1, 2020 at 7:43:58 PM UTC+5:30 Mahendra Yadav wrote:
>
>> i am intersted
>> Mahendra A
>>
>>
>> On Tue, Dec 1, 2020 at 6:47 AM Monaco investment  
>> wrote:
>>
>>> I am also interested.
>>>
>>> Get Outlook for Android <https://aka.ms/ghei36>
>>>
>>> --
>>> *From:* django...@googlegroups.com  on 
>>> behalf of boyua...@gmail.com 
>>> *Sent:* Monday, November 30, 2020 7:35:31 PM
>>> *To:* django...@googlegroups.com 
>>> *Subject:* Re: Looking to join a team in a Django Project to gain 
>>> Experience 
>>>  
>>> I'm also interested.
>>>
>>> On Monday, November 30, 2020, 07:01:48 AM PST, Md Reyajuddin <
>>> md.reya...@gmail.com> wrote: 
>>>
>>>
>>> hi,
>>>
>>> I am interested.
>>>
>>> On Tue, Sep 22, 2020 at 6:09 AM ahmed.he...@gmail.com <
>>> ahmed.he...@gmail.com> wrote:
>>>
>>> Hi all, 
>>>
>>> I am looking for a team of developers to join them in a project to 
>>> enhance my skills and add to my portfolio.  I am available part time.
>>>
>>> Thanks
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/1588368606.1796518.1606761331585%40mail.yahoo.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/1588368606.1796518.1606761331585%40mail.yahoo.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/AM6PR03MB5957E1FC2A5754B8AE3E0746A7F40%40AM6PR03MB5957.eurprd03.prod.outlook.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/AM6PR03MB5957E1FC2A5754B8AE3E0746A7F40%40AM6PR03MB5957.eurprd03.prod.outlook.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/05bf20b0-6250-42ad-8a17-e22603141a04n%40googlegroups.com.