Does django support RESTful webservice and JSON encoding/decoding?

2009-03-11 Thread Joshua Partogi
Dear all, Does django support RESTful webservice meaning that I can invoke the Http method with RESTful URL? Another thing does django supports JSON encoding and decoding? Thanks in advance. -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava

Accessing django app that is start with FCGI

2009-03-13 Thread Joshua Partogi
Dear all, I'm still new with django. I have just started django with FCGI as such: python manage.py runfcgi method=prefork host=127.0.0.1 port=8801 But when I access my application from the browser : http://localhost:8801 Nothing happens, the browser just hangs without showing anything. I've re

Re: Accessing django app that is start with FCGI

2009-03-13 Thread Joshua Partogi
On Mar 14, 1:18 am, "Leonel Nunez" wrote: > > Dear all, > > > I'm still new with django. I have just started django with FCGI as such: > > python manage.py runfcgi method=prefork host=127.0.0.1 port=8801 > > > But when I access my application from the browser :http://localhost:8801 > > Nothing

Re: Very bad experience in Django...

2009-06-25 Thread Joshua Partogi
You need to define required=False On Thu, Jun 25, 2009 at 10:24 PM, steveneo wrote: > > I try to use Django in a new project. Honestly, it is very bad > experience. It looks not boosting my development speed. Today, I > almost give up and begin to look up another Python framework > > One que

Re: Writing a reusable app

2009-06-25 Thread Joshua Partogi
Hi Kenneth, I'm currently also splitting up my django apps to be reusable. What is your main reason to have full batteries ? For some people that is already running django, it is more ideal to go minimalistic because then it will be easier to plug into existing django apps. Regards, On Fri, Jun

Re: Sharing a development site cheaply (free as in beer?)

2009-06-29 Thread Joshua Partogi
On Mon, Jun 29, 2009 at 1:40 PM, Steve Hershman wrote: > > Introduction: > Hi Everyone, > Django is awesome and I hear you're all really helpful. I'm looking > forward to joining this group. > > Real message: > > So I'm developing a site with a few friends. We do not have a > dedic

Custom templatetags for loading objects

2009-06-29 Thread Joshua Partogi
Dear all, Currently I want to make a custom templatetags for loading objects to be looped over. Is there any reference that I should be reading? Kind regards, -- Join Scrum8.com. http://scrum8.com/member/jpartogi/ http://scrum8.com/blog/jpartogi/ http://twitter.com/scrum8 --~--~-~--~--

Re: Custom templatetags for loading objects

2009-06-29 Thread Joshua Partogi
On Mon, Jun 29, 2009 at 11:20 PM, Justin Lilly wrote: > > This is likely exactly what you're looking for: > > > http://www.b-list.org/weblog/2006/jun/07/django-tips-write-better-template-tags/ > > -justin > > Thanks Justin. This is really good. Regards, -- Join Scrum8.com. http://scrum8.com/me

Django and dojo

2009-07-06 Thread Joshua Partogi
Dear all, Not trying to flame here, but I've just read Jacob's post here: http://article.gmane.org/gmane.comp.web.dojo.user/3603 What made django developers changed their mind not to bundle dojo in 1.0 ? Is there any history to that? Kind regards, -- Join Scrum8.com. http://blog.scrum8.com ht

Include app urls from url root path

2009-07-07 Thread Joshua Partogi
Dear all, Because I want to plug a django app from urls.py as it is (without adding any suffix), is it possible to include the app urls with this scenario? # urls.py urlpatterns = patterns('', (r'^$', include('djapp.urls')), ) #djapp.urls urlpatterns = patterns('djblog.views', (r'^commen

Re: Include app urls from url root path

2009-07-07 Thread Joshua Partogi
On Wed, Jul 8, 2009 at 12:12 AM, Daniel Roseman wrote: > > On Jul 7, 3:10 pm, Joshua Partogi wrote: > > Dear all, > > > > Because I want to plug a django app from urls.py as it is (without adding > > any suffix), is it possible to include the app urls with th

Re: DjangoCon '09

2009-07-13 Thread Joshua Partogi
+1 Last year's recording was awesome. Will we have recording like last year again this year? Regards, On Tue, Jul 14, 2009 at 3:27 AM, Fred Chevitarese wrote: > It apears to be cool!!! I´m in Brazil! > > Maybe someone can record and put it on youtube!! > > Hugs... > > Fred Chevitarese - GNU/Lin

