Re: How to define new permission

2009-08-07 Thread phan sarak
Ban co the lam dieu do mot cach de dang .Django da co phan Admin de ban quan li dieu do. theo cau hoi cua ban.la ban da dung admin cua django.ban chi can vao phan quan li user roi ban tao theo user .va danh phan permission cho tung user ma ban vua tao. chuc ban thanh cong. On Fri, Aug 7, 2009

Re: Problem with uploading a ImageField through ModelForm

2009-04-28 Thread phan sarak
please make sure you have corrected like this *setting.py* MEDIA_ROOT = '*site_media*' #make sure your have it already!! and it's your problems also TEMPLATE_DIRS = ( 'templates', ) *models.py* = from django.db import models class photos(models.Mode

Os.path in window and linux help?

2009-05-03 Thread phan sarak
My structure project -- myprjetct -myapp -site_media -images -template -report -employee_report_pdf.html this is the def in my view.py # retur

Re: django.core.email problem

2010-01-12 Thread phan sarak
Try look at http://www.packtpub.com/article/friends-via-email-social-web-application-django-1.0 On Wed, Jan 13, 2010 at 8:59 AM, vlk wrote: > I use an smtp server that requires smtplib.SMTP_SSL class to be used > for email sending. The usual EMAIL_USE_TSL=True setting doesn`t work. > > Changing