librelist archives

« back to archive

Re: [flask] flaskr using SQLAlchemy not working

Re: [flask] flaskr using SQLAlchemy not working

From:
Evan Tangman
Date:
2012-05-10 @ 16:15
Goke, in line 131 and 138 of on your pastebin link you have:
  
return redirect(url_for('show_entries.html'))

and this needs to be the name of the method, not the template. Like this:

return redirect(url_for('show_entries'))

Hope that helps!

Evan

----- Original Message -----
From: "Goke Aruna" <pyklass@gmail.com>
To: flask@librelist.com
Sent: Thursday, May 10, 2012 11:27:04 AM
Subject: [flask] flaskr using SQLAlchemy not working

hello all, 

Can someone help me out. my code is contained in the url below.? 

The / page is working and can load my login but the authentication path is
not working. you help will be greatly appreciated. 
the files is as contained in the pastebin below: 

http://pastebin.com/sxUxBLTt 

Regards, 


Re: [flask] flaskr using SQLAlchemy not working

From:
Goke Aruna
Date:
2012-05-10 @ 19:42
thanks Evan,

i did as advised but the story never changed.



On Thu, May 10, 2012 at 5:15 PM, Evan Tangman <etangman@goodegg.com> wrote:

> Goke, in line 131 and 138 of on your pastebin link you have:
>
> return redirect(url_for('show_entries.html'))
>
> and this needs to be the name of the method, not the template. Like this:
>
> return redirect(url_for('show_entries'))
>
> Hope that helps!
>
> Evan
>
> ----- Original Message -----
> From: "Goke Aruna" <pyklass@gmail.com>
> To: flask@librelist.com
> Sent: Thursday, May 10, 2012 11:27:04 AM
> Subject: [flask] flaskr using SQLAlchemy not working
>
> hello all,
>
> Can someone help me out. my code is contained in the url below.?
>
> The / page is working and can load my login but the authentication path is
> not working. you help will be greatly appreciated.
> the files is as contained in the pastebin below:
>
> http://pastebin.com/sxUxBLTt
>
> Regards,
>
>
>
>

Re: [flask] flaskr using SQLAlchemy not working

From:
pronoyc@gmail.com
Date:
2012-05-10 @ 19:52
>
> Subject: [flask] flaskr using SQLAlchemy not working
>>
>> hello all,
>>
>> Can someone help me out. my code is contained in the url below.?
>>
>> The / page is working and can load my login but the authentication path
>> is not working. you help will be greatly appreciated.
>> the files is as contained in the pastebin below:
>>
>> http://pastebin.com/sxUxBLTt
>>
>
Can we please have the traceback if any?

Re: [flask] flaskr using SQLAlchemy not working

From:
Goke Aruna
Date:
2012-05-10 @ 19:59
dont know how to do traceback?



On Thu, May 10, 2012 at 8:52 PM, pronoyc@gmail.com <pronoyc@gmail.com>wrote:

> Subject: [flask] flaskr using SQLAlchemy not working
>>>
>>> hello all,
>>>
>>> Can someone help me out. my code is contained in the url below.?
>>>
>>> The / page is working and can load my login but the authentication path
>>> is not working. you help will be greatly appreciated.
>>> the files is as contained in the pastebin below:
>>>
>>> http://pastebin.com/sxUxBLTt
>>>
>>
> Can we please have the traceback if any?
>

Re: [flask] flaskr using SQLAlchemy not working

From:
pronoyc@gmail.com
Date:
2012-05-10 @ 20:09
Just do DEBUG = 'True'
and have a secret key.

Check out the tutorial on the flask documentation. Found there
http://flask.pocoo.org/docs/

There's a whole tutorial for starting from scratch.

On Fri, May 11, 2012 at 1:29 AM, Goke Aruna <pyklass@gmail.com> wrote:

> dont know how to do traceback?
>
>
>
>
> On Thu, May 10, 2012 at 8:52 PM, pronoyc@gmail.com <pronoyc@gmail.com>wrote:
>
>>  Subject: [flask] flaskr using SQLAlchemy not working
>>>>
>>>> hello all,
>>>>
>>>> Can someone help me out. my code is contained in the url below.?
>>>>
>>>> The / page is working and can load my login but the authentication path
>>>> is not working. you help will be greatly appreciated.
>>>> the files is as contained in the pastebin below:
>>>>
>>>> http://pastebin.com/sxUxBLTt
>>>>
>>>
>> Can we please have the traceback if any?
>>
>
>


-- 
Regards,

Pronoy Chopra
http://blog.pronoy.in <http://www.pronoy.in/about>/
http://www.twitter.com/pronoyc

Re: [flask] flaskr using SQLAlchemy not working

From:
Goke Aruna
Date:
2012-05-11 @ 10:01
hello,

I tried with app.run(debug=True)
no debug message appeared in the console.
Any guide or rewrite will be welcomed.

