Re: django structure and basic flow

2012-03-16 Thread Daniel Hepper
> I am confused that different tutorial gives different method of doing
> things. I want to know how to setup basic cms site,
> what folder should I create, sometime people create apps, sometimes
> they don't.

There are different ways to structure your project, but if you want to
use the database you have to create at least one app which you add to
INSTALLED_APPS in the settings. You can split the functionality in
multiple apps for easier reuse (often called reusable apps), but
keeping it in one app is simpler in the beginning.

> How do I put this in order?
> 1.url
> 2. view
> 3.model
> 4. template
> 5. admin
> 6. settings

I suggest to closely follow the official tutorial on djangoproject.com
and to use the "django-admin.py startproject" and "python manage.py
startapp" commands. They will create an initial structure to get you
started.

A word of caution: the recommended project structure changes from the
current Django 1.3 to the upcoming Django 1.4. Make sure you look at
the right version of the documentation.

-- Daniel

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django structure and basic flow

2012-03-15 Thread Lewis
I am confused that different tutorial gives different method of doing
things. I want to know how to setup basic cms site,
what folder should I create, sometime people create apps, sometimes
they don't.

How do I put this in order?
1.url
2. view
3.model
4. template
5. admin
6. settings

from the tutorial I see,
http://www.youtube.com/watch?v=8bnyOb72p_4=BFa=PL385A53B00B8B158E=plcp

Is that the way to structure the project?

is there anyone can help and guide me. just want to create people to
input on admin and output on the template?

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.