Re: duplicate entry in django

2013-09-03 Thread Laurent Meunier
On 04/09/2013 06:31, Harjot Mann wrote: In my app whenever the page is refreshed, the double entry is done in database. I have faced this many times. What should I do to prevent the multiple entries in database? Hi, Can you show use the source code of the view where you create your entry in

duplicate entry in django

2013-09-03 Thread Harjot Mann
In my app whenever the page is refreshed, the double entry is done in database. I have faced this many times. What should I do to prevent the multiple entries in database? -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http://harjotmann.wordpress.com/daily-diary/ -- You

Re: Django-registration reset password templates not getting picked up

2013-09-03 Thread Kelvin Wong
I put the overridden templates (auth, registration, etc) in a project templates folder in the project root. You have to set it up though in your settings.py as I noted earlier. The filesystem loader is still right there above the app_directories loader. To me the overridden templates don't seem

django-shop bitcoin plugin

2013-09-03 Thread sebastian
Hi, We just release the beta version of our django shop plugin to accept Bitcoin. If anyone would like to give it a try for the first months while in beta we won't charge fees, only the miners fee of 0.0001 btc will apply. You can install the plugin via pip https://pypi.python.org/pypi/djang

Re: Django-registration reset password templates not getting picked up

2013-09-03 Thread Vibhu Rishi
Hi Kevin, You were absolutely correct. Moving 'homepage' to the top made it work. Thanks! I was doing all my templates within a single directory pre 1.5 . But then in 1.5 they changed it, so I got a bit confused but then started putting the templates within the app. Not sure if this is good or ba

QuerySet to cover a date range

2013-09-03 Thread Neil Menne
Hello, all! I'm trying to get a query set that 'covers' a date range. Each object only contains a single date. For example, given a start date of 8/1/13 and an end date of 8/30/13, I want to filter my objects such that i get the first object prior to the start date and all objects up to the end

Re: Prefork vs threaded when I want to spawn my own threads

2013-09-03 Thread Javier Guerra Giraldez
On Tue, Sep 3, 2013 at 9:28 AM, Dig wrote: > My django application is host in uwsgi, which is support timer(interval). So > I insert my task parameters into database and execute tasks in timer > handler. note that uwsgi also has a spooler facility... -- Javier -- You received this message be

Re: Prefork vs threaded when I want to spawn my own threads

2013-09-03 Thread Dig
I have a similar need. And I implement this feature with uwsgi. My django application is host in uwsgi, which is support timer(interval). So I insert my task parameters into database and execute tasks in timer handler. Regards, Dig On Sep 3, 2013 9:26 PM, "Russell Keith-Magee" wrote: > > On Tue

Re: Prefork vs threaded when I want to spawn my own threads

2013-09-03 Thread Russell Keith-Magee
On Tue, Sep 3, 2013 at 9:50 PM, wrote: > In my Django application I need to schedule some tasks to run in future. > Celery is not an option here because some crucial options - mainly, the > ability to revoke() a task - are only available with fully-featured MQ > backend and I only have a limited

pattern matching wrong app ???

2013-09-03 Thread bab mis
I have 2 app inside my django project: url(r'^demoproj/$', include('demoproj.urls')), url(r'^sample/$', include('sample.urls')), XX84/sample always redirects to demoproj. Any idea why??? -- You received this message because you are subscribed to the Google Groups "Django users"

Add image to all check box django

2013-09-03 Thread roopasingh250
forms.py class TypeSelectionForm(forms.Form): checkbox_field = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple(), label="", required=False) def __init_

Re: Django Calendar App Just Like Google Calendar

2013-09-03 Thread Margie Roswell
I'm late back to this thread, but Tito, thank you! I have a "dumb" (or basic) question. Looks like events can be dragged and dropped. Is that true for the end-user as well? -- http://FarmBillPrimer.org http://www.BaltimoreUrbanAg.org (Please send events; This site is hungry.) http://www.ExcellentN

Prefork vs threaded when I want to spawn my own threads

2013-09-03 Thread mailbox . tec
In my Django application I need to schedule some tasks to run in future. Celery is not an option here because some crucial options - mainly, the ability to revoke() a task - are only available with fully-featured MQ backend and I only have a limited shared hosting where I can't install this kin

logo with same filename is not changed, s3boto issue?

2013-09-03 Thread TinyJaguar
I'm working on reviving a stale project that uses s3boto (DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage') (Django 1.3) one of the models has an ImageField that contains the logo of the model. When I want to replace the logo with a new logo that has the same filename the new log

Best way to build a menu according to the users permissions

2013-09-03 Thread Lucas Ricoy
Hi, I would like to know if someone has found a "best" approach to manage django-user permissions and build an permission-based menu. I know It's doable with jquery/javascript and others, but i wouldn't like to depend on javascript to show/hide critic items. Also, a lot of {% if perms %} is not

Django Tastypie - Paginator

2013-09-03 Thread Hélio Miranda
Hi I in my application when the BD have a large number of records (10 000) after she becomes slow to see all the application. So I wanted to use the Paginator Tastypie as well just sent every x records depending on the paging done on the client and there was already fast. The problem is that I a