librelist archives

« back to archive

Use create_app in a WSGI File!

Use create_app in a WSGI File!

From:
lynadge
Date:
2011-12-13 @ 14:58
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

Re: [flask] Use create_app in a WSGI File!

From:
Adam Patterson
Date:
2011-12-13 @ 16:16
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
>

Re: [flask] Use create_app in a WSGI File!

From:
lynadge
Date:
2011-12-14 @ 07:52
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
>>

Re: [flask] Use create_app in a WSGI File!

From:
lynadge
Date:
2011-12-16 @ 08:42
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
>>>

Re: [flask] Use create_app in a WSGI File!

From:
Todd Kennedy
Date:
2011-12-16 @ 09:00
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
>>>>
>