Re: How many workers do you run on one machine using django celery?

2013-05-06 Thread Venkatraman S
Do also check out uWSGI spooler - i haven't tested with heavy loads yet, but looks to do the work for a reasonably small site. -V @venkasub On Sun, Apr 21, 2013 at 8:37 PM, sparky wrote: > wow, some good advice here thanks. I tested with

Implement system uplaod with GridFS

2013-05-06 Thread Hélio Miranda
I am making an application in django and mongodb and need to make a uplaod photos and videos but using mongodb's GridFS. Someone can help me, how to do? thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Possible bug with django.contrib.auth.forms

2013-05-06 Thread Zhenghao Huang
Hi Fellas, Just wanted to throw this out there to see if this is a bug. In line 173 of django.contrib.auth.forms: https://github.com/zhenghao1/django/blob/master/django/contrib/auth/forms.py#L173 I feel this boolean test is too generic. If I were to deliberately set the username field's

Re: Insert variable into RequestContext?

2013-05-06 Thread bruno desthuilliers
Looks like you want a context_processor : https://docs.djangoproject.com/en/1.5/ref/templates/api/#subclassing-context-requestcontext -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Re: Import project from Linux to Windows

2013-05-06 Thread Bill Freeman
An alternative approach is to download VMWare player (free) and run a (possibly the same) linux distribution there. It sounds like extra work, I know, but it avoids any nits about running on Windows. Bill On Sun, May 5, 2013 at 10:37 PM, Mike Dewhirst wrote: > On

Re: how to combine multiple related applications in one project/site

2013-05-06 Thread Bill Freeman
I guess you have to decide whether these features are django apps or not, though the difference is primarily whether or not you list them in settings.INSTALLED_APPS (which lets them have models and/or a presence in the admin). Either way, the "correct" form for some interrelated group of python

A great opportunity for Python-Django Developers

2013-05-06 Thread Jitendra Jain
A great opportunity for Python-Django gurus | Send your resumes to sa...@recoverify.com It's a well funded start-up with a great team (10+ yrs exp. techies, one of them is accredited investor in US) It's one of those true start-up opportunities, where you will work at very fast pace - grow

Re: A great opportunity for Python-Django Developers

2013-05-06 Thread cingusoft
Hi More infos will be a good idea: For example, where, salary range, if in USA, you help with VISA? Thank's BlackBerry de movistar, allí donde estés está tu oficin@ -Original Message- From: Jitendra Jain Sender: django-users@googlegroups.com Date: Mon, 6 May 2013

Re: Implement system uplaod with GridFS

2013-05-06 Thread Javier Guerra Giraldez
On Mon, May 6, 2013 at 5:19 AM, Hélio Miranda wrote: > I am making an application in django and mongodb and need to make a uplaod > photos and videos but using mongodb's GridFS. check django-storages, it has a MongoDB GridFS backend:

Re: 1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-05-06 Thread ephan
Thanks alot Eric and Russel,I was also stuck on this. I can also confirm that you have to override clean_username in addition to the class Meta ,otherwise you will get a database error. On Wednesday, February 27, 2013 9:15:53 PM UTC+2, Eric Psalmond wrote: > > Hi everyone, > > After a bit of

a simple form confirmation before commit instance to database

2013-05-06 Thread Radomir Wojcik
I was looking at examples using 'raise ValidationError' but I don't want to raise an error based on the value of something. I always want the user to be prompted with a "Are you sure you want to save this?" every time they hit "save" : if request.method == 'POST': form =

Re: a simple form confirmation before commit instance to database

2013-05-06 Thread Shawn Milochik
That feels like the wrong place to do it. The simplest thing would be to just pop up a JavaScript dialog that intercepts the form POST, and ask then. This does exactly what you want with the exception that it'll ask them whether or not the form is valid, but I think that's irrelevant. If you do

Difficulties displaying correct value in select widget with ModelForm/formset_factory:

2013-05-06 Thread Matt C
I'm resorting to code in __init__ to set my select dropdown properly when using a ModelForm with formset_factory, and wondering if there is a better way. I have a model that looks like this: class Choice(models.Model): desc = models.TextField() begin_scene = models.ForeignKey(Scene,

Re: Problems with djangosearch setup

2013-05-06 Thread Stephen Lee
Error: No module named solr To fix this error in communication between Python and Solr, you need to install a Solr client: sudo easy_install solrpy Source: http://www.itfromscratch.com/python-error-no-module-named-solr/ On

Accessing A Read-Only DB

2013-05-06 Thread Brandon Reynolds
Hello Everyone! I am new to Django and intermediate with Python. I have a client looking to have me build something that integrates with there rent management system. The comapny providing there system offers a feature called open access so that you can read there property database. However

Re: Possible bug with django.contrib.auth.forms

2013-05-06 Thread Russell Keith-Magee
Hi Zhenghao Huang, I'm not sure I agree that this is a bug. >From a purely logical perspective, I agree the an "is None" check would be more rigorous. However, allowing the field label to the empty string isn't really a good idea. It won't prevent the markup from being rendered, it will just

