Re: settings.py "DEBUG = False" doesn't work why?

2013-06-13 Thread Russell Keith-Magee
If you want to see proof that mail is being sent, and you don't want to go to the trouble of setting up a mail server on your development box, you can use an alternate mail backend -- the console backend [1] will dump all emails to the console, and the file backend [2] will write all emails to a fi

Re: Class Based CreateView with foreign key question

2013-06-13 Thread Jason Arnst-Goodrich
I should also clarify just in case anyone else runs into the same problem in the future: My form_valid() was not working correctly because I had my form definition excluding a (required) field so it would NEVER be able to save my model under any circumstance. def form_valid(self, form):

Re: Class Based CreateView with foreign key question

2013-06-13 Thread Jason Arnst-Goodrich
That reassures me then. In the past I stayed away from the generic class based views and in my current project I'm using nothing but them. Everything is working but it's not clear by looking at it *why* it works. There might be a little too much magic happening for my liking but I'm going to s

Re: Class Based CreateView with foreign key question

2013-06-13 Thread Dan Gentry
I use the same pattern in my application, and it works just fine. def dispatch(self, *args, **kwargs): self.tc = get_object_or_404(TrainingClass, pk=kwargs.get('class_id', None)) return super(TrainingScheduleCreateView, self).dispatch(*args, **kwargs) def form_vali

Re: Django Basics

2013-06-13 Thread Rafael E. Ferrero
you can perfectly do what you require without a database access, just read your dictionary on a view on views.py. If you need a database for small projects you can do your model on a sqlite database. you can start with google... are tons of tutorials. In www.djangoproject.com you have a nice begi

Re: Django Simple registration fourm

2013-06-13 Thread TK
If I need one function of registering like: when people type email and name, it generates a pin to send to that email. Then put in the pin, user can begin register with more profound profiles. How can I do it in django? Thanks Karl http://oit.olivetuniversity.edu On Thursday, June 13

Django Basics

2013-06-13 Thread ambi
I am totally new to Django framework and to python web project. Do I have to user database for django to work or it can work with the flat files. My requirement is to read values form dictionary and display it on a web page. My other question is where can i= read more about Django for beginn

Re: Django Simple registration fourm

2013-06-13 Thread Lee Hinde
On Thu, Jun 13, 2013 at 8:54 AM, Jagdeep Singh wrote: > > > On Thursday, 13 June 2013 19:00:57 UTC+5:30, Muhammad Bilal Anjum > Soharwardi wrote: >> >> Can any body give me the code of simple registration form in >> Django-Python? > > > Try this : > > http://code.google.com/p/django-registration/d

Re: Django Simple registration fourm

2013-06-13 Thread Jagdeep Singh
On Thursday, 13 June 2013 19:00:57 UTC+5:30, Muhammad Bilal Anjum Soharwardi wrote: > > Can any body give me the code of simple registration form in Django-Python? Try this : http://code.google.com/p/django-registration/downloads/list?can=1&q= -- You received this message because you are su

Registering Signal Receivers When Running Tests

2013-06-13 Thread Andrew Brown
Hi all, I'm running into a problem registering signal receivers when running my tests using django-nose. If I run the tests on a specific app ('manage.py test ') everything works fine, but if I run the tests across the whole project ('manage.py test') none of my signal receivers get registered whi

Django-Tastypie and MySQL

2013-06-13 Thread Hélio Miranda
I'm trying to make an application using django and mysql tastypie. Does anyone have any examples using the three technologies that can tell me for me to see, and follow me? thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: Sharing session among multiple domains (generic web development question)

2013-06-13 Thread Frank Bieniek
HI Tom, what about an openid single sign on. there is a python package out there doing it. openid_provider from openid_provider.models import OpenID, TrustedRoot and glue it together with django userena and you have your sso. Thanks Frank Am 12.06.13 13:38, schrieb Tomas Ehrlich: Hi Tom,

Re: Django Simple registration fourm

2013-06-13 Thread Sergiy Khohlov
Hello, "Use the Force, Luke!" in "Star Wars" :-) https://github.com/django/django/blob/master/django/contrib/auth/forms.py You can create your user creating form using UserCreationForm as parent Thanks, Serj +380 636150445 skype: skhohlov On Thu, Jun 13, 2013 at 4:30 PM, Muhammad Bil

Django Simple registration fourm

2013-06-13 Thread Muhammad Bilal Anjum Soharwardi
Can any body give me the code of simple registration form in Django-Python? -- 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

Re: settings.py "DEBUG = False" doesn't work why?

2013-06-13 Thread Pepsodent Cola
Maybe it wasn't that difficult after all :) http://www.djangobook.com/en/2.0/chapter12.html - ( Setting Up Error Alerts ) http://www.mangoorange.com/2008/09/15/sending-email-via-gmail-in-django/ On Wednesday, June 12, 2013 12:03:20 PM UTC+2, Pepsodent Cola wrote: > > Hi I have basically follow

Re: Point System in django

