Button with save and custom action in Admin

2012-12-10 Thread Rob
In Django 1.4 I am working on a small mailing app, and in the admin change page I would like to add a button called "send mailing". When the user presses the button the model should be saved first, en then redirected to a custom page to view and confirm the mailing before send. I saw lots of sn

Re: Нужен Django мастер на все руки

2012-12-10 Thread fuxter fuxter
Django russian group On Monday, December 10, 2012 8:21:02 AM UTC+4, GeorgeS wrote: > > Нужен Django мастер на все руки: > > - Опыт с Django от 4 лет > > - Отличное знание серверной части > > - Отличное знание Postgres > > - H

Re:

2012-12-10 Thread Mario Gudelj
Make sure you have files 500.html and 404.html in your templates folder. If not create them. Or use django 1.5 Mario www.zenbookings.com On 10 Dec, 2012 5:14 PM, "vinoth kumar renganathan" < vinoth.vinothre...@gmail.com> wrote: > when i start to run python manage.py runserverto start the > DE

Re: Loading XSD file into memory ONCE

2012-12-10 Thread Tom Evans
On Sun, Dec 9, 2012 at 8:05 AM, Dwayne Ghant wrote: > Hello All, > > I will be short and sweet. I have a simple (well at least I think it's > simple) question. First let me explain, I'm writing a RESTful webservice > that uses validates xml submissions using an xsd (440kb in size), > pre-define

Re: Loading XSD file into memory ONCE

2012-12-10 Thread Ludwig Kraatz
Hi Dwayne, I would suggest just use the django cache api: https://docs.djangoproject.com/en/dev/topics/cache/#the-low-level-cache-api Memcache is able to store 1mb Value. https://docs.djangoproject.com/en/dev/topics/cache/#memcached If you don't have / want a memcache instance, you can use loc

Re: Button with save and custom action in Admin

2012-12-10 Thread Rob
I found a snippet which does everything I want (in case anybody runs into the same problem): http://djangosnippets.org/snippets/2005/ -- 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.googl

Re: How to make django-registration use Chinese as username?

2012-12-10 Thread Tomas Neme
I *think* it should work OK, data-wise. Try changing the login/registration forms so chinese characters pass the verification process. You can start by trying with a simple CharField with no verification and see if it works. On Sun, Dec 9, 2012 at 7:49 AM, Scarl wrote: > I am a chinese user. I wa

Django Celery FIFO ORDER

2012-12-10 Thread psychok7
So I have this 2 applications connected with a REST API (json messages). One written in Django and the other in Php. I have an exact database replica on both sides (using mysql). When i press "submit" on one of them, i want that data to be saved on the current app database, and start a cron j

Re: [JOB] Urgent - PHP/Python Developer needed

2012-12-10 Thread Mohamed Bouzahir
Hi Mr, I have a great skills in php and i'm leanring pythion a ruby on rails is there a position for me in your company? BTW i'm from morocco i speak english, arabic and french. *Mohamed Bouzahir* *web engineer* *+212664058422* On Tue, May 1, 2012 at 3:13 PM, Cal Leeming [Simplicity Media Ltd] <

Django-MongoDb deployment at production servert

2012-12-10 Thread Chuck James
Hi, I am developing a website using Django and MongoDb (http://django-mongodb.org/). I have read lots of forums and posts but still not able to figure it out what is the best way or default way to deploy Django project on web. So I have couple of questions related to this, it will be g

background task without celery

2012-12-10 Thread leonardo
Hi, I'm deploying a project to validation purpose in Heroku and not worth paying for a worker to execute background task. Is there a way to execute background task without celery + rabbitmq ? Thanks, -- You received this message because you are subscribed to the Google Groups "Django users" g

Datastructure using django.

2012-12-10 Thread Subhodip Biswas
Hi all, I am trying to implement a tree structure using django. There are two packages I am looking at mptt and treebeard. Treebeard seems easy. I have however two questions: 1. With mptt I found that if you have moved one child to another parent both db and instance is updated but you need to r

Re: background task without celery

2012-12-10 Thread Bill Freeman
On Mon, Dec 10, 2012 at 12:44 PM, leonardo wrote: > Hi, > > I'm deploying a project to validation purpose in Heroku and not worth > paying for a worker to execute background task. > Is there a way to execute background task without celery + rabbitmq ? > > Thanks, > Another way to do this is with

Re: Django Celery FIFO ORDER

2012-12-10 Thread Nikolas Stevenson-Molnar
You could use a separate queue for these tasks, and set up a single worker for that queue. _Nik On 12/10/2012 8:20 AM, psychok7 wrote: > > So I have this 2 applications connected with a REST API (json > messages). One written in Django and the other in Php. I have an exact > database replica on b

Re: background task without celery

2012-12-10 Thread Nikolas Stevenson-Molnar
You can configure a celery worker on the the same server you run everything else on. Then you can still use celery (which is useful if you ever want to scale to a separate worker machine down the road. _Nik On 12/10/2012 10:36 AM, Bill Freeman wrote: > > > On Mon, Dec 10, 2012 at 12:44 PM, leonar

Re: Django Celery FIFO ORDER

2012-12-10 Thread Nuno Khan
my problem is exactly setting up 1 worker.. can u provide some code please? On Mon, Dec 10, 2012 at 6:48 PM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > You could use a separate queue for these tasks, and set up a single > worker for that queue. > > _Nik > > On 12/10/2012 8:20 A

Implementing a monitoring system with django.

2012-12-10 Thread Marc Aymerich
Hi, I'm considering to implement a simple monitorization system that basically gathers some data from a set of nodes (<1000 nodes). The gathered data should be stored in order to let users perform some queries and maybe also generate some graphs. I'm looking for advice in what components are best

Re: Django Celery FIFO ORDER

2012-12-10 Thread Nikolas Stevenson-Molnar
Use the manage.py command described here: http://pypi.python.org/pypi/django-celery to start the worker (I use supervisord to manage the process). If you only start the worker on a single machine, then you'll only have one worker. This can be the same machine that runs your webserver. _Nik On 12/

Re: Django-MongoDb deployment at production servert

2012-12-10 Thread Chuck James
Really no one have Answer for this post, how people running big website using django, if no body knows how to deploy it. On Monday, December 10, 2012 12:32:29 PM UTC-5, Chuck James wrote: > > Hi, > > I am developing a website using Django and MongoDb ( > http://django-mongodb.org/). I h

Re: background task without celery

2012-12-10 Thread John DeRosa
On Dec 10, 2012, at 9:44 AM, leonardo wrote: > Hi, > > I'm deploying a project to validation purpose in Heroku and not worth paying > for a worker to execute background task. > Is there a way to execute background task without celery + rabbitmq ? > I investigated alternatives to Celery, and c

Re: IOError, Permission Denied using Amazon s3 w/ django-storage?

2012-12-10 Thread Mario Gudelj
I suspect you're on a Mac and your jpglib is not compiled properly. If you are on Mac make sure you look into that. Cheers, mario www.zenbookings.com On 10 Dec, 2012 4:20 PM, "easypie" wrote: > Yeah. It's uploaded and by using django-filebrowser I can upload image, > create folder and move them

[ANNOUNCE] Security releases (Django 1.3.5, Django 1.4.3, Django 1.5 beta 2)

2012-12-10 Thread James Bennett
Django 1.3.5, Django 1.4.3 and Django 1.5 beta 2 have just been issued in response to security issues. Details are available here: https://www.djangoproject.com/weblog/2012/dec/10/security/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Django ajax HTTP 500 when trying to access request.GET

2012-12-10 Thread Loai Ghoraba
Hi all I am trying to write a simple ajax that tries to know whether the username already exist before registering. Whenever I try to access the request.GET in my view function, a HTTP 500 error is raised, if the view function doesn't access it and only use hard coded values-for test- it works.

Possible Bug with GenericRelation and values_list

2012-12-10 Thread Skylar Saveland
I may have found a bug. I made a test case here: https://github.com/skyl/django/commit/556df1c46146c2fc9c4022d838fa23f652f0ea8d The final assertion fails. Is this a bug or do I misunderstand how this should work? Thanks -- You received this message because you are subscribed to the Google Gro

Project path

2012-12-10 Thread Lachlan Musicman
Hola, I've got a split settings set up for my prod/dev sites, and in all the hints I've seen over the years, I've most appreciated the line at the top of the settings file that goes like this (there are variations to the theme): BASE_DIR = os.path.dirname(os.path.abspath(__file__)) But almost a

Re: IOError, Permission Denied using Amazon s3 w/ django-storage?

2012-12-10 Thread easypie
This is on Ubuntu. I am using Mezzanine framework built on top of Django. 'pip install mezzanine' helps grab all the dependencies like Pillow (PIL). I'm not sure if this is what's causing the problem but thank you. I'll take a look at this. On Monday, December 10, 2012 1:35:02 PM UTC-8, somecal

Re: Django 1.5 b1 django-admin.py error

2012-12-10 Thread Sultan Imanhodjaev
It worked for me too but I don't understand why it works this way. On Tuesday, 4 December 2012 10:53:21 UTC+6, Aapo Rista wrote: > > keskiviikko, 28. marraskuuta 2012 16.53.15 UTC+2 Sultan Imanhodjaev > kirjoitti: > >> I use OSX Lion, virtualenv version 1.7.2, python 2.7.1. I just created a >> n

Re: Possible Bug with GenericRelation and values_list

2012-12-10 Thread Karen Tracey
On Mon, Dec 10, 2012 at 8:52 PM, Skylar Saveland wrote: > I may have found a bug. I made a test case here: > > > https://github.com/skyl/django/commit/556df1c46146c2fc9c4022d838fa23f652f0ea8d > > The final assertion fails. Is this a bug or do I misunderstand how this > should work? > > Answered on

Re: Django ajax HTTP 500 when trying to access request.GET

2012-12-10 Thread Loai Ghoraba
the problem is solved now, seems rebooting sometimes works :) ! On Tue, Dec 11, 2012 at 2:04 AM, Loai Ghoraba wrote: > Hi all > > I am trying to write a simple ajax that tries to know whether the username > already exist before registering. > Whenever I try to access the request.GET in my view f