Re: Converting django models to google app engine models

2009-07-15 Thread Joshua Partogi
I think that django gae patch does not enable you to use django model because gae does not use dbms on the backend. On Wed, Jul 15, 2009 at 7:38 PM, Vishwajeet wrote: > > Hi, > > Thanks for the link I am using the helper but helper does not suggest > anything about models other than just saying

Re: How do you unit test forms

2009-07-16 Thread Joshua Partogi
Hi Russ, To expand this question. Do we use unittest for testing forms? Because from what I see in the code, doctest only tests your model. CMIIW. Kind Regards, On Fri, Jul 17, 2009 at 10:11 AM, Russell Keith-Magee < freakboy3...@gmail.com> wrote: > > On Thu, Jul 16, 2009 at 10:46 PM, Joshua Ru

Re: Expert System

2009-07-17 Thread Joshua Partogi
What kind of expert system do you want to know. I think expert system is a very broad topic. On Sat, Jul 18, 2009 at 10:05 AM, Carlos Eduardo Sotelo Pinto < csot...@aqpglug.org.pe> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi peolple > > some one knows somthing about works ab

How does my Model gets the objects attribute

2009-07-20 Thread Joshua Partogi
Dear all, This may seems trivial. I've been looking at django source code model/base.py and been looking around how django gives my model an objects attribute but can not find it. I can see that the ModelBase will give the _default_manager attribute, but where and how does this objects attribute g

Re: How does my Model gets the objects attribute

2009-07-20 Thread Joshua Partogi
ul 20, 2009 at 4:05 PM, Joshua Partogi > wrote: > > Dear all, > > > > This may seems trivial. I've been looking at django source code > > model/base.py and been looking around how django gives my model an > objects > > attribute but can not

Re: Django 1.1 release candidate now available

2009-07-21 Thread Joshua Partogi
Congrats! Thanks to everyone that have put all their effort delivering this beautiful framework. Regards, On Wed, Jul 22, 2009 at 12:35 PM, James Bennett wrote: > > Hi folks! Tonight we've pushed out the Django 1.1 release candidate, > which is hopefully the last stepping-stone to the final 1.1

Re: Chained Views - as in Catalyst (perl)

2009-07-27 Thread Joshua Partogi
This looks cool Alexandru. What I can see it really leverage the capability of generic views. I hate repeating too. And your solution seems to be very elegant. Going to test it out. On Mon, Jul 27, 2009 at 4:51 PM, Alexandru Nedelcu wrote: > > On Mon, Jul 27, 2009 at 2:55 AM, Alexandru Nedelcu w

Re: Chained Views - as in Catalyst (perl)

2009-07-27 Thread Joshua Partogi
Nice! This is really RESTful. Great job man. On Tue, Jul 28, 2009 at 7:54 AM, Alexandru Nedelcu wrote: > > On 27 iul., 10:01, Joshua Partogi wrote: > > This looks cool Alexandru. What I can see it really leverage the > capability > > of generic views. I hate repeating t

Re: ANN: Django 1.1 released!

2009-07-28 Thread Joshua Partogi
Already using the RC1 from last week and my 1.0 application didn't break without any code changes. Congratulations to all the team that made this possible! On Wed, Jul 29, 2009 at 4:23 PM, James Bennett wrote: > > Tonight we're extremely proud to announce the release of Django 1.1, > the latest

Re: Admin site images not coming up in 1.1

2009-08-05 Thread Joshua Partogi
On Thu, Aug 6, 2009 at 2:34 PM, emily wong wrote: > > Thanks Malcolm, I've figured it out. There were some changes to the > admin's index.html page. I've updated to the 1.1 one. > All the best, > Emily > How did you fix it? Because I experience the same thing too. Regards, -- http://blog.scru

Re: How to get rid of the 'u'? Seems to be everyhere :)

2009-08-08 Thread Joshua Partogi
u' stands for Python unicode. On Sun, Aug 9, 2009 at 12:03 PM, strotos wrote: > > Hey all, > > I am very new to Django and am having a bit of trouble with something > and I'm hoping I can get some help from you all. > > I was just wondering how do I share say a list or dictionary between > views

Re: Code generation

