On May 23, 2012, at 2:06 PM, cocoza4 wrote:
> I'm new to Django.
> How can i connect Django with jQuery?
>
> is there any additional tool that i need to install?
>
> could you show me a sample code also?
>
> Thanks in advance.
>
All you need to do is to insert the jquery code into the html pa
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 getting a
>>> "connectio
you just 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
> Hello there,
>
> Just wanted to enquire about a
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 me
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
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.
>
> BTW,
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, De
know 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 mes
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 wrote:
>> hey daniel,
>>
>> I used the johnbox version.
>>
>
> I found this v
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 wrote:
>> You'll need to enable the CSRF middleware, adjust your view and make use of
>&g
?
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, sen
ate.
How do i go about doing that?
The queryset i want to pass is Keywords that is imported from r2.models.
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 ema
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&
t the time to 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 Djang
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 Profile s
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
7;auth_password_reset_confirm'),
url(r'^password/reset/complete/$',auth_views.password_reset_complete,name='auth_password_reset_complete'),
url(r'^password/reset/done/$',auth_views.password_reset_done,name='auth_password_reset_done'),
url(r
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 subsc
rd_subscription_dict)
except:
return simplejson.dumps('\\')
Do appreciate any help i can get
Thanks!
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
success
: function(response) {alert("JSON Data: " + response.new_list.keyword);
},
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
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 pri
app,
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
e in my database to be passed as a parameter to the next
function 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 yo
a specific 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?
> -
else:
html = form.errors.as_ul()
response = simplejson.dumps({'success':'False', 'html':html})
if request.is_ajax():
return HttpResponse(response, mimetype='application/json')
else:
return HttpR
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.admin&q
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 django for
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 wrote:
>> Hello,
>>
>> The below method is an excerpt t
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,
>
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
> co
Hello,
The below method is an excerpt taken from the default registration forms.py
with a few additional inputs.
class RegistrationForm(forms.Form):
keywords = forms.ModelMultipleChoiceField(queryset=Keyword.objects.all())
def save(self, profile_callback=None):
new_user
if userprofile.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
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
x27;))
=
The thing 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 t
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
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
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
contrib.admin',
# Uncomment the next line to enable admin documentation:
'django.contrib.admindocs',
'registration',
'r2.topic',
'r2.opinion',
'r2',
'r2.statistics',
'paypal.standard.ipn',
)
besi
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 e
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
"Dj
th sqlite3.
>> 'HOST': '', # Set to empty string for
>> localhost. Not used with sqlite3.
>> 'PORT': '', # Set to empty string for
>> default. Not used with sqlite3.
>> }
&g
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
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
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(
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 wrote:
>
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 Si
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
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
49 matches
Mail list logo