2013-06-13 Thread coded kid
Thanks for the reply. On Thursday, 13 June 2013 02:02:03 UTC+1, MattDale wrote: > > A quick google didn't turn up any packages for your specific case, but you > may not want to use a pre-built solution. > Amirouche wanted some more information about how you plan on implementing > the project.

Re: Point System in django

2013-06-13 Thread coded kid
Thanks so much for the reply. Will try it out and let you know incase I come across any problem! On Thursday, 13 June 2013 11:49:43 UTC+1, Amirouche wrote: > > 2013/6/13 MattDale > > >> A quick google didn't turn up any packages for your specific case, but >> you may not want to use a pre-built

Re: How to make set background image for printout layout

2013-06-13 Thread Sivaram R
Thanks Thomas On Thursday, June 13, 2013 6:04:08 PM UTC+5:30, Thomas Weholt wrote: > > Do a quick google-search and you'll get plenty of tutorials, for instance > http://www.w3schools.com/css/css_background.asp. It seems to require some > setup on the client side as well, actually enabling print

Re: How to make set background image for printout layout

2013-06-13 Thread Thomas Weholt
Do a quick google-search and you'll get plenty of tutorials, for instance http://www.w3schools.com/css/css_background.asp. It seems to require some setup on the client side as well, actually enabling printing backgrounds in your browser settings/print preferences. Read more about it here: http://by

How to make set background image for printout layout

2013-06-13 Thread Sivaram R
Hi,i am doing printers,print-out functionality.So the data what ever i want to print are rendered in a template called print.html.So while method call it is rendering that template as print-out format.I don't know how to set a background image for that print-out template.Is it same as table back

Re: Please help - i can't install Django CMS

2013-06-13 Thread Tom Evans
On Thu, Jun 13, 2013 at 11:56 AM, Vic N wrote: > Please help - i can't install Django CMS. Is there anyone who can post it's > own Django CMS already installed and preconfigured in zip ? Then i will > unpack it on my PC (Windows 7, Python 2.7.5). > This is my post on Stackoverflow > http://stacko

Re: Complex(for me) queryset comparisons

2013-06-13 Thread MattDale
Thank you so much! The CSI field is the way to go I think. It definite gets me thinking in a new direction, rather than trying to mess with Django querysets, just design the model to give me the information I want! -- You received this message because you are subscribed to the Google Groups "D

Please help - i can't install Django CMS

2013-06-13 Thread Vic N
Please help - i can't install Django CMS. Is there anyone who can post it's own Django CMS already installed and preconfigured in zip ? Then i will unpack it on my PC (Windows 7, Python 2.7.5). This is my post on Stackoverflow http://stackoverflow.com/questions/17066502/django-cms-installation-

Re: Is here Ella cms (based on Django) users?

2013-06-13 Thread Amirouche Boubekki
2013/6/12 Pavel > thank you for review :) but i several days learn Ella > https://ella.readthedocs.org/en/latest/features.html > and i like it :) > > but i have some troubles. such as - > https://ella.readthedocs.org/en/latest/common_gotchas.html#creating-site-navigation > where should i paste th

Re: Point System in django

2013-06-13 Thread Amirouche Boubekki
2013/6/13 MattDale > A quick google didn't turn up any packages for your specific case, but you > may not want to use a pre-built solution. > Amirouche wanted some more information about how you plan on implementing > the project. > > Here's a simple concept: > It seems that you would want to cus

Re: settings.py "DEBUG = False" doesn't work why?

2013-06-13 Thread Pepsodent Cola
Hi Russell thanks for the pointer I will try to study this. But it looks complicated since I've never managed to setup a mail server function ever on my local Desktop (Linux) development PC in the past. http://www.djangobook.com/en/2.0/chapter12.html https://docs.djangoproject.com/en/dev/howto/err

Invitation to use Google Talk

2013-06-13 Thread Google Talk
--- You've been invited by Roopa singh to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-3b4db46fc-38aa730081-idiSKs927Md_YHFfrcUfkSiJN84 To s

Re: background image for table not apply in printout page and email copy - Django

2013-06-13 Thread Roopa singh
I tried with this also "background:url('{{ STATIC_URL }}images/human.png'); " image background is not applied in print-out and email also. On Thu, Jun 13, 2013 at 3:06 PM, Thomas Weholt wrote: > My first suggestion would be to see what {{ STATIC_URL }} renders as in > your browser. Another thing

Re: background image for table not apply in printout page and email copy - Django

2013-06-13 Thread Thomas Weholt
My first suggestion would be to see what {{ STATIC_URL }} renders as in your browser. Another thing; if you want to use this template to generate emails, IP-addresses starting with 192.168.x.x would not work because they are reserved for internal networks AFAIK. The image would have to be available

background image for table not apply in printout page and email copy - Django

2013-06-13 Thread roopasingh250
html: {%if injuary_mark.mark1 %} {% endif %} {%if injuary_mark.mark2 %} {% endif %} css: .printout{ background:url('http://192.168.100.10/static/images/human.png'); width:123px; height:298px; backgrou