Re: tracking intent during password reset process

2014-09-06 Thread Lee Hinde
Both interesting ideas and the intercepting view seems obvious (now that you've pointed it out.) Thanks. On Sat, Sep 6, 2014 at 1:11 AM, James Schneider wrote: > Curious, hen you say 'touch contrib.auth.views.py', you don't mean > modifying the Django core, do you? > > > Assuming that you are

Re: Updating Django project from 1.4 (if not older) to 1.7

2014-09-06 Thread Aaron C. de Bruyn
It depends on a lot of things. 1. You can try running: python from django import get_version print get_version() 2. If you don't see manage.py in the root directory, you are probably using a very old version of django. I would start by creating a virtualenv running an early version of Django (m

Re: try, except problem

2014-09-06 Thread Andreas Kuhne
Glad to be of help. Regards, Andréas 2014-09-06 23:32 GMT+02:00 Brad Rice : > Andréas that was it. I guess I wasn't thinking about that correctly. I > sure appreciate the help. This Django group is a very good group. > > On Saturday, September 6, 2014 1:19:57 PM UTC-4, Andréas Kühne wrote: >> >

Re: try, except problem

2014-09-06 Thread Brad Rice
Andréas that was it. I guess I wasn't thinking about that correctly. I sure appreciate the help. This Django group is a very good group. On Saturday, September 6, 2014 1:19:57 PM UTC-4, Andréas Kühne wrote: > > Hi Brad, > > 1. Why would app not be not be set if it is in the try statement? > > Bec

Updating Django project from 1.4 (if not older) to 1.7

2014-09-06 Thread Abdulla Al-Khenji
Hello all, I have been assigned with updating a Django project that was last developed in 2012 to the latest version, fixing bugs, and security issues, and updating deprecated code to match the latest version. Couple of questions I couldn't answer myself: 1) How can I check which version this

Save data from form

2014-09-06 Thread Артём Мутерко
Hello, can anyone please explain how to handle form post action and save it to database -- 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...

Re: try, except problem

2014-09-06 Thread Andreas Kuhne
Hi Brad, 1. Why would app not be not be set if it is in the try statement? Because the except parameter has the app variable in it (which it shouldn't). The correct except definition should be: "except Application.DoesNotExist". You are not looking for if the app variable doesn't exist but rather

Re: try, except problem

2014-09-06 Thread Collin Anderson
could you paste a traceback? -- 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 djan

try, except problem

2014-09-06 Thread Brad Rice
I'm trying to write a try: except: to check for three things. First I want to check if an application has already been filled out, thus, check for existence. Second if it has been filled out a flag that is is complete is set to true. Then the else would be neither of those things, they need to

Re: KeyboardInterrupt on production

2014-09-06 Thread Rok Jaklič
Thanks for explanation. On Friday, September 5, 2014 7:33:07 PM UTC+2, François Schiettecatte wrote: > > What is probably happening lower down in the stack that the browser is > closing a connection to the server before all the content is sent back > causing a broken pipe error which is being r

Re: deploying django on heroku

2014-09-06 Thread ngangsia akumbo
i have another error yems python-getting-started # git commit -m "Demo" *** Please tell me who you are. Run git config --global user.email "y...@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this rep

Re: My class communication design problem.

2014-09-06 Thread Yarick Antonov
Your solution works!!! Thanks a lot!!! On Friday, September 5, 2014 10:27:30 PM UTC+4, Collin Anderson wrote: > > I'd recommend not using a custom field for this. Instead, you can do > something like: > > class ExerciseForm(forms.Form): > exercise_field = forms.CharField(widget=forms.Text

Re: tracking intent during password reset process

2014-09-06 Thread James Schneider
Curious, hen you say 'touch contrib.auth.views.py', you don't mean modifying the Django core, do you? Assuming that you are using contrib.auth.views.password_reset (you may need to adjust this strategy for a custom view, etc.): A quick custom view that simply sets a parameter when it calls the g