librelist archives

« back to archive

New User: Questions on Developing an Application

New User: Questions on Developing an Application

From:
Rich Shepard
Date:
2013-06-14 @ 18:39
   I'm neither a professional coder or web developer but I have many years of
coding experience in numerous languages. Earlier this week I discovered
flask and saw that it is the tool I need to implement a scientific web
application. I've read the flask and jinja docs (not thoroughly, but enough
to have a good feel for both) without finding answers to several questions I
have. Someone here will certainly point me in the proper diretion. :-)

   First, once I'm in the venv environment in the project subdirectory in a
virtual console, how do I exit that environment? I killed the v.c. but there
must be another way to get back to the normal system prompt.

   Second, I see in the examples that html-4.01 is specified. Can I specify
xhtml-1.1 or html5 instead?

   Third, I need pointers to start me in the proper direction. I have a
postgres database with multiple data-filled tables and this is the backend
for the application. I've installed and read enough of SQLAlchemy to know
that I can use it's engine with SQL embedded in the python modules (as I've
done with a different and non-Web-based application built with sqlite,
python, and wxpython).

   It seems to me that the first thing I need to do is write the template
pages for each table. Most are grids that display table rows and will have
tabs to insert, edit, and delete entries (the latter two allowed only to
certain user roles). Where do I find a tutorial on how to write and test
such pages?

   Once I have the basic pages for each table, and the login module written,
I can work on the python middleware that ties together the UI and the
database. But, I'm not yet ready for this. I look forward to your advice,
suggestions, and guidance.

Rich



Re: [flask] New User: Questions on Developing an Application

From:
Gamesbrainiac
Date:
2013-06-14 @ 18:47
Can you wait 30 minutes? I will have a screen-cast ready for you by then.
On Jun 15, 2013 12:41 AM, "Rich Shepard" <rshepard@appl-ecosys.com> wrote:

>    I'm neither a professional coder or web developer but I have many years
> of
> coding experience in numerous languages. Earlier this week I discovered
> flask and saw that it is the tool I need to implement a scientific web
> application. I've read the flask and jinja docs (not thoroughly, but enough
> to have a good feel for both) without finding answers to several questions
> I
> have. Someone here will certainly point me in the proper diretion. :-)
>
>    First, once I'm in the venv environment in the project subdirectory in a
> virtual console, how do I exit that environment? I killed the v.c. but
> there
> must be another way to get back to the normal system prompt.
>
>    Second, I see in the examples that html-4.01 is specified. Can I specify
> xhtml-1.1 or html5 instead?
>
>    Third, I need pointers to start me in the proper direction. I have a
> postgres database with multiple data-filled tables and this is the backend
> for the application. I've installed and read enough of SQLAlchemy to know
> that I can use it's engine with SQL embedded in the python modules (as I've
> done with a different and non-Web-based application built with sqlite,
> python, and wxpython).
>
>    It seems to me that the first thing I need to do is write the template
> pages for each table. Most are grids that display table rows and will have
> tabs to insert, edit, and delete entries (the latter two allowed only to
> certain user roles). Where do I find a tutorial on how to write and test
> such pages?
>
>    Once I have the basic pages for each table, and the login module
> written,
> I can work on the python middleware that ties together the UI and the
> database. But, I'm not yet ready for this. I look forward to your advice,
> suggestions, and guidance.
>
> Rich
>
>
>
>
>

Re: [flask] New User: Questions on Developing an Application

From:
Edmond Burnett
Date:
2013-06-14 @ 19:00
To exit a virtualenv you just issue the "deactivate" command.

The HTML5 doctype is declared simply as: <!DOCTYPE HTML>

On Fri, Jun 14, 2013 at 11:47 AM, Gamesbrainiac <gamesbrainiac@gmail.com> wrote:
> Can you wait 30 minutes? I will have a screen-cast ready for you by then.
>
> On Jun 15, 2013 12:41 AM, "Rich Shepard" <rshepard@appl-ecosys.com> wrote:
>>
>>    I'm neither a professional coder or web developer but I have many years
>> of
>> coding experience in numerous languages. Earlier this week I discovered
>> flask and saw that it is the tool I need to implement a scientific web
>> application. I've read the flask and jinja docs (not thoroughly, but
>> enough
>> to have a good feel for both) without finding answers to several questions
>> I
>> have. Someone here will certainly point me in the proper diretion. :-)
>>
>>    First, once I'm in the venv environment in the project subdirectory in
>> a
>> virtual console, how do I exit that environment? I killed the v.c. but
>> there
>> must be another way to get back to the normal system prompt.
>>
>>    Second, I see in the examples that html-4.01 is specified. Can I
>> specify
>> xhtml-1.1 or html5 instead?
>>
>>    Third, I need pointers to start me in the proper direction. I have a
>> postgres database with multiple data-filled tables and this is the backend
>> for the application. I've installed and read enough of SQLAlchemy to know
>> that I can use it's engine with SQL embedded in the python modules (as
>> I've
>> done with a different and non-Web-based application built with sqlite,
>> python, and wxpython).
>>
>>    It seems to me that the first thing I need to do is write the template
>> pages for each table. Most are grids that display table rows and will have
>> tabs to insert, edit, and delete entries (the latter two allowed only to
>> certain user roles). Where do I find a tutorial on how to write and test
>> such pages?
>>
>>    Once I have the basic pages for each table, and the login module
>> written,
>> I can work on the python middleware that ties together the UI and the
>> database. But, I'm not yet ready for this. I look forward to your advice,
>> suggestions, and guidance.
>>
>> Rich
>>
>>
>>
>>
>