2009-08-09 Thread Joshua Partogi
Python Metaclass is the keyword. On Sun, Aug 9, 2009 at 10:59 PM, sjtirtha wrote: > And it is also mentioned in > http://docs.djangoproject.com/en/dev/intro/overview/ > That Django generates the Model API on the fly. How can we generate code on > the fly in python? > > steve > > > On Sun, Aug 9,

Re: Success at using "reusable apps"?

2009-08-16 Thread Joshua Partogi
On Mon, Aug 17, 2009 at 3:41 PM, Andy McKay wrote: > > > On 16-Aug-09, at 8:50 PM, Margie Roginski wrote: > > * modify the threadedcomments views.py code to take a callback > > function as an argument - that callback function could do my Task > > specific stuff as described above, but this would

Re: Using custom table instead of "user" in django

2009-08-17 Thread Joshua Partogi
On Mon, Aug 17, 2009 at 10:40 PM, Jonas Obrist wrote: > > Here's what I did: > > I took the built in auth system and changed it a bit, or to be more > precise I changed all imports within auth (because I moved it within the > pythonpath) and edited models.py: > > http://dpaste.com/81651/ > > Whol

Re: http://jacobian.org/tags/ - Source?

2009-08-17 Thread Joshua Partogi
On Tue, Aug 18, 2009 at 11:41 AM, Victor Hooi wrote: > > heya, > > I was just wondering if anybody knew if the source to the tagging/ > bookmarking part of Jacob's site has been made available? > > http://jacobian.org/tags/ > > Or if there's any other django projects that provide something > simi

Re: Django and CouchDB

2009-08-18 Thread Joshua Partogi
On Tue, Aug 18, 2009 at 8:17 PM, sjtirtha wrote: > Hi, > > i found some Python API to access couchDB. > I'm asking here for experience. > Django model is really tight to RDBMS. You are going to have a hard time making django model work with non-RDBMS -- http://blog.scrum8.com http://twitter.

Renaming displayed django application name in admin

2009-08-31 Thread Joshua Partogi
Dear all, How do we change the displayed application name in django admin? Let's say I have an application called foo, I wanted it to be displayed as bar instead of foo in the admin system. I've searched the document but failed to get the answer for this. Thank you in advance for your help. --

Re: phppgadmin not work if I have a project runing directly like: localhost/

2009-09-02 Thread Joshua Partogi
This question is not django related. On Sep 2, 6:53 pm, NMarcu wrote: > Hello all, > >    I have a project that is need to be run like: "http://localhost/";. > In this case, I can't access phppgadmin like: "localhost/phpmyadmin" > because is looking in my project files. I configure the Apache 2,

Creating a link for Foreign key in Admin

2009-09-06 Thread Joshua Partogi
Dear all, I have a model that has a foreign e.g class Foo(models.Model): bar = models.ForeignKey(Bar) class Bar(models.Model): name = models.CharField(max_length=50) This is my FooAdmin: class FooAdmin(admin.ModelAdmin): list_display = ['bar'] Now in the admin Foo's display list I want t

Re: Creating a link for Foreign key in Admin

2009-09-06 Thread Joshua Partogi
On Sun, Sep 6, 2009 at 6:20 PM, Daniel Roseman wrote: > > On Sep 6, 8:39 am, Joshua Partogi wrote: > > Dear all, > > > > I have a model that has a foreign e.g > > > > class Foo(models.Model): > > bar = models.ForeignKey(Bar) > > > >

Re: Creating a link for Foreign key in Admin

2009-09-06 Thread Joshua Partogi
On Sun, Sep 6, 2009 at 10:46 PM, Karen Tracey wrote: > On Sun, Sep 6, 2009 at 6:21 AM, Joshua Partogi > wrote: > >> >> On Sun, Sep 6, 2009 at 6:20 PM, Daniel Roseman wrote: >> >>> Define a custom method on the FooAdmin class which returns the HTML of >&

Where do we put our templates?

2009-03-14 Thread Joshua Partogi
Dear all, As I am still new to django, I have a question about the best practice for placing templates. Do we put it inside the project folder or under webserver directory? Best regards, -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava.word

Static files in development is not picked up

2009-03-14 Thread Joshua Partogi
Dear all, I've already followed in the docs as instructed here http://docs.djangoproject.com/en/dev/howto/static-files And configured as following in my urls.py if settings.DEBUG: urlpatterns += patterns('', (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root':

Re: Static files in development is not picked up

2009-03-14 Thread Joshua Partogi
Darn, It turns out that media/ is already used for admin :-( Using site_media and it's running now. On Mar 14, 11:55 pm, Joshua Partogi wrote: > Dear all, > > I've already followed in the docs as instructed > herehttp://docs.djangoproject.com/en/dev/howto/static-files

Overriding django admin functionality

2009-03-15 Thread Joshua Partogi
Dear all, I need a custom authorization needs for the admin system. I need to define certain users that is allowed to access certain admin functionality. I also need to check whether use has logged in or not. In the end I might be creating the admin from scratch. Is there any documentation I can

Re: Where do we put our templates?

2009-03-15 Thread Joshua Partogi
Thanks Doug. I kinda get the gist now. It seems that template is parsed internally by django so it doesn't matter where I put it, which is quite contrary to static files like js/css/images. Kind regards, On Mar 15, 12:25 am, Dougal Matthews wrote: > You can put them where you want but generall

Re: Overriding django admin functionality

2009-03-15 Thread Joshua Partogi
2009-03-16 at 09:40 +1100, Joshua Partogi wrote: > > Dear all, > > > I need a custom authorization needs for the admin system. I need to > > define certain users that is allowed to access certain admin > > functionality. I also need to check whether use has logged i

Starting custom settings with django-admin.py failed

2009-03-16 Thread Joshua Partogi
Dear all, I have a custom setting which I would like to run with django-admin as such: django-admin.py runserver --settings=portal.settings The name of my project is 'portal' and in my project directory there's already __init__.py so I assume that python will already recognize this as a python

Best practices to define model

2009-03-17 Thread Joshua Partogi
Dear all, Currently I have a project in which the model will be used by several django application. What is the best practice to define this model? Let's say I have a category model that will be used from the blog application and also product application. Do we define that model in either one of

Re: Best practices to define model

2009-03-17 Thread Joshua Partogi
On Mar 18, 10:50 am, Malcolm Tredinnick wrote: > On Wed, 2009-03-18 at 10:48 +1100, Joshua Partogi wrote: > > Dear all, > > > Currently I have a project in which the model will be used by several > > django application. What is the best practice to define this model?

Creating more than one search_fields in Admin

2009-03-18 Thread Joshua Partogi
Dear all, I want to have more than one search fields in my admin. I tried adding another value as such => ['title','content'] but only use the latter as the criteria. Does anyone know how to do this? Best regards, -- If you can't believe in God the chances are your God is too small. Read my

Getting logged in username in admin

2009-03-19 Thread Joshua Partogi
Dear all, How do I get the current logged in user to be used and inserted to a model? from django.db import models from django.contrib.auth.models import User class News(models.Model): creator = models.ForeignKey(User) I want the creator field to be the current logged in user. Thank you ve

Re: Getting logged in username in admin

2009-03-20 Thread Joshua Partogi
Thanks Alex. It worked beautifully now. Regards, On Mar 20, 12:43 am, Alex Gaynor wrote: > On Thu, Mar 19, 2009 at 9:32 AM, Joshua Partogi wrote: > > > > > > > Dear all, > > > How do I get the current logged in user to be used and inserted to a model? > >

RichTextField widget for django

2009-03-20 Thread Joshua Partogi
Dear all, Does anyone know where I can get an opensource plug and play RichTextField widget for django out there? Thank you very much in advance. -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava.wordpress.com/ Follow me on twitter: http://t

Re: RichTextField widget for django

2009-03-20 Thread Joshua Partogi
Thanks Greg :-) On Mar 21, 1:27 am, Greg Fuller wrote: > http://code.google.com/p/django-fckconnector/http://code.google.com/p/django-tinymce/ > > On Mar 20, 7:37 am, Joshua Partogi wrote: > > > Dear all, > > > Does anyone know where I can get an opensource plug

django ORM not compatible with postgres

2009-03-22 Thread Joshua Partogi
Dear all, I just encounter this error using pyscopg2 as my db adapter Exception Type: ProgrammingError Exception Value:can't adapt Exception Location: /usr/lib/python2.5/site-packages/django/db/backends/util.py in execute, line 19 The query that I'm trying to run from ad

Re: django ORM not compatible with postgres

2009-03-22 Thread Joshua Partogi
On Mar 23, 6:56 am, Mike Ramirez wrote: > I think what you want to do with this style is: > >         obj.user = User.objects.get(username=request.user.username) > > > or maybe just > > > obj.user = request.user Hi Mike. Thank you very much. This syntax works with psycopg2. I wonder why the pr

will dmigrations be merged into django codebase?

2009-03-25 Thread Joshua Partogi
Is there any chance dmigrations (http://code.google.com/p/dmigrations/) will be merged into django codebase? Because it removes the pain for db migrations :-D Regards, -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava.wordpress.com/ Follow me

Re: will dmigrations be merged into django codebase?

2009-03-25 Thread Joshua Partogi
gt; On Thu, Mar 26, 2009 at 8:42 AM, Joshua Partogi   > > wrote: > > >> Is there any chance dmigrations > >> (http://code.google.com/p/dmigrations/) will be merged into django > >> codebase? Because it removes the pain for db migrations :-D > > >

How do I define choices in ChoiceField

2009-03-27 Thread Joshua Partogi
Hi all, Let me just get straight to the point I tried these: label = forms.ChoiceField(choices=({'one':'one','two':'two'}) ) And received these: Exception Type: TemplateSyntaxError Exception Value:Caught an exception while rendering: too many values to unpack What was wrong wit

Re: How do I define choices in ChoiceField

2009-03-27 Thread Joshua Partogi
Thanks for the hints guys. It works now. :-) On Mar 28, 12:49 am, Stephan John wrote: > Am Freitag, 27. März 2009 14:43:08 schriebJoshuaPartogi: > > > bel = forms.ChoiceField(choices=({'one':'one','two':'two'}) ) > > it must be tuples: > > bel = forms.ChoiceField(choices=(('one', 'one'), ('two'

django.contrib.auth.models.User User model can't be saved

2009-03-27 Thread Joshua Partogi
Dear all, I currently want to have a registration system. For that matter I will be using the existing django.contrib.auth.models.User. So I created a form object as such: class RegisterForm(ModelForm): class Meta: model = User And the view: def form(request): if request.method

Re: django.contrib.auth.models.User User model can't be saved

2009-03-28 Thread Joshua Partogi
On Mar 28, 2:17 pm, Malcolm Tredinnick wrote: > On Sat, 2009-03-28 at 13:45 +1100, Joshua Partogi wrote: > > Dear all, > > > I currently want to have a registration system. For that matter I will > > be using the existing django.contrib.auth.models.User. > > &

Re: django.contrib.auth.models.User User model can't be saved

2009-03-28 Thread Joshua Partogi
On Mar 28, 9:31 pm, Matthew Somerville wrote: > Joshua Partogi wrote: > > That is exactly the problem. No exception is thrown. But I guess it > > didn't pass the validation because it wasn't redirecting to another > > page. Which is funny be

What hash algorithm does django auth use?

2009-03-29 Thread Joshua Partogi
Hi all, I tried saving the password data with this function import hashlib hashlib.md5( new_member.password ).hexdigest() but when I log in again with that password it doesnt work. I thought we're to use hexdigest ? Did I miss something here? Thank you very much in advance -- If you can't

Re: What hash algorithm does django auth use?

2009-03-31 Thread Joshua Partogi
On Mar 30, 12:58 pm, Malcolm Tredinnick wrote: > A number of problems here. Firstly, Django uses SHA1 as the default > hashing algorithm. Secondly, you haven't accounted for including any > salt in the password hash (which make the task of dictionary attacks > much harder). > > The correct way

Authorization on data level in django admin

2009-04-02 Thread Joshua Partogi
Dear all, In django admin we can give permission to user to edit, delete or create certain model. But what I want to do now is a user can only edit or delete the data that he/she created. Is there any way we can do this in django admin? Thank you very much in advance -- If you can't believe i

Re: Authorization on data level in django admin

2009-04-02 Thread Joshua Partogi
On Apr 3, 11:23 am, Malcolm Tredinnick wrote: > On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote: > > Dear all, > > > In django admin we can give permission to user to edit, delete or > > create certain model. But what I want to do now is a user can only > >

django.contrib.auth user password decryption

2009-04-04 Thread Joshua Partogi
Dear all, I already take a look at the django.contrib.auth.models but could not find any methods for decrypting the user password. Sometimes we need to get the real text password to be sent to user. What is the best way to do this? Anybody has got an idea? Thank you very much in advance! --

Re: django.contrib.auth user password decryption

2009-04-04 Thread Joshua Partogi
On Apr 4, 11:49 pm, Masklinn wrote: > On 4 Apr 2009, at 15:38 , Joshua Partogi wrote: > > > Dear all, > > > I already take a look at the django.contrib.auth.models but could not > > find any methods for decrypting the user password. > > > Sometimes we need

How to get session data from template

2009-04-05 Thread Joshua Partogi
Dear all, I'd like to get session object because I would like to figure out whether a user is still logged in or not. I tried searching the documents but could not find a way to do it. Using {% if user.is_authenticated %}, the user object is only available in one request but will be dissapeared i

Re: How to get session data from template

2009-04-05 Thread Joshua Partogi
On Apr 6, 12:25 am, Antoni Aloy wrote: > In your render_to_response don't forget to add > context_instance=RequestContext(request) Thanks. So I have to add this everytime I return render_to_response? I thought I only add it on my login views. Many thanks --~--~-~--~~~-

Re: django.contrib.auth user password decryption

2009-04-05 Thread Joshua Partogi
I was about to do that. :-D But after thinking about it, I didn't do that. Thanks guys On Apr 5, 6:51 pm, soniiic wrote: > I hope that doesn't mean storing the real password in a table in the > database :) > > On Apr 4, 11:12 pm, Joshua Partogi wrote: > > &g

Looking for a django job

2009-04-06 Thread Joshua Partogi
Dear all, Is there any other website that posts django jobs besides http://djangogigs.com/ ? I'm looking for a django job. Thank you very much in advance -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava.wordpress.com/ Follow me on twitter:

django captcha apps

2009-04-07 Thread Joshua Partogi
Hi all, Can anyone recommend me any good django captcha apps? I tried search on the list but the results that is returned is mostly about errors with django captcha. Thank you very much in advance. -- If you can't believe in God the chances are your God is too small. Read my blog: http://josh

Send validation error message to the screen

2009-04-12 Thread Joshua Partogi
Dear all, I want to send and display validation error message from the view to the template, how do I do this in Django? I tried searching on the documents but could not find any topics on error message. Could anyone give me a hint on how to do this? Thank you very much -- If you can't believe

Re: Send validation error message to the screen

2009-04-12 Thread Joshua Partogi
Thanks Malcolm, What I'm looking after is sending my custom validation error message that is not covered by django. Thank you very much On Apr 13, 10:15 am, Malcolm Tredinnick wrote: > On Sun, 2009-04-12 at 23:37 +1000, Joshua Partogi wrote: > > Dear all, > > > I w

Re: TreePanel in Django

2009-04-13 Thread Joshua Partogi
Yes you can use ext-js with django for this. On Apr 14, 6:23 am, Eduardo Aragón Montes wrote: > Hi everyone..I'm new in django and I'm developing and app that have virtual > storage for users...so i would like to do a treepanel for every user where > they can see what files they have uploaded an

Re: Send validation error message to the screen

2009-04-13 Thread Joshua Partogi
Thanks Margie, Let me try that first. Cheers, On Apr 14, 2:12 am, Margie wrote: > Not sure if this is what you are looking for, but I use the > notifications app to add some extra info to my html, to alert the user > that there are errors in the form below or to let them know that there > was

Re: Send validation error message to the screen

2009-04-13 Thread Joshua Partogi
I'm sorry Malcolm, I'm from Java background where I usually put messages on its own stack. If the way django do it is to put it in context, then I'm gonna use it that way. Thanks for clearing this up. :-) Cheers, On Apr 13, 10:35 am, Malcolm Tredinnick wrote: > On Sun, 2009-04-12 at 17:22 -07

Re: Registration

2009-04-19 Thread Joshua Partogi
What exactly your problem? We need more specific details about your errors that you're getting On Apr 19, 7:28 pm, TP wrote: > Still having the same problem if anyone can help? > > On Apr 17, 3:35 pm, TP wrote: > > > > > Hi I have a HTML website and im looking to use Django-registration > > wi

Resize image on the fly during uploading

2009-04-19 Thread Joshua Partogi
Dear all, Does django has a wrapper over PIL to resize the image from ImageField during uploading? Or do we have to use PIL directly to do this? Thanks in advance -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava.wordpress.com/ Follow us on

Re: Resize image on the fly during uploading

2009-04-19 Thread Joshua Partogi
On Apr 20, 10:24 am, Alex Gaynor wrote: > On Sun, Apr 19, 2009 at 8:22 PM, Joshua Partogi wrote: > > > > > > > Dear all, > > > Does django has a wrapper over PIL to resize the image from ImageField > > during uploading? Or do we have to use PIL direc

How to relate child instance to Parent?

2009-04-20 Thread Joshua Partogi
Dear all, I have an inheritance model as such: class User(models.Model) class Staff(User) Now I already have the instance of User inside view: user = User.objects.create(name="Joe") now how do I relate this user instance to the staff instance? I tried looking in the documentation but can no

Re: How to relate child instance to Parent?

2009-04-20 Thread Joshua Partogi
to the user object is > here;http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-... > > You might find that way easier. > > Cheers, > Dougal > > --- > Dougal Matthews - @d0ugalhttp://www.dougalmatthews.com/ > > 2009/4/20 Joshua Partogi : > > >

Re: How to relate child instance to Parent?

2009-04-21 Thread Joshua Partogi
toring-additional-... > > You might find that way easier. > > Cheers, > Dougal > > --- > Dougal Matthews - @d0ugalhttp://www.dougalmatthews.com/ > > 2009/4/20 Joshua Partogi : > > > > > Dear all, > > > I have an inheritance model as such: > >

How to add datepicker for InputDateField

2009-04-22 Thread Joshua Partogi
All, I've got an InputDateField in my form, but when it is rendered to the templates, there is no datepicker beside it like the ones in the admin. How do I add this datepicker to an InputDateField in my form? Thank you very much in advance -- If you can't believe in God the chances are your Go

Re: django on tomcat

2009-04-23 Thread Joshua Partogi
On Apr 24, 8:33 am, Brendan Miller wrote: > What servers does django support? Is there any way to get it with > cpython to run on top of tomcat? Aren't you suppose to use Jython for that? --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: Show user page on first login.

2009-04-23 Thread Joshua Partogi
On Apr 24, 4:14 am, tristan wrote: > Hi there, > > I'm build a Django web-app with some pinax components, and would like > to show to take the user to a specific page on their first login, and > afterwards not show them that page again. > Has anyone implemented this, or seen any example code fo

Re: ColdFusion components calling Django-Jython objects

2009-04-23 Thread Joshua Partogi
I don't know much about ColdFusion. But if you ever want to call django components you can make a loosely coupled by sending JSON objects from django to your Coldfusion apps. On Apr 24, 9:47 am, EhVK9OAlL9oT wrote: > Hi, > > Can ColdFusion components call Django objects?  Do I need to install >

Django on Google app engine

2009-04-24 Thread Joshua Partogi
Hi all, I came accross this article: http://code.google.com/appengine/articles/django.html Which made me interested how far can you go with django on app engine? Because reading that article there are several things that you must turn off from the django configs namely session & database. Are we

Re: Offtopic: MySQL or PostgreSQL for a limited VPS ?

2009-04-24 Thread Joshua Partogi
On Apr 25, 8:20 am, Konstantin S wrote: > Hello! > > I am planning to deploy django based site on a limited VPS and want to > know which database is more suitable for this ? If I've had a 'normal' > hardware I'd vote for the PostgreSQL but maybe in case of limited > resources MySQL would be a b

Re: Django on Google app engine

2009-04-25 Thread Joshua Partogi
is that > you'll have to use the models provided with the SDK. Also, if you > previously deployed Django, you shouldn't have any trouble following > the guidelines for deploying Django on Google App Engine, so you > should definitely give it a try. > > On Apr 24, 9:04 am, J

Re: get and display html from another site

2009-04-25 Thread Joshua Partogi
On Apr 25, 6:30 pm, keegan3d wrote: > Im building a site that uses wordpress for the blog, and django for > everything else. I want to be able to pull in some html from the blog. > > So far if I get the html with urllib2 and then pass the response to > render_to_response it gets formatted to pr

Django on Amazon EC2

2009-04-28 Thread Joshua Partogi
Dear all, In favor of choosing Google app engine to run our Django apps, we are also considering Amazon EC2 because from what we've read we are not tightly locked into Google API. Has anyone here had any experience on deploying django apps on Amazon EC2 that would like to share their experience

Re: Django on Amazon EC2

2009-04-30 Thread Joshua Partogi
 You just need to get to grips with > using EC2 and then install Django on your instance.  I've been using > Django on an EC2 instance since late last year and they work fine > together.  I use S3 as my main media server via S3Storage. > > On Apr 28, 8:41 pm, Joshua Partogi wr

Re: Django on Amazon EC2

2009-04-30 Thread Joshua Partogi
Hi Jörn, Thank you very much for sharing your experience. We were going to use it for a community site, but it seems that EC2 is not reliable though scalable. This is a tough choice. :-( Any chance that you already created an AMI for this that perhaps you can share with the community? Best rega

django CommaSeparatedStringField component

2009-05-04 Thread Joshua Partogi
Dear all, Does anybody know a good CommaSeparatedStringField for django? The one that I expect is sort of like the CommanSeparatedIntegerField that comes with django, but for String. Thank you very much in advance. -- If you can't believe in God the chances are your God is too small. Read my bl

Blogs and presentation on Euro djangocon

2009-05-05 Thread Joshua Partogi
All, Is there anyone here that blogs on euro djangocon, or have any pictures regarding the event etc. I'm curious on how it goes. Thanks. -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava.wordpress.com/ Follow us on twitter: http://twitter.co

Re: What debugger do you use?

2009-05-11 Thread Joshua Partogi
I don't know anything that is better than NB with Python plugin right now. I've tried IntelliJ with Python plugin, but it was quite heavy (on Linux at least) :-( But I really like how IntelliJ treats refactoring like the Java refactor browser. I also tried PyDev but the click-on-module-name is no

Time & Date calculation in template

2009-05-13 Thread Joshua Partogi
Dear all, Is it possible to do time and or date calculation in the template? Let's say I have a DateField {% now %} and want to subtract it with an IntegerField (let's say 4, to get 4 years before today) in the template. If it's possible, what is the syntax for it? Thank you very much in advanc

This Mailing list logo

2009-05-13 Thread Joshua Partogi
Hi all, Just an intermezzo question. Is there anyone here that's going the change this django-users mailing list logo to django logo instead of only computer icon from google groups? :-D Cheers. -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajav

Gravatar django apps

2009-05-14 Thread Joshua Partogi
Dear all Does anybody know a good django application for gravatar ( http://gravatar.com ) ? Thank you very much for the redirection. :-) -- If you can't believe in God the chances are your God is too small. Read my blog: http://joshuajava.wordpress.com/ Follow us on twitter: http://twitter.co

Re: Gravatar django apps

2009-05-14 Thread Joshua Partogi
Thanks for the redirection Erreon. I will try it out. :-) Best regards, On May 15, 5:00 am, Erreon wrote: > If you don't want to implement your own solution you could > use.http://code.google.com/p/django-gravatar/ > > On May 14, 6:30 am, Joshua Partogi wrote: > >

Re: Gravatar django apps

2009-05-14 Thread Joshua Partogi
t the image shows the gravatar of respective user. > > --rama > > On May 14, 4:30 pm, Joshua Partogi wrote: > > > Dear all > > > Does anybody know a good django application for gravatar > > (http://gravatar.com) ? > > > Thank you very much for the redi

Django developer salary rate in USA

2009-05-18 Thread Joshua Partogi
Hi everyone, I'm looking for opportunity for a django career in USA (Note: I've never been to US in my entire life). Now can anyone give me a ballpark figure of the salary rate as a django developer in the US? I've tried looking in djangogigs.com but can not find an estimate of salary rate in the

Re: Admin interface is slow

2009-05-20 Thread Joshua Partogi
Is this a local process or remote process ? On May 20, 10:36 pm, Binseer wrote: > Hi all, > My admin interface is running dead slow.. I am using postgresql8.3. > When i checked running processes by "ps ax | grep "postgres" ", it > shows some idle processes are running in the very begining itself

How to write subdomain from django apps

2009-05-20 Thread Joshua Partogi
Sorry for this lame question. I just saw an application called suggestionbox.com and it's able to write subdomain based on the customer id. Do we access and write BIND configuration on the fly for this? Or is there a better way to do it? Anyone that has experience with this? Thanks very much in

  1   2   >