Hi,
how can i use "create_app" in a wsgi file?
I try to import it with "from app import create_app" but i got an
error.
My wsgi file looks like: http://paste.pocoo.org/show/520271/
and my __init__.py: http://paste.pocoo.org/show/520272/
My folder structure:
app.wsgi
app/
__init__.py
I can't figure out where the problem is.
I hope, someone can help me.
greetz, lynadge
You didn't post the error you received. That would be helpful. On Tue, Dec 13, 2011 at 9:58 PM, lynadge <lynadge@barfooz.de> wrote: > Hi, > > how can i use "create_app" in a wsgi file? > > I try to import it with "from app import create_app" but i got an > error. > > My wsgi file looks like: http://paste.pocoo.org/show/520271/ > > and my __init__.py: http://paste.pocoo.org/show/520272/ > > My folder structure: > app.wsgi > app/ > __init__.py > > I can't figure out where the problem is. > > I hope, someone can help me. > > greetz, lynadge >
Oh sorry. http://paste.pocoo.org/show/520624/ Am 13.12.2011 17:16, schrieb Adam Patterson: > You didn't post the error you received. That would be helpful. > > On Tue, Dec 13, 2011 at 9:58 PM, lynadge <lynadge@barfooz.de> wrote: >> Hi, >> >> how can i use "create_app" in a wsgi file? >> >> I try to import it with "from app import create_app" but i got an >> error. >> >> My wsgi file looks like: http://paste.pocoo.org/show/520271/ >> >> and my __init__.py: http://paste.pocoo.org/show/520272/ >> >> My folder structure: >> app.wsgi >> app/ >> __init__.py >> >> I can't figure out where the problem is. >> >> I hope, someone can help me. >> >> greetz, lynadge >>
No one can help? Am 14.12.2011 08:52, schrieb lynadge: > Oh sorry. > > http://paste.pocoo.org/show/520624/ > > Am 13.12.2011 17:16, schrieb Adam Patterson: >> You didn't post the error you received. That would be helpful. >> >> On Tue, Dec 13, 2011 at 9:58 PM, lynadge <lynadge@barfooz.de> wrote: >>> Hi, >>> >>> how can i use "create_app" in a wsgi file? >>> >>> I try to import it with "from app import create_app" but i got an >>> error. >>> >>> My wsgi file looks like: http://paste.pocoo.org/show/520271/ >>> >>> and my __init__.py: http://paste.pocoo.org/show/520272/ >>> >>> My folder structure: >>> app.wsgi >>> app/ >>> __init__.py >>> >>> I can't figure out where the problem is. >>> >>> I hope, someone can help me. >>> >>> greetz, lynadge >>>
Your app does not provide create_app for the wsgi file to import. What happens if you try to import it manually from the python interpreter? On Dec 16, 2011, at 3:44, lynadge <lynadge@barfooz.de> wrote: > No one can help? > > Am 14.12.2011 08:52, schrieb lynadge: >> Oh sorry. >> >> http://paste.pocoo.org/show/520624/ >> >> Am 13.12.2011 17:16, schrieb Adam Patterson: >>> You didn't post the error you received. That would be helpful. >>> >>> On Tue, Dec 13, 2011 at 9:58 PM, lynadge <lynadge@barfooz.de> wrote: >>>> Hi, >>>> >>>> how can i use "create_app" in a wsgi file? >>>> >>>> I try to import it with "from app import create_app" but i got an >>>> error. >>>> >>>> My wsgi file looks like: http://paste.pocoo.org/show/520271/ >>>> >>>> and my __init__.py: http://paste.pocoo.org/show/520272/ >>>> >>>> My folder structure: >>>> app.wsgi >>>> app/ >>>> __init__.py >>>> >>>> I can't figure out where the problem is. >>>> >>>> I hope, someone can help me. >>>> >>>> greetz, lynadge >>>> >