Re: "Connection refused" with backend psycopg2

2012-05-22 Thread Stanwin Siow
On May 23, 2012, at 1:41 PM, Tanuva wrote: > Am 22.05.2012 23:52, schrieb akaariai: >> On May 22, 11:51 pm, Tanuva wrote: >>> Moin, >>> >>> lately, I wanted to switch my database from the testing sqlite file to a >>> more productive pgsql 8.4 server. Now I'm constantly

Re: Git migration

2012-05-04 Thread Stanwin Siow
ust want use git in your development, don't care the remote is > svn or git, you can try git-svn, this is a great tool for git clone and > manage svn repo! > > Best regards, > > Rivsen > > 2012/5/4 Stanwin Siow <stanwin.kts...@gmail.com> > Hello there, > >

Git migration

2012-05-03 Thread Stanwin Siow
django-registration and django-paypal in GIT? Or would the functionalities be the same? I'm asking this is because i discovered a break in the program after the migration. Any help or advice is appreciated. Thanks in advance! Best Regards, Stanwin Siow -- You received this message

Re: Django: 404 page not found

2012-04-02 Thread Stanwin Siow
check your Media_root in settings.py. It could be a missing stroke. Best Regards, Stanwin Siow On Apr 3, 2012, at 8:14 AM, Homer wrote: > I met "404" page not found when I try to enter 127.0.0.1:8000/cn/bedroom . It > says on the webpage that "C:/Django/final/media/be

Re: Simple question on queryset.

2012-03-27 Thread Stanwin Siow
ok i managed to get it to work by using filter. Cheers Best Regards, Stanwin Siow On Mar 27, 2012, at 3:32 PM, Denis Darii wrote: > I think the error "Memberships has no attribute all" is not related to your > QuerySet. Try to look deeply into your code. > > B

Re: Simple question on queryset.

2012-03-27 Thread Stanwin Siow
I tried changing it to what you said. It's still showing the error. "Memberships object has no attribute all" This only happens when i use get. When i use order_by. the page shows but with unnecessary options. Best Regards, Stanwin Siow On Mar 27, 2012, at 3:32 PM, Denis D

Simple question on queryset.

2012-03-27 Thread Stanwin Siow
this is a trivial question but i've been through the tutorials https://docs.djangoproject.com/en/dev/topics/db/queries/ and i don't unds where this error is coming from. Do appreciate any help rendered. Thank you. Best Regards, Stanwin Siow -- You received this message because you

Re: Help with django-paypal anyone?

2012-03-22 Thread Stanwin Siow
ok thank you. I'll take a look tonight. Cheers Best Regards, Stanwin Siow On Mar 22, 2012, at 6:30 PM, Daniel Hilton wrote: > On 22 March 2012 10:20, Stanwin Siow <stanwin.kts...@gmail.com> wrote: >> hey daniel, >> >> I used the johnbox version. >> &

Re: Help with django-paypal anyone?

2012-03-22 Thread Stanwin Siow
hey daniel, I used the johnbox version. Should be ok right? Best Regards, Stanwin Siow On Mar 22, 2012, at 6:01 PM, Daniel Hilton wrote: > On 22 March 2012 05:47, Jonathan Baker <jonathandavidba...@gmail.com> wrote: >> You'll need to enable the CSRF middleware, adjust you

Help with django-paypal anyone?

2012-03-21 Thread Stanwin Siow
? I would appreciate any help rendered. Thank you. Best Regards, Stanwin Siow -- 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,

Passing a query set into a template

2012-03-17 Thread Stanwin Siow
Best Regards, Stanwin Siow -- 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...@google

Django-subscription

2012-03-16 Thread Stanwin Siow
found are documentations on git hub that don't give a clear picture. if there is a better solution i am all ears. Appreciate any kind of help offered. Thanks! Best Regards, Stanwin Siow -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: django registration

