Django form save failed.

2012-07-17 Thread yillkid
Hi all. I want to extend my "/admin/auth/group/add/" interface. Now widget is show correctly, but can't write into DB. Show my code ... models.py: # Set default encoding, 2012/06/26, add by suskind import sys reload(sys) sys.setdefaultencoding('utf8') from django.db import models from django.cont

celery workers not consuming messages

2012-07-17 Thread rahul jain
All, I have started celery on development server using this: python manage.py celeryd -E --loglevel=info I can see from rabbitmq management UI that its receiving messages under ready Queue. Screenshot attached. Rabbitmq logs though sometimes print it and sometimes not =INFO REPORT 17-Jul-

Re: Template problem

2012-07-17 Thread Eli_West
why I posted this question, i dont know plz help lol -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/m68NaOa1yXoJ. To post to this group, send email to djan

Re: serve media and static separately for development

2012-07-17 Thread Eli_West
Example / recommended procedure for devel edit url.conf like this: (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': '/home/blah/media'}), And have all media and static files in there. I want to be able to serve multiple locations and avoid having to replace /site_

serve media and static separately for development

2012-07-17 Thread Eli_West
I like the recent move using collect static and splitting up static files (css js ect) and media files. But for development they still have everything clumped into site_media, the docs don't recommend splitting this up (why). I want to have my code ready to go when I switch to prod so I'm using

Re: django+apache

2012-07-17 Thread Kurtis Mullins
Hello Carlos, I apologize but I am unable to understand your problem. It looks like you are trying to use Apache to forward requests on to Django using "mod_python". According to Django's web site, "mod_python" is deprecated and therefore shouldn't be used. (Source: https://docs.djangoproject.com

Re: unable to override widget

2012-07-17 Thread Nicolas Emiliani
On Sunday, July 15, 2012 6:16:42 PM UTC-3, Nicolas Emiliani wrote: > > Crap, hit the send key, there it goes. Sorry. > > > Hi! >> >> I'm trying to override the AdminFileWidget with no success. The idea is >> to get a thumbnail >> next to the uploaded files in a tabular view of the admin site. I

Re: Android app that can post to a django server

2012-07-17 Thread Gink Labrev
If you want to post and access data via mobile, the best option is to create an API. You can use Tastypie to this task ( http://django-tastypie.readthedocs.org/en/latest/index.html). If you don't want to complicate now, you can create views that return JSON values to get data. For example: obj =

django+apache

2012-07-17 Thread Carlos Andre
hi programers, i'm with troble in apache with django connect! what i can make to connect! i start with mod_python, but have very troble! can Somebory help me? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: FastCGI Problems

2012-07-17 Thread Newt
Finally got everything tweaked (sort of). I needed to add a RewriteBase directive to .htaccss, amend httpd.conf to use FastCGIServer and not FAstCGIEXternalServer. That then gave me bind permission denied errors, which I was only able to resolve by putting selinux into permissive mode, which I'

Re: FastCGI Problems

2012-07-17 Thread Newt
I've spent a little more time on this, and I've been trying out python mysite.fcgi I've now got: os.environ["DJANGO_SETTINGS_MODULE"] = "settings" That seems to get python mysite.fcgi, to work better, but I now have errors: WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! WSG

Re: Any free cloud database hosting ?

2012-07-17 Thread Kurtis Mullins
Just setup an amazon EC2 free-tier instance and run your own database. You don't need a credit card for that, do you? (Or maybe you do?) Also, rackspace has a "beta" cloud-based Database that is currently free (until it goes live soon). It's based off of MySQL. Finally, maybe you could look f

Re: Hello Django Warriors!

2012-07-17 Thread Kakar Arunachal Service
On Sun, Jul 15, 2012 at 2:56 AM, Timothy Makobu wrote: > Django Warr LOL! > > Have a look at Pinax http://pinaxproject.com/ > > > On Sun, Jul 15, 2012 at 5:18 AM, Kurtis Mullins > wrote: > >> On Sat, Jul 14, 2012 at 4:44 PM, Kakar >> >> I'm very new to this Phyton and i just downloaded dja

Re: Extend user model: class inheritance or OneToOneField?

2012-07-17 Thread Alessandro De Noia
Hi 2012/7/14 Melvyn Sopacua > > Important question: Why? > > I need to store more information about the user, like birthday, language preference etc Moreover I need to have two different users and store different information for each user type. In a near future I will need to integrate auth an

Re: Tutorial question

2012-07-17 Thread Tomas Neme
> Do these just get stuck onto the end of my class Poll(models.Model):? like > this... Yes, that's right perhaps you should start here: http://docs.python.org/tutorial/classes.html you should probably at least be comfortable enough with python to know how to define classes before diving into dj

Re: Tutorial question

2012-07-17 Thread Kurtis Mullins
Hey Jeff, Yes, these methods would go inside of your Poll Class. I'm not sure if the indentation was messed up through e-mail, but make sure that your method body is indented one step deeper than your method signature. For example: class Poll(...): # def __unicode__(self): ret

Re: Tutorial question

2012-07-17 Thread Jonathan Baker
Yes, the methods are part of your model class. You almost have it right, and just need to fix your indentations: class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __unicode__(self): return self.question def was

Tutorial question

2012-07-17 Thread jeffsarge
Hi, I'm learning Django and Python at the same time. Going through the Django tutorial (writing your first Django app) Going smooth until I hit the part where I need to add a unicode method to both Poll and Choice: def __unicode__(self): return self.question same with the custom methods th

Re: Directory indexes are not allowed here. for Grappilli

2012-07-17 Thread chhots
check my url.py On Tuesday, July 17, 2012 10:46:51 PM UTC+5:30, chhots wrote: > > exactly i am not getting this sentence what is that... > > i m getting on it on ubuntu os. > > On Monday, July 16, 2012 10:51:16 PM UTC+5:30, Thomas Orozco wrote: >> >> What is your actual problem here? >> >> Do you

Re: Directory indexes are not allowed here. for Grappilli

2012-07-17 Thread Tomas Neme
On Mon, Jul 16, 2012 at 2:56 PM, Dott. Tegagni Alessandro wrote: > > write the urls.py code and var. static in settings.py, please. do as he says. Also you could try asking the grapelli user group, if there is one, this seems to be specific -- "The whole of Japan is pure invention. There is no

Re: Directory indexes are not allowed here. for Grappilli

2012-07-17 Thread chhots
exactly i am not getting this sentence what is that... i m getting on it on ubuntu os. On Monday, July 16, 2012 10:51:16 PM UTC+5:30, Thomas Orozco wrote: > > What is your actual problem here? > > Do you not understand the message? Do you have a reason for which you'd > want this directory inde

Template problem

2012-07-17 Thread chhots
added grappelli theam for django admin and getting this error why i dont know plz help 'url' is not a valid tag library: Template library url not found, tried django.templatetags.url,grappelli.dashboard.templatetags.url,grappelli.templatetags.url,django.contrib.admin.templatetags.url -- You rec

Android app that can post to a django server

2012-07-17 Thread gavin lyons
I have built the Django server as shown here http://stackoverflow.com/questions/5871730/need-a-minimal-django-file-upload-example I have been trying to build an android app that will allow me to select files on my phone and post them to the the server. All the examples i am finding are for pos

R: get() returned more than one ....

2012-07-17 Thread francescobocca...@libero.it
Hi, i solved : i have to use userpathfile = FileStore.objects.filter(username=user) instead userpathfile = FileStore.objects.get(username=user) Thanks Francesco >Messaggio originale >Da: francescobocca...@libero.it >Data: 17/07/2012 14.49 >A: >Ogg: get() returned more than one >

Re: get() returned more than one ....

2012-07-17 Thread Michael Elkins
On Tue, Jul 17, 2012 at 02:49:49PM +0200, francescobocca...@libero.it wrote: i have a question. In my Django views i used: def getpath(request,user="test"): userpathfile = FileStore.objects.get(username=user) return userpathfile my table FileStore contain 3 fields: id,username,pa

get() returned more than one ....

2012-07-17 Thread francescobocca...@libero.it
Hi all, i have a question. In my Django views i used: def getpath(request,user="test"): userpathfile = FileStore.objects.get(username=user) return userpathfile my table FileStore contain 3 fields: id,username,path I would like get all data from a user register (in my example "te

Multiple TaggableManager() on model [django-taggit]

2012-07-17 Thread Alir3z4
Hi This question is about having more than one taggit .managers .TaggableManageron model. I gue

Re: django comments with tinymce

2012-07-17 Thread Aljoša Mohorović
On Tue, Jul 17, 2012 at 10:47 AM, Benasg wrote: > Hello, when I using django comments without tinymce it`s works perfect, but > when I add tiny I get error "This field is required". > Any suggestion? can you post models.py code before and after you added tinymce? Aljosa -- https://twitter.com/ma

django comments with tinymce

2012-07-17 Thread Benasg
Hello, when I using django comments without tinymce it`s works perfect, but when I add tiny I get error "This field is required". Any suggestion? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://

Re: start with django

2012-07-17 Thread Alberto Souza
I think Django docs is a good place to learn how to develop with django and to learn python i know this video sequence http://www.youtube.com/watch?v=tKTZoB2Vjuk Django docs: https://docs.djangoproject.com/en/1.4/ 2012/7/16 Arian Asadi > hello all I learnt very small of python and django . wha

Re: start with django

2012-07-17 Thread rochacbruno
Follow the django Book and you will be ok! http://www.djangobook.com On Monday, July 16, 2012 7:31:49 PM UTC-3, Arian Asadi wrote: > > hello all I learnt very small of python and django . what I must to do to > learn these? > can you get me a link to download the learn video ? > -- You receive

Re: Excluding items from a queryset

2012-07-17 Thread Sithembewena Lloyd Dube
Thanks, everyone. I sort of realised I'd need an annotation but wasn't too clued up on its use. This is just what I needed. Best wishes. On Tue, Jul 17, 2012 at 2:05 AM, akaariai wrote: > On 16 heinä, 14:38, Sithembewena Lloyd Dube wrote: > > Hi everyone, > > > > I have a queryset of categorie