Django Form ChoiceField, initial not working

2010-12-09 Thread Sector7B
Hi, i have a simple form: class StoreLocationHoursForm(BForm): location = forms.ChoiceField(required=True) day = forms.ChoiceField(choices=bagit_constants.dow,required=True) time_open_hours = forms.ChoiceField(choices=constants.hours,required=True) time_open_minutes = forms.ChoiceFi

Re: List compare is there something better than a double loop?

2010-12-04 Thread Sector7B
very cool thanks, i knew it was a lack of api knowledge on my part. On Dec 2, 10:53 pm, Aaron Sterling wrote: > > I'm building a store that has a product_list (class ProductList: > > store, name, description) that contains .products (class Product: > > name, description, price etc...) > > If you'

List compare is there something better than a double loop?

2010-12-02 Thread Sector7B
Hi, I probably have a common problem and maybe i'm not thinking about this correctly, but here it is. I'm building a store that has a product_list (class ProductList: store, name, description) that contains .products (class Product: name, description, price etc...) I also have a cart that is buil

Re: can't import any of my libraries inside of my app folder

2010-08-18 Thread Sector7B
disregard, i didn't change my code, but my IDE did. fyi: "python manage.py shell" actually showed me the exact error. On Aug 18, 12:18 pm, Sector7B wrote: > **Disclaimer i'm using Django for GAE, but i really think this is a > Django thing** > > Last night i ha

can't import any of my libraries inside of my app folder

2010-08-18 Thread Sector7B
**Disclaimer i'm using Django for GAE, but i really think this is a Django thing** Last night i had a bunch of code working, did a commit went to bed. Got up this morning and started my django app and suddenly any library i try to import from myapp fails with something like this: "Could not impor

Re: using django for google appengine, noob to both.

2010-07-01 Thread Sector7B
discuss this using private messages, or at > > app-engine-django group (http://groups.google.com/group/app-engine-django > > ) :) > > > I mean, maybe we are bothering the members, talking more about appengine, > > than django. > > > On Wed, Jun 30, 2010 at 8:44 P

Re: using django for google appengine, noob to both.

2010-06-30 Thread Sector7B
interestingly though, i guess my problem is still that i'm not able to do the django way of things, which I thought was idea behind doing it like this: http://code.google.com/appengine/articles/appengine_helper_for_django.html On Jun 30, 7:30 pm, Sector7B wrote: > i was just coming to wr

Re: using django for google appengine, noob to both.

2010-06-30 Thread Sector7B
tween-appengin... > > > > On Wed, Jun 30, 2010 at 8:09 PM, Sector7B wrote: > > Thank you for your reply.  I gave it a try, and it didn't seem to > > work.  The helper project (according to the introductory article) has > > me using their "BaseModel", which I t

Re: using django for google appengine, noob to both.

2010-06-30 Thread Sector7B
hink like: > a = XItUser.all() > a.filter('xit_nickname =', 'awesome') > > I'm not sure if there is another way > > > > On Wed, Jun 30, 2010 at 4:04 PM, Sector7B wrote: > > Hi, I'm using django on google appengine using this: > >http:/

using django for google appengine, noob to both.

2010-06-30 Thread Sector7B
Hi, I'm using django on google appengine using this: http://code.google.com/appengine/articles/appengine_helper_for_django.html So I have my models, and I can load my pages and templates, and started to do some rudimentary object creates and gets inside the shell (python manage.py shell) and my vi

Re: noob syntax question

2010-06-24 Thread Sector7B
very nice, thank you. I will look up the book. On Jun 24, 2:37 pm, Daniel Roseman wrote: > On Jun 24, 7:01 pm, Sector7B wrote: > > > Thanks for the feedback and the link, all good stuff! > > I looked at what i had written, and I think a better way to ask the > > quest

Re: noob syntax question

2010-06-24 Thread Sector7B
; > "Django also creates API accessors for the "other" side of the > > relationship -- the link from the related model to the model that > > defines the relationship. For example, a Blog object b has access to a > > list of all related Entry objects via the

noob syntax question

2010-06-23 Thread Sector7B
Hi, In the tutorial 1. It has this: # Give the Poll a couple of Choices. The create call constructs a new # choice object, does the INSERT statement, adds the choice to the set # of available choices and returns the new Choice object. Django creates # a set to hold the "other side" of a ForeignKey

Re: Problem setting up mysqldb 1.2.3c1 on Mac 10.5.8 Leopard

2010-02-06 Thread Sector7B
I had this same problem, i eventually abandoned building any of it manually and switched to macports: http://groups.google.com/group/django-users/browse_thread/thread/862ceed6f97acf1c/eeff8aa5fb16ca0c#eeff8aa5fb16ca0c. If you read the thread no one agrees with me, but its working great for me so fa

Re: A Couple Newbie Questions

2010-01-31 Thread Sector7B
thanks, sys.path.append('/path/to') is what i have, and the polls url worked. On Jan 31, 12:27 am, Dave Murphy wrote: > On 30 January 2010 19:59, Sector7B wrote: > > > 1. Reading the documentation for deploying using mod_wsgi.  It says > > not to use just 'set

A Couple Newbie Questions

2010-01-30 Thread Sector7B
Hi, got a couple questions after the getting started. I've followed the tutorial and have it deployed to an apache instance locally. But planning out my next steps for my app, i have some questions hopefully someone can add insight to. 1. Reading the documentation for deploying using mod_wsgi.