2012-03-05 Thread Stanwin Siow
o take a look at it. I've had a brief read. One thing that's bothering me is if i do use Pinax, do i have to rewrite everything again? Best Regards, Stanwin Siow On Mar 5, 2012, at 9:53 PM, roy moss wrote: > Pinax is an open-source platform built on the Django Web Framework. By >

Re: django registration

2012-03-05 Thread Stanwin Siow
what is Pinax? And this is not a learning exercise. Well i'll still want to know the other way too. Best Regards, Stanwin Siow On Mar 5, 2012, at 9:41 PM, Alec Taylor wrote: > DRY principle is what Django is all about. > > Use Pinax instead of developing your own Profi

Re: django registration

2012-03-05 Thread Stanwin Siow
Even after doing that, The error still occurs. And my data is still unsaved in the database. Should i be creating a backend? Best Regards, Stanwin Siow On Mar 5, 2012, at 7:13 PM, nicolas HERSOG wrote: > I looked at my code in order to notice diffs. > > You should add return

django registration

2012-03-05 Thread Stanwin Siow
/complete/$',direct_to_template,{'template': 'registration/registration_complete.html'},name='registration_complete'), Best Regards, Stanwin Siow -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Anyone experience any thing like this before?

2012-03-03 Thread Stanwin Siow
Thanks creecode. I totally forgot about that! cheers for pointing that out! Best Regards, Stanwin Siow On Mar 3, 2012, at 11:52 PM, creecode wrote: > def __unicode__ ( self ): > > return '%s' % self.pk -- You received this message because you are subscribed to t

How do i view json data returned from django

2012-03-01 Thread Stanwin Siow
nks! Best Regards, Stanwin Siow -- 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.c

Jquery/ajax + django

2012-02-29 Thread Stanwin Siow
JSON Data: " + response.new_list.keyword); },

Re: Using query set in views.py

2012-02-27 Thread Stanwin Siow
i see. Thanks guys. I've got it working thanks to your inputs. Really appreciate it. Best Regards, Stanwin Siow On Feb 27, 2012, at 4:36 PM, doniyor wrote: > yes, as Ian said, you need name attr in your input so that you can > navigate to the real string input the user

Re: Question on unknown error

2012-02-26 Thread Stanwin Siow
It's ok guys! I figured out the error. At the end of the method we were returning 0 and 1 that will throw the error. Is there some rule in django that we are not supposed to return integers? Best Regards, Stanwin Siow On Feb 27, 2012, at 5:38 AM, Mario Gudelj wrote: > In print 't

Question on unknown error

2012-02-26 Thread Stanwin Siow
, The following error throws at those two lines. Err: sequence item 0: expected string, int found Is there something wrong with the module? Best Regards, Stanwin Siow -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Using query set in views.py

2012-02-26 Thread Stanwin Siow
too. How then do i implement the queryset needed? This should be clearer. Thank you. Best Regards, Stanwin Siow On Feb 26, 2012, at 6:25 PM, Daniel Roseman wrote: > Your question is not at all clear. You can use whatever you like in your > view. What problem are you having? > -- >

Re: Using query set in views.py

2012-02-26 Thread Stanwin Siow
column's information in my views.py. Hope that makes it clearer. Best Regards, Stanwin Siow On Feb 26, 2012, at 6:25 PM, Daniel Roseman wrote: > Your question is not at all clear. You can use whatever you like in your > view. What problem are you having? > -- > DR. &g

Using query set in views.py

2012-02-26 Thread Stanwin Siow
html = form.errors.as_ul() response = simplejson.dumps({'success':'False', 'html':html}) if request.is_ajax(): return HttpResponse(response, mimetype='application/json') else: return HttpResponseRedirect("/") Best Regards, Stanwin Siow -- You received

Re: Beginner's question about urls.py

2012-02-22 Thread Stanwin Siow
Check your urls.py there could be conflicting statements: http://stackoverflow.com/questions/4174610/django-admin-page-not-found-at-admin Check out the stackoverflow question Best Regards, Stanwin Siow On Feb 23, 2012, at 11:20 AM, shartha wrote: > I have "django.contrib.admi

Re: Beginner's question about urls.py

2012-02-22 Thread Stanwin Siow
check your settings.py file to ensure that you have the admin line uncommented in installed apps. Best Regards, Stanwin Siow On Feb 23, 2012, at 10:58 AM, shartha wrote: > Hello, > > I am trying to deploy a simple django site. The host I have chosen > installed d

Re: registration forms.py

2012-02-20 Thread Stanwin Siow
Thanks akaarial and bill, Much appreciated for the help on getting me to understand more about django. :) Best Regards, Stanwin Siow On Feb 20, 2012, at 5:11 AM, akaariai wrote: > On Feb 19, 1:42 pm, Stanwin Siow <stanwin.kts...@gmail.com> wrote: >> Hello, >>

Re: dropdown select box in django

2012-02-20 Thread Stanwin Siow
Try removing "Event Type", in the following message = models.CharField("Event Type", max_length=12, choices=EVENT_TYPE_CHOICES) Best Regards, Stanwin Siow On Feb 21, 2012, at 8:32 AM, larry.mart...@gmail.com wrote: > ield("Event Type", max_length=12, >

Re: passing multiple query sets into a url pattern

2012-02-19 Thread Stanwin Siow
Cheers bill! Figured it out already. However i'm stuck on the database problem which i wrote in a separate email. Stan Best Regards, Stanwin Siow On Feb 19, 2012, at 9:34 PM, Bill Freeman wrote: > Yes, you can, as part of the extra context, by whatever name doesn't > collide. Th

registration forms.py

2012-02-19 Thread Stanwin Siow
so much. Screenshot below: Best Regards, Stanwin Siow -- 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-u

passing multiple query sets into a url pattern

2012-02-17 Thread Stanwin Siow
ofile.username = user.username %} that will give me the list of items in userprofile table in the database. Is there a way to include the list of items from the keyword table as well? Best Regards, Stanwin Siow -- You received this message because you are subscribed to the Googl

Re: Help on forms.py

2012-02-16 Thread Stanwin Siow
Awesome! Thank you and have a great Weekend! :D Best Regards, Stanwin Siow On Feb 17, 2012, at 1:50 AM, Alasdair Nicol wrote: > Hi Stanwin, > > On 16/02/12 17:43, Stanwin Siow wrote: >> Hello, >> >> I'm trying to modify the default registration forms.py b

Help on forms.py

2012-02-16 Thread Stanwin Siow
is i would like keywords to be a drop down menu of keywords which are derived from the keyword database table. Can someone check if what i'm doing is correct? Thank you! Best Regards, Stanwin Siow -- You received this message because you are subscribed to the Google Groups "Djan

Re: Admin error

2012-02-15 Thread Stanwin Siow
I did. When admin.autodiscover() was uncommented out, It gives the syntax error when my admin.py was only as such: from r2.models import Keyword from django.contrib import admin admin.site.register(Keyword) Best Regards, Stanwin Siow On Feb 15, 2012, at 5:20 PM, Ervin Hegedüs wrote

Re: Admin error

2012-02-15 Thread Stanwin Siow
ok i figured where that error was coming from. It was from the method: admin.autodiscover() What does this method do? Best Regards, Stanwin Siow On Feb 15, 2012, at 3:12 PM, Mike Dewhirst wrote: > On 15/02/2012 5:41pm, Mike Dewhirst wrote: >>> >>> invalid syn

Re: Admin error

2012-02-14 Thread Stanwin Siow
it is to no avail think that's only for modifying the admin. Best Regards, Stanwin Siow On Feb 15, 2012, at 2:41 PM, Mike Dewhirst wrote: > On 15/02/2012 5:10pm, Stanwin Siow wrote: >> Yes i have gone through the tutorial. >> >> And i've gotten my website up and runni

Re: Admin error

