List Info

Thread: Complete Newbie




Complete Newbie
user name
2006-11-21 17:18:11
Hi,

Just started checking out Python and Django. I'm very
impressed and
it's so refreshing to look at the clean syntax of python.
I'm coming
from 6+ years in PHP. Looking at Python and Django is like
getting out
of a dirty, little jail cell. That's just my opinion on how
I feel NOW,
php is great... sometimes.

I'm feeling very confused on what to do... I've installed
the latest
Python and Django. I got a simple app up and running too. So
easy. Here
is where things get a bit stressful for me...

I have a project to complete in 1 week. I've almost
completed the php
version. It's a paypal store, so not too complex. Is Django
overkill? I
whipped up almost the same thing in Django in an afternoon!
I'm a
complete newbie but feel very inspired to just scrap the php
version
and go for the Django version. What should I do? Am I
completely insane
for wanting to do this? If not, would I be insane to
actually do it?
What are some of the most obvious pitfalls that I should
look out for?

Django related... more technical...
I was messing around with a model, and I got an exception
trying to (I
think) get a model that didn't exist. How do you catch an
exception and
display a nice error message?

How do you create a very basic set of static pages? Like a
contact and
index page?

Is Django using basic/core Python components like the
request and
session object?

Thank you for any help!


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Complete Newbie
user name
2006-11-21 18:16:31
On 11/21/06, goodieboy <goodieBoygmail.com> wrote:
>
> Hi,
>
> Just started checking out Python and Django. I'm very
impressed and
> it's so refreshing to look at the clean syntax of
python. I'm coming
> from 6+ years in PHP. Looking at Python and Django is
like getting out
> of a dirty, little jail cell. That's just my opinion on
how I feel NOW,
> php is great... sometimes.
>
> I'm feeling very confused on what to do... I've
installed the latest
> Python and Django. I got a simple app up and running
too. So easy. Here
> is where things get a bit stressful for me...
>
> I have a project to complete in 1 week. I've almost
completed the php
> version. It's a paypal store, so not too complex. Is
Django overkill? I
> whipped up almost the same thing in Django in an
afternoon! I'm a
> complete newbie but feel very inspired to just scrap
the php version
> and go for the Django version. What should I do? Am I
completely insane
> for wanting to do this? If not, would I be insane to
actually do it?
> What are some of the most obvious pitfalls that I
should look out for?
>
> Django related... more technical...
> I was messing around with a model, and I got an
exception trying to (I
> think) get a model that didn't exist. How do you catch
an exception and
> display a nice error message?

See this page: http://www.djangoproject.co
m/documentation/tutorial3/#write-a-404-page-not-found-view

There is another discussion going on here on the list right
now that
has some other helpful suggestions.
>
> How do you create a very basic set of static pages?
Like a contact and
> index page?

You have a couple different options. If you just want the
static info
in a template file (not in the db or editable from the
admin) a simple
generic view [1] will do the trick. However, if you would
like the
info stored in the db and editable from the admin, flatpages
[2]
should serve you fine and, in fact, is what I use.

[1]: http://w
ww.djangoproject.com/documentation/generic_views/#django-vie
ws-generic-simple-direct-to-template
[2]: http://www.djangoproject.com/documentation/flatpages/

>
> Is Django using basic/core Python components like the
request and
> session object?
>
> Thank you for any help!
>
>
> >
>


-- 
----
Waylan Limberg
waylangmail.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-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )