Re: How to send e-mail asynchronously

2016-05-28 Thread Luis Zárate
I wrote something for send async notification that works with celery https://github.com/luisza/async_notifications There is a demo project and some ideas about how to implement it. If you like you can use it and if you want to extend do it and let me know for incorporate you're code. El

Re: UpdateView - problem with change model

2016-05-28 Thread Akhil Lawrence
Check the primary key you are passing in the URL while calling the view. Key of PersonalInfo need not to be the same as that of MySiteUser On Saturday, 28 May 2016 23:44:00 UTC+5:30, Dariusz Mysior wrote: > > I have that problem when I change model in view class EditView on > PersonalInfo I

Re: How to send e-mail asynchronously

2016-05-28 Thread Akhil Lawrence
You can create a celery task fro this. See this link for more details. http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html On Saturday, 28 May 2016 19:51:49 UTC+5:30, 2me wrote: > > I have to implement a thread in order to test if (temperature>maximmum) it > sends an

UpdateView - problem with change model

2016-05-28 Thread Dariusz Mysior
I have that problem when I change model in view class EditView on PersonalInfo I have response that "Not found personal info that meet your criteria" when I have model = MysiteUser than it is ok but when I change on model = PersonalInfo than it's a problem. views.py from

Re: Model inheritance with constraints

2016-05-28 Thread Akhil Lawrence
Its already addressed. You can simply run ./manage.py makemigrations and ./manage.py migrate it will create migrations only for MyAnotherFunModel On Thursday, 26 May 2016 01:02:08 UTC+5:30, Arnab Banerji wrote: > > Hi all, > > I currently have a set of models associated with my Django app,

Re: I am not able to run the following code

2016-05-28 Thread Akhil Lawrence
Hi Madhusudhana, When you try to create the instance of Template, its looking for settings that is why you are getting error. *You cannot play in python shell without creating django project* Create the project and use django shell. The following code snippets may help you in creating project

Re: why blank page when load a list or dictionary into web to display a list

2016-05-28 Thread Akhil Lawrence
Dude, You need to make the following changes. 1. you need to pass a dictionary as the context in your views return render(request, 'approval.html', {'posts': posts}) 2. the prefer the posts to be list of dict change posts = {} ... LL =

How to send e-mail asynchronously

2016-05-28 Thread 2me
I have to implement a thread in order to test if (temperature>maximmum) it sends an email . I have done a python file which reads temperature and as a begining I have tested an aplication that sends email when I access to its URL . BUt I have no idea how to this into a thread !!! please help

Re: EDMS (Electronic Document Management System )

2016-05-28 Thread Akhil Lawrence
If you are going to work with documents try mongodb On Saturday, 28 May 2016 01:44:57 UTC+5:30, Jorge Maciel wrote: > > Hi, I'm developing a EDMS (Electronic Document Management System ) for > small business. I am in doubt about the infrastructure should I use to > create this system . I think

Re: How to implement a ManyToManyField with a View

2016-05-28 Thread Akhil Lawrence
Hi Bruce, You need to call `contact.relationship.all` instead of `contact.relationship_set.all` We use `_set.all` when we want to retrieve the related items from the master/parent object (Relationship in your case). So if you want to retrieve all contacts under a relationship you can use

Re: How to implement a ManyToManyField with a View

2016-05-28 Thread Daniel Roseman
On Thursday, 26 May 2016 18:43:00 UTC+1, Bruce Whealton wrote: > > Hello all, > I started a similar thread but couldn't find it. > I was creating a Personal Information Management Project, with Project > name mypim. My first app was a contacts app. > This has two Class based Models in the

Errors in runserver command: Django 1.9.6

2016-05-28 Thread palansh agarwal
Hello all, I was trying to setup my django project on amazon ec2 instance. When I do "python manage.py runserver 0.0.0.0:8000" and try to access the website from my browser, I get the following stack trace: Traceback (most recent call last): > File "/usr/lib/python2.7/wsgiref/handlers.py",