2012-02-14 Thread Stanwin Siow
', 'r2.statistics', 'paypal.standard.ipn', ) besides the tutorial basically just says to uncomment the lines and we should access the page through localserver/admin Thanks for looking into this Best Regards, Stanwin Siow On Feb 15, 2012, at 2:08 PM, Mike Dewhirst wrote: > On 15

Re: Admin error

2012-02-14 Thread Stanwin Siow
it's supposed to be django's admin page. I don't have an admin.py in my project folders Best Regards, Stanwin Siow On Feb 15, 2012, at 1:46 PM, Mike Dewhirst wrote: > On 15/02/2012 4:39pm, Stanwin Siow wrote: >> Hi there, >> >> i'm getting this error when trying to

Admin error

2012-02-14 Thread Stanwin Siow
Hi there, i'm getting this error when trying to get the default admin page up. invalid syntax (admin.py, line 1) Any ideas where to rectify this? Thanks in advance Best Regards, Stanwin Siow -- You received this message because you are subscribed to the Google Groups "Django

Re: sqlite3 database error

2012-02-13 Thread Stanwin Siow
gt; 'PORT': '', # Set to empty string for >> default. Not used with sqlite3. >> } > Best Regards, Stanwin Siow On Feb 13, 2012, at 9:03 PM, ajohnston wrote: > Try changing the slashes form \ to / > > On Feb 13, 4:50 am, Marcus Maximus <mar

Re: regarding an error in settings.py

2012-02-10 Thread Stanwin Siow
can you show the actual error output? Best Regards, Stanwin Siow On Feb 10, 2012, at 4:58 PM, kalyani ram wrote: > Thank you very much. I managed to come out of this error and ended up > with a new one. > I get an error saying that the Name field is wrong. If i have not > mist

Re: regarding an error in settings.py

2012-02-09 Thread Stanwin Siow
Hi You need to install the package psycopg2. Google and install the package. It should work Best Regards, Stanwin Siow On Feb 9, 2012, at 10:10 PM, kalyani ram wrote: > Hey all, > Tday is my first day with django and i tried configuring postgresql as > a backend and got an e

Re: Creating a hierarchy of objects in my api.py

2012-01-31 Thread Stanwin Siow
Hello, Any luck on this yet? Best Regards, Stanwin Siow On Jan 31, 2012, at 11:39 AM, St@n wrote: > Hello, > > I am playing around with tastypie and i want to create a hierarchy of > data. > > What i currently have is this: > > > class keywordResource(

Re: Django models

2012-01-30 Thread Stanwin Siow
ok got it. I read the document and it was good stuff. Just got confused with copying pasting into my models.py. Thanks alot once again. :) Best Regards, Stanwin Siow On Jan 30, 2012, at 10:02 PM, Michael Elkins wrote: > On Mon, Jan 30, 2012 at 09:53:18PM +0800, Stanwin Siow wr

Re: Django models

2012-01-30 Thread Stanwin Siow
sorry to bother you again michael but once my terminal creates the model classes do i have to copy it into my app's model.py? I wanted to be sure. Best Regards, Stanwin Siow On Jan 30, 2012, at 9:35 PM, Michael Elkins wrote: > On Mon, Jan 30, 2012 at 09:26:10PM +0800, Stanwin Siow wr

Re: Django models

2012-01-30 Thread Stanwin Siow
Thank you so much. This information is very useful. It work like a charm for me. Thank you once again mike. Cheers Best Regards, Stanwin Siow On Jan 30, 2012, at 9:35 PM, Michael Elkins wrote: > On Mon, Jan 30, 2012 at 09:26:10PM +0800, Stanwin Siow wrote: >> However what does t

Re: Django models

2012-01-30 Thread Stanwin Siow
hi michael, Thanks for the tip. It is a huge step in my progress. However what does this error say? ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. Best Regards, Stanwin Siow On Jan 30, 2012, at 8:37 PM, Michael Elkins wrote