Google App Engine Project hierarchy
Posted
by
Ron
on Stack Overflow
See other posts from Stack Overflow
or by Ron
Published on 2010-12-28T12:15:43Z
Indexed on
2011/01/11
1:54 UTC
Read the original article
Hit count: 278
Hey guys,
I'm working on a google app engine (with Django) and I just can't figure out what's a good practice for folder hierarchy.. I've looked at this: Project structure for Google App Engine but one thing isn't clear - what if I have static folder (like js files) that are unique to my app, not project? where do they go? my current hierarchy is:
proj
- static
** js
** css
- myapp
** templates
So when a template inside my app sends a GET for js/script.js. this gets redirected to /myapp/js/script.js, which my server doesn't recognize.
here is my project url.py:
urlpatterns = patterns('',
(r'^myapp/', include('myapp.urls')),
)
and here is my myapp.urls.py:
urlpatterns = patterns('myapp.views',
(r'^$', 'myapp.views.index'),
)
how should I rearrange this to work?
thanks!
© Stack Overflow or respective owner