Re: Possible bug with django.contrib.auth.forms

2013-05-06 Thread Russell Keith-Magee
Actually…. I take this back. I went digging into the form logic, and discovered that I was incorrect about the empty tag -- there's already logic in place to suppress the if there's no label content. So - I'd say you're correct - the check in AuthenticationForm *should* be an "is None" check to

Re: Accessing A Read-Only DB

2013-05-06 Thread Russell Keith-Magee
Hi Brandon, Essentially, there shouldn't be any difference between a normal and a readonly Django project. You set up a Django project as would usually would -- you just don't ever do anything that results in a call to save(). If you want some extra protection, you could go the extra step of

Some basic questions from somebody learning Django/Python

2013-05-06 Thread Christopher Winter
Hi all, I have some (possibly dumb) questions about Django. I've been through the great "Writing your first app" tutorial on the DjangoProject site, and now my plan is to explore in detail some existing apps from GitHub: get them installed, go through the code line by line, make some mods

Postgres/psycopg2 setup error

2013-05-06 Thread Craig Cannon
Trying to setup postgres with the postgres mac app and hit this error, which I haven't been able to solve. Any thoughts? ImportError: dlopen(/Users/Craig/pyenv/mysite/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: @executable_path/../lib/libssl.1.0.0.dylib

Re: Some basic questions from somebody learning Django/Python

2013-05-06 Thread Shawn Milochik
Hi Christopher. In general, you don't install a Django app -- you just run it with ./manage.py runserver. If it's a "pluggable app" it should have an installer. If it needs to be installed and the author hasn't provided an easy way for you to do it, it's probably better to learn from code written

Re: Postgres/psycopg2 setup error

2013-05-06 Thread Shawn Milochik
I see you posted the question on StackOverflow as well. A quick search turned up the same problem there, with a solution that allegedly works: http://stackoverflow.com/questions/14863723/psycopg2-import-error-due-to-failure-to-load-libraries -- You received this message because you are

Django html input error

2013-05-06 Thread Rodolfo
Hi, I get an "UnicodeEncodeError 'ascii' codec can't encode character '\xe3' in position 1: ordinal not in range(128)" with the html fragment: To solve this problem, I changed the module "Python32\Lib\urllib\parse.py", line 80 _implicit_encoding = 'ascii' to _implicit_encoding =

Noobie questions about Django and Databases

2013-05-06 Thread Brian Williams
Hello group, I am new to the Django group and Django in general. I spent the last five or six months learning python and have now moved on to Django with the hopes of being able to build dynamic websites. Previous to this I had only built static sites with html and wordpress. Anyway, I am

Re: Noobie questions about Django and Databases

2013-05-06 Thread Shawn Milochik
In that case, you'd just add a 'model number' field to your table. In the Django ORM, each Model instance relates to a table. So you aren't going to want to have more than one to write your code against. Just read through these two pages and everything should make sense:

Re: Import project from Linux to Windows

2013-05-06 Thread Nathaniel Sim
Hi Mike It is a Django web app and Django is installed. I copy the project from remote server to my xampp/htdocs. What are the steps if i want to develop in Windows OS and using Aptana Studio as IDE? Hi Bill Thanks but i did try. I am too used to IDE, not used to Linux commands for

Re: Django html input error

2013-05-06 Thread Shawn Milochik
No, it's a bad solution because it only fixes *some* unicode errors, and only on your single machine. See this. In my opinion it's the easiest Python unicode explanation to understand: http://farmdev.com/talks/unicode/ -- You received this message because you are subscribed to the Google Groups

Re: Noobie questions about Django and Databases

2013-05-06 Thread Brian Williams
Thanks Shawn, I am plugging my way through the docs and djangobook. I figured that I probably just hadn't come to it yet. Sometimes ADD gets the best of me and I just can't help but ask a question when something is on my brain. I appreciate the help, off to read the links you sent. Brian

Re: Akiban + Django

2013-05-06 Thread fanny
I have tried it, it can be used in Python. But i don't how to use it in Django, how to setting it on Django? Could you give me some examples? Thanks before On Thursday, May 2, 2013 8:47:37 PM UTC+7, Shawn Milochik wrote: The short answer is that if you can use it in Python, you can use it in

Re: A great opportunity for Python-Django Developers

2013-05-06 Thread Jitendra Jain
Thanks for asking these important question. Salary is not a constraint for the right candidate. Nice equity is also given. Location is Bangalore, India. However Hyderabad, India will also be considered if necessary. I would be happy to answer any more questions, please let me know. Thanks.

Re: Import project from Linux to Windows

2013-05-06 Thread Mike Dewhirst
On 7/05/2013 1:18pm, Nathaniel Sim wrote: It is a Django web app and Django is installed. I copy the project from remote server to my xampp/htdocs. What are the steps if i want to develop in Windows OS and using Aptana Studio as IDE? 1. Establish a repository to manage source code change, get