librelist archives

« back to archive

Model scattered between files

Model scattered between files

From:
Italo Maia
Date:
2010-08-12 @ 18:46
I noticed that create_all() does not work if the models are scattered
between several files (like many modules!). Is there a recommended
workaround?

-- 
"A arrogância é a arma dos fracos."

===========================
Italo Moreira Campelo Maia
Graduado em Ciência da Computação - UECE
Desenvolvedor WEB e Desktop (Java, Python, Lua)
Coordenador do Pug-CE
-----------------------------------------------------
http://www.italomaia.com/
http://twitter.com/italomaia/
http://eusouolobomau.blogspot.com/
-----------------------------------------------------
turtle linux 910 - http://tiny.cc/blogturtle910
===========================

Re: [flask] Model scattered between files

From:
Thadeus Burgess
Date:
2010-08-12 @ 19:19
Import all of the models before you issue create_all

--
Thadeus





On Thu, Aug 12, 2010 at 1:46 PM, Italo Maia <italo.maia@gmail.com> wrote:
> I noticed that create_all() does not work if the models are scattered
> between several files (like many modules!). Is there a recommended
> workaround?
>
> --
> "A arrogância é a arma dos fracos."
>
> ===========================
> Italo Moreira Campelo Maia
> Graduado em Ciência da Computação - UECE
> Desenvolvedor WEB e Desktop (Java, Python, Lua)
> Coordenador do Pug-CE
> -----------------------------------------------------
> http://www.italomaia.com/
> http://twitter.com/italomaia/
> http://eusouolobomau.blogspot.com/
> -----------------------------------------------------
> turtle linux 910 - http://tiny.cc/blogturtle910
> ===========================
>