DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Python (http://www.daniweb.com/forums/forum114.html)
-   -   Can it really be that hard?! (http://www.daniweb.com/forums/thread158238.html)

wangzi Nov 19th, 2008 3:30 am
Can it really be that hard?!
 
So here's my question. I'm new to python and am near lost. I've been through a few tutorials and still don't feel confident. Sure I can do whatever the tutorials say, but it's a different story when I do the whole thing myself.

Here's what I would like to do just to start:
I want to make two related websites. The first page will have a list of names that are numbered. Once a name is clicked on it will bring me to the second page where it will have information on that person (four columns: ID, phone number, hobbies and anything else).

This HAS TO BE easy. With python being recommended so highly to me on pure ease of use, why can I not figure this out?!

Any/all help is appreciated!
thx

vegaseat Nov 19th, 2008 11:14 am
Re: Can it really be that hard?!
 
So what does your initial code look like?
What error messages are you getting?

wangzi Nov 19th, 2008 9:15 pm
Re: Can it really be that hard?!
 
I fixed this problem. Here's the error message I was receiving when I did runserver, validate, etc.


C:\website\IT>manage.py runserver
Validating models...
[...]
File "C:\website\IT\..\IT\packages\models.py", line 5, in Category
topic = models.ForeignKey(Package, related_name="categories")
NameError: name 'Package' is not defined



THIS IS REALLY THE PROBLEM:

The problem I'm having is figuring out how everything relates. By that I mean it seems like the files from my main folder (manage, settings urls, views) pull and receive from the files inside my 'packages' folder. If that's not very clear I understand...lol!

thx guys....


All times are GMT -4. The time now is 3:33 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC