Re: django-allauth facebook doesn't collect more information other than "name" and "id"

2017-11-27 Thread Shahab Emami
hello i have the same problem but for the google. this is my settings: SOCIALACCOUNT_PROVIDERS = { 'google': { 'SCOPE': ['email', 'https://www.googleapis.com/auth/user.birthday.read', 'https://www.googleapis

Re: django-allauth facebook doesn't collect more information other than "name" and "id"

2017-11-28 Thread Shahab Emami
no one is here to answer my question? On Monday, November 2, 2015 at 3:57:32 PM UTC+3:30, Saleem Jaffer wrote: > > I tried adding facebook login to my application using django-allauth. > Unfortunately the only fields that get captured are "name" and "id". All > the other information is not captu

django sample projects

2017-03-27 Thread Shahab Emami
hello i have question: where can i find a few django sample projects? i have seen a few tutorials and courses but i don't now how a real project should be. then i need to see a few sample django codes . i now there are a lot of project in github but

Re: Channels - get online users

2017-03-27 Thread Shahab Emami
don't you have any sample project? -- 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 t

Re: django sample projects

2017-03-27 Thread Shahab Emami
i can set up a project. i want to see a real source code of a project. i can create a simple project . i need an example project. for example a source of an online market or anything else -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsub

Re: django sample projects

2017-03-27 Thread Shahab Emami
i think if i study the code of other programmers it can help me a lot. i think one of the best way for me to be a real programmer is watching code of others. an integrated project that do something, i need that. ready source is big step for me that takes me a few years next. -- You received th

why i cant always

2017-04-04 Thread shahab emami
hello i could never install an app from github i get errors all the time i do all of the installation process step by step but i cant at the end can anybody help me in this? for example i wanted to use this app in my project: https://github.com/praekelt/django-likes after 4 hours i got nothing e

Re: why i cant always

2017-04-05 Thread shahab emami
yes i installed it . with this command: python -m pip install django-secretballot I have a question can you install this app on for yours? because I believe if someone else can install this app for his project i can do it too. thanks -- You received this message because you are subscribed to

add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread shahab emami
hello i have a simple question please help me if you can i want to install this package on my project: https://pypi.python.org/pypi/django-secretballot/ I am doing the installation step by step but after adding 'secretballot', to my installed_apps It says: * add a secretballot middleware to

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread shahab emami
7 April 2017 15:46:36 UTC+1, shahab emami wrote: >> >> hello >> i have a simple question >> please help me if you can >> >> >> i want to install this package on my project: >> >> https://pypi.python.org/pypi/django-secretballot/ >>

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread shahab emami
nobody can help me in this? what i have to add to middleware class? On Friday, April 7, 2017 at 7:16:36 PM UTC+4:30, shahab emami wrote: > > hello > i have a simple question > please help me if you can > > > i want to install this package on my project: > > https://

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread shahab emami
On Saturday, April 8, 2017 at 1:59:20 AM UTC+4:30, shahab emami wrote: > > tanks > but my problem is: > I don't know where middleware section is. > i looked for middleware section in the app but i couldn't find anything. > that's why i asked that question here

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread shahab emami
I knew where middleware is myself. if you read my first post you will see that . my question is: what i have to add to middleware? On Friday, April 7, 2017 at 7:16:36 PM UTC+4:30, shahab emami wrote: > > hello > i have a simple question > please help me if you can > > > i

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-08 Thread shahab emami
other previous middleware configurations > > # Add the below line, on final of MIDDLEWARE variable in your > settings.py > 'secretballot.middleware.SecretBallotIpUseragentMiddleware', > ] > > > I hope this has helped. Good studies :-) > > On Sat, Apr 8

safe perfect and reliable app for verification email

2017-04-15 Thread shahab emami
hello I want to verify user's email while user is registering . can you introduce me a few safe perfect and reliable app for verification email? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

method's name in MIDDLEWARE

2017-04-15 Thread shahab emami
hello i want to learn MIDDLEWARE in django . i created this: class SimpleMiddleware(object): def process_request(self, request): print("") and i added in settings.py. then as you probably know i see "%%" in console with every click. that is the exact thing t

send email with django

2017-04-18 Thread shahab emami
hello i want to send email using django. i used to send email with pour python before but now i can't do that in django. i have search about this and i have seen some tutorials on youtube in last two days but i cant do this . this is in my settings.py : EMAIL_USE_TLS = True EMAIL_HOST = 'smt

Re: send email with django

2017-04-19 Thread shahab emami
ail provider or with a paid account. > > Regards, > > A. > > Antonis Christofideshttp://djangodeployment.com > > On 2017-04-19 00:25, shahab emami wrote: > > hello > > i want to send email using django. i used to send email with pour python > before but now i can't do

Re: send email with django

2017-04-19 Thread shahab emami
.com ' >> >> Hope this helps! >> >> Original Message >> Subject: Re: send email with django >> Local Time: April 19, 2017 7:00 AM >> UTC Time: April 19, 2017 11:00 AM >> From: red...@gmail.com >> To: django...@googlegroups.com

Re: send email with django

2017-04-19 Thread shahab emami
On Thursday, April 20, 2017 at 1:38:53 AM UTC+4:30, suabiut wrote: > > I am also using sendgrid it works very well. > > On Thu, Apr 20, 2017 at 6:56 AM, shahab emami > wrote: > >> but it's free for 30 days. what i have to do after 30 days? >> >> On Wed

SelectDateWidget dosent work

2017-04-24 Thread shahab emami
hello i have a birth date filed in my model this: birth_date = models.DateField (blank=True,null=True) my forms.py i have this: class ProfileForm(ModelForm): birth_date= forms.DateField(widget=forms.SelectDateWidget) class Meta: model =

django formset

2017-04-28 Thread shahab emami
hello i search for my question on google and this group by i couldn't find the answer. maybe I am not a good searcher.D i have a formset. there is a field for birth date in my form then as you know there are a few birth date field in my formset. I use this jquery plugin to add form dynamically:

Re: Where is django-admin?

2017-04-28 Thread shahab emami
then you have to open your command line in the same path that django-admin.py is. On Friday, April 28, 2017 at 3:39:04 PM UTC+4:30, Pelle Pälsänger wrote: > > Yes I know where django-admin.py is. I > put C:\Users\stig\djangogirls\myvenv\Scripts in my path. > BR, > Stig > > > > Den torsdag 27 a

Re: NoReverseMatch

2017-04-28 Thread shahab emami
hi this is for the id. your url must be like this: url(r'^events/((?P\d+))/delete/$', views.delete_event, name= 'delete_event'), you also need to give an amount in your template to the id: action="{% url 'cal:delete_event' id=an_event_id %}"> On Saturday, April 29, 2017 at 1:08:46 AM UTC

Re: django formset

2017-04-29 Thread shahab emami
somebody had my problem before: https://github.com/elo80ka/django-dynamic-formset/issues/108 please tell me something about this problem i cant solve if yet On Friday, April 28, 2017 at 3:45:10 PM UTC+4:30, shahab emami wrote: > > hello > i search for my question on google and this g

django-select2-forms

2017-05-02 Thread shahab emami
hello I want to use django-select2-forms in my project . this package is here: https://pypi.python.org/pypi/django-select2-forms/2.0.1 I followed the exact instructions but It does not install here is things I did: 1: pip install django-select2-forms I can see select2 has been ins

what kind of question i can ask here?

2017-05-13 Thread shahab emami
hello when i get a problem in my code i search for it in google for an hour if i couldn't find the answer then i ask my question here. is this good? I mean can i ask my programming questions here? or this group is just for bugs and stuff like that? thanks -- You received this message because y

Re: what kind of question i can ask here?

2017-05-13 Thread shahab emami
thanks every time that i wanted to ask question i was worried . i thought maybe this is simple question and i don't have to ask this in this professional group On Saturday, May 13, 2017 at 5:19:14 PM UTC+4:30, shahab emami wrote: > > hello > > when i get a problem in my code i

model choice field

2017-06-22 Thread shahab emami
hello i have a model choice field like this: LEVEL_CHOICES = [ > ('1', 'one'), > ('2', 'two'), > ('3', 'three'), > ] > > but when i select from database and say: {{object.level}} it shows me 1 or 2 or 3 but i wanted to be one or two or three how can i do that? i

django JsonResponse

2017-06-28 Thread shahab emami
hello i want to use ajax in my django project. i have no problem with writing ajax method or url. my problem is in my django view. i send a pk from template with ajax and in my view: def edit(request): pk = request.GET.get('pk' or None) instance = models.MyModel.objects.get(pk=pk

save cropped image with PIL to database

2017-07-03 Thread shahab emami
hello i have a question and i cant find answer with search. i want to save cropped image in database then : this is my model: class Photo(models.Model): file= models.ImageField(upload_to='%Y/%m/%d', blank=True,null=True) i have a form then user can select image and send to view lik

Re: save cropped image with PIL to database

2017-07-04 Thread shahab emami
tp://easy-thumbnails.readthedocs.io/en/2.1/). It uses pillow behind the > scenes and it is very easy to do the cropping and everything that you need > and you don't need to write it yourself :-) > > Regards, > > Andréas > > 2017-07-03 12:09 GMT+02:00 shahab emami > > : > >> hell