Re: [flask] Help developing a simple blog app
- From:
- Ishbir Singh
- Date:
- 2011-07-18 @ 07:36
Hey,
You shouldn't start with the views first. Start with listing down your
business requirements and the features you want. Compile a good, well
organized list. Then, start by coding your models. Once you're through with
the models, start by laying down the basic infrastructure from the business
requirements like authentication, database connection management etc.
Then, start with the views and templates. Don't focus on templates at this
stage, just make it plain old XHTML. Before writing down any view, make a
list of what all you might require. Say a post view (for posts), site view
(for static content). Just define functions in accordance with the features
required keeping everything in mind.
Then, start coding. ;-) Best of luck!
On 18 July 2011 12:45, Samrat Man Singh <samratmansingh@gmail.com> wrote:
> I'm thinking of making a blogging application using Flask(with
> SQLAlchemy)- something similar to Simblin(
> https://github.com/eugenkiss/Simblin). I've already gone through the Flask
> docs and I've even tried out the Flaskr project.
>
> But when I tried approaching this program, I couldn't really make any
> progress. I mean, I don't know which side of the application I should start
> with- like should I start with setting up the database or with the views or
> the templates. And when I do try to start at a point, like writing the
> views, another problem comes up because the database Models aren't set up
> yet. I had similar issues when I tried reading Simblin's source code too.
> So, I wanted to ask you guys how you deal with such issues? Does it just
> take some getting used to, or am I missing something?
>
> Regards,
> Samrat
>
--
Regards,
Ishbir Singh
Re: [flask] Help developing a simple blog app
- From:
- Amirouche Boubekki
- Date:
- 2011-07-18 @ 11:51
2011/7/18 Ishbir Singh <webmaster@ishbir.com>
> Hey,
>
> You shouldn't start with the views first. Start with listing down your
> business requirements and the features you want. Compile a good, well
> organized list. Then, start by coding your models. Once you're through with
> the models, start by laying down the basic infrastructure from the business
> requirements like authentication, database connection management etc.
>
> Then, start with the views and templates. Don't focus on templates at this
> stage, just make it plain old XHTML. Before writing down any view, make a
> list of what all you might require. Say a post view (for posts), site view
> (for static content). Just define functions in accordance with the features
> required keeping everything in mind.
>
> Ten, start coding. ;-) Best of luck!
I usally start by coding the models then I do the views+urls. I will try
your method, it sounds better
Regards,
Amirouche