Re: How to create a sub-app directly

2011-08-22 Thread kenneth gonsalves
On Mon, 2011-08-22 at 00:57 -0700, i...@webbricks.co.uk wrote: > which is fine, but you've missed the only step that actually makes the > folder a python module. > > do this or it'll never import > touch __init__.py got distracted and pressed send too soon. -- regards Kenneth Gonsalves --

Re: How to create a sub-app directly

2011-08-22 Thread i...@webbricks.co.uk
which is fine, but you've missed the only step that actually makes the folder a python module. do this or it'll never import touch __init__.py On Aug 22, 8:32 am, kenneth gonsalves wrote: > On Sun, 2011-08-21 at 08:22 -0700, Jim wrote: > > > Here is the story. I

Re: How to create a sub-app directly

2011-08-22 Thread kenneth gonsalves
On Sun, 2011-08-21 at 08:22 -0700, Jim wrote: > > Here is the story. I created a site, mysite, with this command > django-admin startproject mysite. Then, under the directory mysite/, I > created an app named apps with this command ./manage.py startapp apps. > apps is meant to hold all

Re: How to create a sub-app directly

2011-08-21 Thread Jim
Thank you, folks. I am new to django. I read a blog the other day that suggests put all applications under a common directory, such as apps, to make the site directory neat, and I think that seems a good idea. That's why I thought it would be wonderful if manage.py could make an app under a

Re: How to create a sub-app directly

2011-08-21 Thread Mike Dewhirst
On 22/08/2011 1:22am, Jim wrote: I tried ../manage.py startapp someapp under apps/, but that created the someapp under mysite/ rather than under apps/. That's what is expected. mysite should contain settings.py and mysite/apps should contain models.py (among other files). If you want a

Re: How to create a sub-app directly

2011-08-21 Thread Subhranath Chunder
>From what I understood, by "sub-apps" Jim meant creating the application in a sub-directory, or more specifically maybe inside another python package, using the manage.py command for the sake of convenience and creating using a single command. On Sun, Aug 21, 2011 at 10:13 PM, Praveen Krishna R

Re: How to create a sub-app directly

2011-08-21 Thread Praveen Krishna R
*Is there a concept of sub-apps exist in Django !?* *I knew some concepts like independant reusable apps.* *You can easily handle the rest with your urls right ?! correct me? * On Sun, Aug 21, 2011 at 6:27 PM, Subhranath Chunder wrote: > Extend the manage.py functionality,

Re: How to create a sub-app directly

2011-08-21 Thread Subhranath Chunder
Extend the manage.py functionality, by adding your custom command. https://docs.djangoproject.com/en/dev/howto/custom-management-commands/ On Sun, Aug 21, 2011 at 8:52 PM, Jim wrote: > Hello folks, > > Here is the story. I created a site, mysite, with this command

How to create a sub-app directly

2011-08-21 Thread Jim
Hello folks, Here is the story. I created a site, mysite, with this command django-admin startproject mysite. Then, under the directory mysite/, I created an app named apps with this command ./manage.py startapp apps. apps is meant to hold all applications for mysite. Now, here comes the