Re: Project and App Layout.

2006-12-27 Thread Jason C. Leach


Thanks for the tip. That looks promising.

Where do you usually put your index page - as it's a landing page, and
a bit of a gateway to may of the apps that comprise your project? Do
you create an app for it, or generally stuff it in a flatpages and
hang your other apps off it (like a log in, registration, news or
shopping section).

Thanks,
J.


On 12/27/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:


On 12/27/06, Jason <[EMAIL PROTECTED]> wrote:
> So when I start a new project, it has some basic content like an index,
> about, contact, and so on. Where does this go in relation to a apps and
> projects? Should I create an app in my project of all this standard
> stuff?

Hey Jason,

Sounds like a great candidate for the Flatpages app, which comes with
Django. See the docs here:

http://www.djangoproject.com/documentation/flatpages/

It's also covered in the Django Book here:

http://www.djangobook.com/en/beta/chapter15/#cn93

The gist of it is that it gives you a lightweight framework for
storing one-off pages like the about/contact pages.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

>




--

 Jason C. Leach
 PGP Key: 0x62DDDF75
 Keyserver: gpg.mit.edu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Project and App Layout.

2006-12-27 Thread Adrian Holovaty


On 12/27/06, Jason <[EMAIL PROTECTED]> wrote:

So when I start a new project, it has some basic content like an index,
about, contact, and so on. Where does this go in relation to a apps and
projects? Should I create an app in my project of all this standard
stuff?


Hey Jason,

Sounds like a great candidate for the Flatpages app, which comes with
Django. See the docs here:

   http://www.djangoproject.com/documentation/flatpages/

It's also covered in the Django Book here:

   http://www.djangobook.com/en/beta/chapter15/#cn93

The gist of it is that it gives you a lightweight framework for
storing one-off pages like the about/contact pages.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Project and App Layout.

2006-12-27 Thread Jason


Hi:

So when I start a new project, it has some basic content like an index,
about, contact, and so on. Where does this go in relation to a apps and
projects? Should I create an app in my project of all this standard
stuff?

Later I'll add functionality. This may include a registration section
(with underlying code) and a login section (with code) and perhaps a
shopping section (with code). I can see those going into in depended
apps in my project (and that's where I'll put them).

But I'm still not sure where to put the generic 'meat-n-potatoes' of my
site. For now I just created a app called 'main' and am putting all my
fairly static content in it.

Thanks,
Jason.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---