Re: [flask] New User: Questions on Developing an Application

From:
Rich Shepard
Date:
2013-06-14 @ 19:37
On Fri, 14 Jun 2013, Edmond Burnett wrote:

> To exit a virtualenv you just issue the "deactivate" command.

Edmond,

   Makes sense now that I see it. :-)

> The HTML5 doctype is declared simply as: <!DOCTYPE HTML>

   OK. Good to know.

Thanks,

Rich

Re: [flask] New User: Questions on Developing an Application

From:
Nathan M
Date:
2013-06-14 @ 19:37
Take a look at flask-admin, it offers a generic administration system you
can use to manage your models.
Le 14 juin 2013 20:40, "Rich Shepard" <rshepard@appl-ecosys.com> a écrit :

>    I'm neither a professional coder or web developer but I have many years
> of
> coding experience in numerous languages. Earlier this week I discovered
> flask and saw that it is the tool I need to implement a scientific web
> application. I've read the flask and jinja docs (not thoroughly, but enough
> to have a good feel for both) without finding answers to several questions
> I
> have. Someone here will certainly point me in the proper diretion. :-)
>
>    First, once I'm in the venv environment in the project subdirectory in a
> virtual console, how do I exit that environment? I killed the v.c. but
> there
> must be another way to get back to the normal system prompt.
>
>    Second, I see in the examples that html-4.01 is specified. Can I specify
> xhtml-1.1 or html5 instead?
>
>    Third, I need pointers to start me in the proper direction. I have a
> postgres database with multiple data-filled tables and this is the backend
> for the application. I've installed and read enough of SQLAlchemy to know
> that I can use it's engine with SQL embedded in the python modules (as I've
> done with a different and non-Web-based application built with sqlite,
> python, and wxpython).
>
>    It seems to me that the first thing I need to do is write the template
> pages for each table. Most are grids that display table rows and will have
> tabs to insert, edit, and delete entries (the latter two allowed only to
> certain user roles). Where do I find a tutorial on how to write and test
> such pages?
>
>    Once I have the basic pages for each table, and the login module
> written,
> I can work on the python middleware that ties together the UI and the
> database. But, I'm not yet ready for this. I look forward to your advice,
> suggestions, and guidance.
>
> Rich
>
>
>
>
>

Re: [flask] New User: Questions on Developing an Application

From:
Rich Shepard
Date:
2013-06-14 @ 19:56
On Fri, 14 Jun 2013, Nathan M wrote:

> Take a look at flask-admin, it offers a generic administration system you
> can use to manage your models.

   Thanks, Nathan. I will.

Rich

Re: [flask] New User: Questions on Developing an Application

From:
Nathan M
Date:
2013-06-14 @ 19:38
Also Checks the flask mega tutorial
(sorry for double posting)
Le 14 juin 2013 20:40, "Rich Shepard" <rshepard@appl-ecosys.com> a écrit :

>    I'm neither a professional coder or web developer but I have many years
> of
> coding experience in numerous languages. Earlier this week I discovered
> flask and saw that it is the tool I need to implement a scientific web
> application. I've read the flask and jinja docs (not thoroughly, but enough
> to have a good feel for both) without finding answers to several questions
> I
> have. Someone here will certainly point me in the proper diretion. :-)
>
>    First, once I'm in the venv environment in the project subdirectory in a
> virtual console, how do I exit that environment? I killed the v.c. but
> there
> must be another way to get back to the normal system prompt.
>
>    Second, I see in the examples that html-4.01 is specified. Can I specify
> xhtml-1.1 or html5 instead?
>
>    Third, I need pointers to start me in the proper direction. I have a
> postgres database with multiple data-filled tables and this is the backend
> for the application. I've installed and read enough of SQLAlchemy to know
> that I can use it's engine with SQL embedded in the python modules (as I've
> done with a different and non-Web-based application built with sqlite,
> python, and wxpython).
>
>    It seems to me that the first thing I need to do is write the template
> pages for each table. Most are grids that display table rows and will have
> tabs to insert, edit, and delete entries (the latter two allowed only to
> certain user roles). Where do I find a tutorial on how to write and test
> such pages?
>
>    Once I have the basic pages for each table, and the login module
> written,
> I can work on the python middleware that ties together the UI and the
> database. But, I'm not yet ready for this. I look forward to your advice,
> suggestions, and guidance.
>
> Rich
>
>
>
>
>

Re: [flask] New User: Questions on Developing an Application

From:
Rich Shepard
Date:
2013-06-14 @ 19:56
On Fri, 14 Jun 2013, Nathan M wrote:

> Also Checks the flask mega tutorial

Nathan,

   I'll go look for it.

Much appreciated,

Rich