i just want to use my learning time to introduce SQLALchemy to the existing
flaskr.

Thank you

On Thu, May 10, 2012 at 9:09 PM, pronoyc@gmail.com <pronoyc@gmail.com>wrote:

> Just do DEBUG = 'True'
> and have a secret key.
>
> Check out the tutorial on the flask documentation. Found there
> http://flask.pocoo.org/docs/
>
> There's a whole tutorial for starting from scratch.
>
>
> On Fri, May 11, 2012 at 1:29 AM, Goke Aruna <pyklass@gmail.com> wrote:
>
>> dont know how to do traceback?
>>
>>
>>
>>
>> On Thu, May 10, 2012 at 8:52 PM, pronoyc@gmail.com <pronoyc@gmail.com>wrote:
>>
>>>  Subject: [flask] flaskr using SQLAlchemy not working
>>>>>
>>>>> hello all,
>>>>>
>>>>> Can someone help me out. my code is contained in the url below.?
>>>>>
>>>>> The / page is working and can load my login but the authentication
>>>>> path is not working. you help will be greatly appreciated.
>>>>> the files is as contained in the pastebin below:
>>>>>
>>>>> http://pastebin.com/sxUxBLTt
>>>>>
>>>>
>>> Can we please have the traceback if any?
>>>
>>
>>
>
>
> --
> Regards,
>
> Pronoy Chopra
> http://blog.pronoy.in <http://www.pronoy.in/about>/
> http://www.twitter.com/pronoyc
>
>

Re: [flask] flaskr using SQLAlchemy not working

From:
Goke Aruna
Date:
2012-05-10 @ 19:54
how can i confirm that the request.form['username'] is being POSTED?

thanks

On Thu, May 10, 2012 at 8:42 PM, Goke Aruna <pyklass@gmail.com> wrote:

> thanks Evan,
>
> i did as advised but the story never changed.
>
>
>
>
> On Thu, May 10, 2012 at 5:15 PM, Evan Tangman <etangman@goodegg.com>wrote:
>
>> Goke, in line 131 and 138 of on your pastebin link you have:
>>
>> return redirect(url_for('show_entries.html'))
>>
>> and this needs to be the name of the method, not the template. Like this:
>>
>> return redirect(url_for('show_entries'))
>>
>> Hope that helps!
>>
>> Evan
>>
>> ----- Original Message -----
>> From: "Goke Aruna" <pyklass@gmail.com>
>> To: flask@librelist.com
>> Sent: Thursday, May 10, 2012 11:27:04 AM
>> Subject: [flask] flaskr using SQLAlchemy not working
>>
>> hello all,
>>
>> Can someone help me out. my code is contained in the url below.?
>>
>> The / page is working and can load my login but the authentication path
>> is not working. you help will be greatly appreciated.
>> the files is as contained in the pastebin below:
>>
>> http://pastebin.com/sxUxBLTt
>>
>> Regards,
>>
>>
>>
>>
>

Re: [flask] flaskr using SQLAlchemy not working

From:
pronoyc@gmail.com
Date:
2012-05-10 @ 20:05
I guess you could do something like

if request.method == "POST":
    username = request.form['username']
    return print username

On Fri, May 11, 2012 at 1:24 AM, Goke Aruna <pyklass@gmail.com> wrote:

> how can i confirm that the request.form['username'] is being POSTED?
>
> thanks
>
>
> On Thu, May 10, 2012 at 8:42 PM, Goke Aruna <pyklass@gmail.com> wrote:
>
>> thanks Evan,
>>
>> i did as advised but the story never changed.
>>
>>
>>
>>
>> On Thu, May 10, 2012 at 5:15 PM, Evan Tangman <etangman@goodegg.com>wrote:
>>
>>> Goke, in line 131 and 138 of on your pastebin link you have:
>>>
>>> return redirect(url_for('show_entries.html'))
>>>
>>> and this needs to be the name of the method, not the template. Like this:
>>>
>>> return redirect(url_for('show_entries'))
>>>
>>> Hope that helps!
>>>
>>> Evan
>>>
>>> ----- Original Message -----
>>> From: "Goke Aruna" <pyklass@gmail.com>
>>> To: flask@librelist.com
>>> Sent: Thursday, May 10, 2012 11:27:04 AM
>>> Subject: [flask] flaskr using SQLAlchemy not working
>>>
>>> hello all,
>>>
>>> Can someone help me out. my code is contained in the url below.?
>>>
>>> The / page is working and can load my login but the authentication path
>>> is not working. you help will be greatly appreciated.
>>> the files is as contained in the pastebin below:
>>>
>>> http://pastebin.com/sxUxBLTt
>>>
>>> Regards,
>>>
>>>
>>>
>>>
>>
>


-- 
Regards,

Pronoy Chopra
http://blog.pronoy.in <http://www.pronoy.in/about>/
http://www.twitter.com/pronoyc