I just need help on where my files needs to be.

I have my app in it's own folder. I had the app inside the directory
of google app engine.

the problem is when I run manage.py inside my own app folder. The
manage.py can't find the source development kit of google apps engine.

So I took the manage.py out and put it directly in the google app
engine which then can find the SDK.

Then I got the problem with finding the application which I notice
manage.py made the test server to look for the app in the static
folder.

So I moved the app to the static folder and then I got python error
messages instead of a 404.  This is where I am at.

I am not sure if the files are in the right place where it needs to be
placed.

I am getting like 50 errors. All or most of them are coming from the
app engine python scripts.

I am guessing the files are not in the proper place in order for it to
run or be found.

So I ask where does my application need to be  in order for it to run.
I think the config is in the default state.

I only changed the app.yaml to the application that I need to update.

any ideas what could be the problem? I been working on this all day.
I got an impatient ceo barking down my neck.

He never gave me a deadline but he want's it up as soon as possible.
He wants updates from day to day basis.



On Apr 4, 3:04 pm, Aaron <[email protected]> wrote:
> ok, I just fixed the 404 error.  The test server was looking for the
> app in the static folder.
>
> I didn't have to app in their so I moved it in their and I get now
> python errors. Like about 50 like before.
>
> On Apr 4, 2:44 pm, Aaron <[email protected]> wrote:
>
> > ya but how would you fix it?
>
> > I restarted the test server about 4 times. I would get a 404 once. I
> > got 3  times where it gave me a python error.
>
> > It listed all the google app engine where errors occured inthe app
> > engine python scripts.
>
> > so how can I fix this? Like I said I aint a python guru.
>
> > On Apr 4, 1:58 pm, Xavier Mathews <[email protected]> wrote:
>
> > > Well 404 Is A Not Found Error So That Would Be The Browser Or Test
> > > Connection Which Can Be A Problem In It's Self!
>
> > > On 04/04/2009, Aaron <[email protected]> wrote:
>
> > > > well those are the errors I had in the brower.
>
> > > > Now after I restart the test server.
>
> > > > I get a 404 errror.
>
> > > > I then took a look at the terminal and this is what came after I type
> > > > the command runserver.
>
> > > > here are those errors:
>
> > > > WARNING:root:Could not read datastore data from /tmp/django_mobile-
> > > > consulting-inc.datastore
> > > > Running on app-engine-patch 1.0dev
> > > > INFO:root:Server: appengine.google.com
> > > > INFO:root:Checking for updates to the SDK.
> > > > INFO:root:The SDK is up to date.
> > > > WARNING:root:Could not read datastore data from /tmp/django_mobile-
> > > > consulting-inc.datastore
> > > > INFO:root:Running application mobile-consulting-inc on port 8000:
> > > >http://localhost:8000
> > > > DEBUG:root:Matched "/" to CGI dispatcher with path common/
> > > > appenginepatch/main.py
> > > > DEBUG:root:Executing CGI with env:
> > > > {'APPLICATION_ID': 'mobile-consulting-inc',
> > > >  'AUTH_DOMAIN': 'gmail.com',
> > > >  'CONTENT_LENGTH': '',
> > > >  'CONTENT_TYPE': 'application/x-www-form-urlencoded',
> > > >  'CURRENT_VERSION_ID': '5.1',
> > > >  'GATEWAY_INTERFACE': 'CGI/1.1',
> > > >  'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
> > > > xml;q=0.9,*/*;q=0.8',
> > > >  'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
> > > >  'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
> > > >  'HTTP_CONNECTION': 'keep-alive',
> > > >  'HTTP_HOST': 'localhost:8000',
> > > >  'HTTP_KEEP_ALIVE': '300',
> > > >  'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
> > > > 1.9.0.8) Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8',
> > > >  'PATH_INFO': '/',
> > > >  'PATH_TRANSLATED': u'/home/aaron/websites/Chillenvillen.com/apps/
> > > > google_app_engine/google_appengine/common/appenginepatch/main.py',
> > > >  'QUERY_STRING': '',
> > > >  'REMOTE_ADDR': '127.0.0.1',
> > > >  'REQUEST_METHOD': 'GET',
> > > >  'SCRIPT_NAME': '',
> > > >  'SERVER_NAME': 'localhost',
> > > >  'SERVER_PORT': '8000',
> > > >  'SERVER_PROTOCOL': 'HTTP/1.0',
> > > >  'SERVER_SOFTWARE': 'Development/1.0',
> > > >  'TZ': 'UTC',
> > > >  'USER_EMAIL': ''}
> > > > DEBUG:root:Could not import "strop": Disallowed C-extension or built-
> > > > in module
> > > > DEBUG:root:Could not import "fcntl": Disallowed C-extension or built-
> > > > in module
> > > > DEBUG:root:Access to module file denied: /usr/lib/python2.5/site-
> > > > packages/mod_python
> > > > INFO:root:"GET / HTTP/1.1" 404 -
> > > > INFO:root:Detected manual index.yaml, will not update
>
> > > > On Apr 4, 1:29 pm, Aaron <[email protected]> wrote:
> > > >> Hi, I just done a test of my app. It's a website. I just used the
> > > >> local host test.
>
> > > >> I got about 50 errors which all points the errors to the app engine
> > > >> python scripts.
>
> > > >> How could this happen?
>
> > > >> I will just post a few here or some of the errors:
>
> > > >> A problem occurred in a Python script. Here is the sequence of
> > > >> function calls leading up to the error, in the order they occurred.
> > > >>  /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> > > >> google_appengine/google/appengine/tools/dev_appserver.py in
> > > >> _HandleRequest
> > > >> (self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler
> > > >> instance at 0x90443ec>)
> > > >>  2709                               infile,
> > > >>  2710                               outfile,
> > > >> error here->  2711
> > > >> base_env_dict=env_dict)
> > > >>  2712         finally:
> > > >>  2713           self.module_manager.UpdateModuleFileModificationTimes
> > > >> ()
> > > >> base_env_dict undefined, env_dict = {'APPLICATION_ID': 'mobile-
> > > >> consulting-inc', 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR':
> > > >> '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
> > > >> 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0',
> > > >> 'SERVER_SOFTWARE': 'Development/1.0'}
> > > >>  /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> > > >> google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
> > > >> (self=<google.appengine.tools.dev_appserver.MatcherDispatcher object
> > > >> at 0x8b5710c>, relative_url='/', path=None, headers=<mimetools.Message
> > > >> instance at 0x8b50e2c>, infile=<cStringIO.StringI object at
> > > >> 0x8a6d200>, outfile=<cStringIO.StringO object at 0x8b570e0>,
> > > >> base_env_dict={'APPLICATION_ID': 'mobile-consulting-inc',
> > > >> 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
> > > >> 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
> > > >> '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
> > > >> 1.0'})
> > > >>   378                                       infile,
> > > >>   379                                       outfile,
> > > >>   error here-> 380
> > > >> base_env_dict=base_env_dict)
> > > >>   381
> > > >>   382         if forward:
> > > >> base_env_dict = {'APPLICATION_ID': 'mobile-consulting-inc',
> > > >> 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
> > > >> 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
> > > >> '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
> > > >> 1.0'}
> > > >>  /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> > > >> google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
> > > >> (self=<google.appengine.tools.dev_appserver.CGIDispatcher object at
> > > >> 0x8b5350c>, relative_url='/', path='common/appenginepatch/main.py',
> > > >> headers=<mimetools.Message instance at 0x8b50e2c>,
> > > >> infile=<cStringIO.StringI object at 0x8a6d200>,
> > > >> outfile=<cStringIO.StringO object at 0x8b570e0>, base_env_dict=
> > > >> {'APPLICATION_ID': 'mobile-consulting-inc', 'CURRENT_VERSION_ID':
> > > >> '5.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET',
> > > >> 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL':
> > > >> 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'})
> > > >>  1996                      infile,
> > > >>  1997                      outfile,
> > > >> Errror here-> 1998                      self._module_dict)
> > > >>  1999       handler.AddDebuggingConsole(relative_url, env, outfile)
> > > >>  2000     finally:
> > > >> self = <google.appengine.tools.dev_appserver.CGIDispatcher object at
> > > >> 0x8b5350c>, self._module_dict = {'Cookie': <module 'Cookie' from '/usr/
> > > >> lib/python2.5/Cookie.pyc'>, 'UserDict': <module 'UserDict' from '/usr/
> > > >> lib/python2.5/UserDict.pyc'>, '__main__': <module
> > > >> 'common.appenginepatch.main' from '/home.../google_appengine/common/
> > > >> appenginepatch/main.py'>, '_bisect': <module '_bisect' from '/usr/lib/
> > > >> python2.5/lib-dynload/_bisect.so'>, '_functools': <module '_functools'
> > > >> from '/usr/lib/python2.5/lib-dynload/_functools.so'>, '_hashlib':
> > > >> <module '_hashlib' from '/usr/lib/python2.5/lib-dynload/_hashlib.so'>,
> > > >> '_locale': <module '_locale' from '/usr/lib/python2.5/lib-dynload/
> > > >> _locale.so'>, '_random': <module '_random' from '/usr/lib/python2.5/
> > > >> lib-dynload/_random.so'>, '_struct': <module '_struct' from '/usr/lib/
> > > >> python2.5/lib-dynload/_struct.so'>, '_threading_local': <module
> > > >> '_threading_local' from '/usr/lib/python2.5/
> > > >> _threading_local.pyc'>, ...}
>
> > > >> what could cause all these errors. If you notice they are errors in
> > > >> the python files google app engine provided.
>
> > > >> I am new to google apps engine but not new to python. I however never
> > > >> hardcore used python for any web or software application development.
>
> > > >> do you think it's something to do with how the files are being linked?
>
> > > >> I mean I was given a mange.py file and a folder for the app. The
> > > >> manage.py was in that folder.  I tried running it and I got an error
> > > >> saying can't find the sdk.
>
> > > >> When I moved the manage.py  to the directory of the google apps engine
> > > >> it worked.
>
> > > >> Could you tell me were should my app files be and how can I run
> > > >> manage.py and have it to be able to see the SDK.
>
> > > --
> > > "Sent From Sony Slim-Line PSP"
>
> > > Xavier A. Mathews
> > > Web-Developer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to