Re: (fundamental) problem with password reset in 1.x: URL's become too long

2011-11-15 Thread Eric Chamberlain
We haven't used it for the password reset, but we've modified this short url code <http://code.activestate.com/recipes/576918-python-short-url-generator/> to reduce the length of our urls. -- Eric Chamberlain, Founder RingFree Mobility Inc. On Nov 15, 2011, at 7:11 AM, Bram de Jong

Re: Which Linux distro to use on EC2?

2011-11-15 Thread Eric Chamberlain
Amazon doesn't have packages already in the distro we use CentOS. If your time is limited, I'd also recommend using Amazon RDS rather than managing your own MySQL server. -- Eric Chamberlain, Founder RingFree Mobility Inc. On Nov 13, 2011, at 11:56 AM, ydjango wrote: > I am setting up ngi

Re: maultiple .js files for debug and one minimized .js for production

2011-11-12 Thread Eric Chamberlain
We serve the static files from Amazon S3. -- Eric Chamberlain, Founder RingFree Mobility Inc. On Nov 8, 2011, at 1:46 AM, Gelonida N wrote: > Hi, > > > I'm having an rather weak (CPU) server accesible over a rather slow network. > > Therfore my plan is to use > multipl

Re: Tracking RSS feeds usage

2011-08-02 Thread Eric Chamberlain
Have you considered using feedburner? Google acquired them a few years ago. I think there is integration with Analytics. -- Eric Chamberlain, Founder RingFree Mobility Inc. On Aug 2, 2011, at 3:04 AM, Dealshelve Team wrote: > I am using > https://docs.djangoproject.com/en/d

Re: Satchmo, the bloated manatee

2011-07-28 Thread Eric Chamberlain
tee. Here's a manatee drinking from a garden hose video <http://youtu.be/h9ikUsiIPHA> I made in front of my parent's home. People should be respectful of manatees and open source developers. -- Eric Chamberlain, Founder RingFree Mobility Inc. -- You received this message because you are subscr

Re: Is there anyway to put a Django site into maintenance mode using fabric?

2011-06-10 Thread Eric Chamberlain
We make the change at the web server and redirect all traffic to a static page. If the site is down for maintenance, then the middleware won't work either. On Jun 10, 2011, at 9:24 AM, Garth Humphreys wrote: > I'm using the MaintenanceModeMiddleware to put my site into > maintenance mode, but I

Re: VERY cheap django hosting?

2011-06-10 Thread Eric Chamberlain
We use Amazon AWS. If you register a new account, you can get free service for a year on their lowest tier. On Jun 7, 2011, at 11:30 PM, raj wrote: > Hey guys, > Just wondering if you could give me some hosts that are very cheap for > django hosting? Is hostgator any good? I really don't know

Re: How to create user on mobile app for Django site?

2011-06-02 Thread Eric Chamberlain
On May 31, 2011, at 4:35 AM, Ivo Brodien wrote: > What is the correct way to do the following: > > 1) Mobile App from which a user can create a user/profile on the Django site > 2) Allow authenticated users to create on the site and query personalized > data from the site > > This is what I

Re: Synchronize method or model field access

2011-05-25 Thread Eric Chamberlain
On May 25, 2011, at 11:19 AM, Pawel R wrote: >> Synchronise what with what? > > Synchronize with other threads. I need this method to be invoked by only one > thread at a time. > >> "It doesn't work" is utterly useless. What does it do? > > It lets more than 1 thread to invoke this method at

Re: Experiences with virtualenv + Django?

2011-05-23 Thread Eric Chamberlain
We run CentOS on our servers and use virtualenv for each of our various django projects (multiple projects on one server), we haven't had any issues, but we use fastcgi between the web server and django. On May 23, 2011, at 7:00 PM, John Crawford wrote: > I'd like to know what kind of

Re: how to save image in postgreSQL database

2011-05-19 Thread Eric Chamberlain
On May 19, 2011, at 6:30 AM, Ram wrote: > hello everyone i am studying python for my college project in which i > am sending some text and image in URL i want to store it to postgreSQL > database i know how to read data from URL but not about images how can > i perform it please help. Storing

Re: django deployment

2011-05-19 Thread Eric Chamberlain
great for proxying all > your incoming traffic to the proper service. > Shawn, What do you like about gunicorn vs. fastcgi? How does it compare resource wise? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django user

Re: Virtualized Django app image for dev replication?

2011-05-19 Thread Eric Chamberlain
use. So free products are preferred. It's not free, but we use Amazon EC2. It's like having vmware, but you don't have to manage the host box. Micro instances are cheap and you can configure them to either throw away data when powered down or save the data until the next time you need the box boot

Re: using django on a server?

2011-05-09 Thread Eric Chamberlain
Cloud computing is basically resources that you don't have to pay for when you don't use them and no long-term commitments. We use Amazon Web Services and can change our setup on an hourly basis. We just finished consolidating some low utilization servers with Amazon EC2. We cut our costs

Looking for recommendations to replace vBulletin with a django based forum

2011-05-09 Thread Eric Chamberlain
Hello, We are thinking about replacing our low-usage vBulletin forum with a django integrated forum. Has anyone used djangobb, pybb, or askbot? -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups "D

Re: Encrpting urls to hide PKs

2011-05-09 Thread Eric Chamberlain
<http://www.michaelfogleman.com/2009/09/python-short-url-generator/> to generate short URL's from the primary key (integer). The short_url code is handy, because it doesn't need any extra columns in the database and it is pretty hard for users to reverse engineer the primary key id from

Re: Django on EC2

2011-03-22 Thread Eric Chamberlain
w has your experience been so far? > We use the Amazon Linux AMI for our web/app servers and Amazon RDS for our database. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: mod_wsgi or mod_fcgi

2011-02-24 Thread Eric Chamberlain
hers like about nginx over lighttpd. We originally went with lighttpd, because that's what one of our developers knew how to configure. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups "Django users&

Re: Select x random rows from DB

2011-02-21 Thread Eric Chamberlain
o the DB, using a raw query: > > random_results = Table.objects.raw("SELECT * FROM table ORDER BY > random() LIMIT X") If you have lots of rows, this query is really slow as the db must build a new table for the ORDER BY. -- Eric Chamberlain, Founder RF.com - http://RF.com

Re: App engine serving static files?

2011-02-16 Thread Eric Chamberlain
ting, and was just thinking to move the static > content to GAE > I would like to know your thoughts on this We serve our static content from Amazon S3, it's much easier to setup and use. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are

Re: Django Mutlisite Setup

2011-02-13 Thread Eric Chamberlain
installation. To simplify the web server configuration, we do have all the projects at the same django version level share the admin media. We serve that from Amazon S3. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the G

Re: standalone server

2011-02-09 Thread Eric Chamberlain
e if someone worked on these kind of issues before where you would like > to accept connections from outside not web request, but would like to receive > some data from outside through sockets then please let me know how to best > deal with it. > > thanks. > > Rahul -- Eric Chamb

Re: How should I properly impliment HTTP(S) auth (REMOTE_AUTH) in django?

2011-02-08 Thread Eric Chamberlain
I wouldn't consider using a UUID as multi-factor authentication. All our API traffic is over https. We use the basic authentication included with django-piston. Any reason why you want to exchange username and password for an API Key? Why not just authenticate each request with username and

Re: Looking for IDE + FTP

2011-02-08 Thread Eric Chamberlain
e > files from within DW. Does anyone know of another, Python-friendly, > program that I could use for both code-editing and ftp? > I use BBEdit. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups "Dj

Re: Database synchronization with sometimes-connected mobile client

2011-02-07 Thread Eric Chamberlain
air. > > One of the things I'd like to avoid is having to make every single > many to many relationship have to use a custom "through" class just > for synchronization, since that makes the admin interface less nice > without adding any real functionality to the web users. >

Re: Debugging Why CSS File Will Not Load

2011-02-02 Thread Eric Chamberlain
Your port numbers don't match. What does Firebug or some other html debug tool say about the file? On Feb 2, 2011, at 10:55 AM, octopusgrabbus wrote: > I am trying to load static content (one css file) from the same apache > server, using a different virtual host. I have no errors, but the

Re: Storing *big* texts in db fields

2011-01-31 Thread Eric Chamberlain
> caching and it didn't make any difference. > > Thanks, > Karen -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Re: ANN: Server upgrade on djangoproject.com

2011-01-31 Thread Eric Chamberlain
On Jan 31, 2011, at 9:15 AM, Shawn Milochik wrote: > > I was using my iPhone at the time. I probably should have checked it on a > desktop browser before replying to the thread. Sorry 'bout that. > On the iPhone, use two fingers to scroll to the cut-off text in the code bo

Re: Looking for OAuth provider packages for django

2011-01-21 Thread Eric Chamberlain
If I hadn't searched Google yet, I would have probably asked if there are any packages, rather than asking if there are good ones that people would recommend. On Jan 21, 2011, at 12:27 PM, Shawn Milochik wrote: > Did you search Google yet? > -- You received this message because you are

Looking for OAuth provider packages for django

2011-01-21 Thread Eric Chamberlain
Hi, We need to implement an OAuth provider in django. Are there any good packages already out there? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@google

Re: Django + CSS

2011-01-19 Thread Eric Chamberlain
Unless you are trying to serve your CSS inline, which it doesn't appear to be the case from your post, why wouldn't you serve your CSS files like any other static file? Serve the static file with your web server or CDN and put the url in the template, no magic required. On Jan 19, 2011, at

Re: Generate a unique username for django.contrib.auth

2011-01-12 Thread Eric Chamberlain
IDs? > > On 12 January 2011 21:23, Eric Chamberlain <e...@rf.com> wrote: >> We use a base64 or base36 (if you want compatibility with the contrib.admin) >> encoded UUID, or generate a random 30-character string, the odds of a >> collision is quite low. >> >&g

Re: Generate a unique username for django.contrib.auth

2011-01-12 Thread Eric Chamberlain
We use a base64 or base36 (if you want compatibility with the contrib.admin) encoded UUID, or generate a random 30-character string, the odds of a collision is quite low. On Jan 12, 2011, at 1:11 PM, Micah Carrick wrote: > I've got my site's authentication working with and email and password

Re: Problem with django auth login_required and lighttpd

2011-01-11 Thread Eric Chamberlain
ttp://server/mysite.fcgi/mysite.fcgi > > How do I fix this? A change in urls.py or a change in lighttpd.conf? > > Thanks > > john > -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups

Re: image servers?

2011-01-11 Thread Eric Chamberlain
you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http:/

ContentType does not exist when trying to load auth with loaddata

2011-01-04 Thread Eric Chamberlain
es not exist. How do we get around this error? Shouldn't syncdb create the ContentTypes? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To un

Re: Can't use dumpdata and loaddata to migrate non-ASCII data between databases

2011-01-03 Thread Eric Chamberlain
Or is there a better way to migrate a database from postgres to MySQL? On Jan 3, 2011, at 6:35 PM, Eric Chamberlain wrote: > Hi, > > We are trying to migrate between databases and we are running into a problem > while trying to use dumpdata. We've tried: > > ./

Can't use dumpdata and loaddata to migrate non-ASCII data between databases

2011-01-03 Thread Eric Chamberlain
lowing error: Error: Unable to serialize database: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128) Is there a way to dump and load non-ASCII data? -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message becau

Re: incrementing non primary keys.

2010-12-15 Thread Eric Chamberlain
If you are using a UUID for the primary key, do you really need an integer? We had a similar multi-tenant need and didn't want to leak usage information to the users, so we used UUID instead of auto incrementing integers. On Dec 15, 2010, at 9:23 AM, Hutch wrote: > Hi, > > I'm porting an old

Re: incrementing non primary keys.

2010-12-15 Thread Eric Chamberlain
If you are using a UUID for the primary key, do you really need an integer? We had a similar multi-tenant need and didn't want to leak usage information to the users, so we used UUID instead of auto incrementing integers. On Dec 15, 2010, at 9:23 AM, Hutch wrote: > Hi, > > I'm porting an old

Re: incrementing non primary keys.

2010-12-15 Thread Eric Chamberlain
If you are using a UUID for the primary key, do you really need an integer? We had a similar multi-tenant need and didn't want to leak usage information to the users, so we used UUID instead of auto incrementing integers. On Dec 15, 2010, at 9:23 AM, Hutch wrote: > Hi, > > I'm porting an old

Please help me figure out this UnicodeEncodeError

2010-11-09 Thread Eric Chamberlain
ascii' codec can't encode character u'\u2019' in position 21: ordinal not in range(128) -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To uns

Re: XMPP based apps

2010-10-18 Thread Eric Chamberlain
We've done django based xmpp services and created middleware to enable django to manage and authenticate ejabberd users. On Oct 18, 2010, at 6:10 AM, Venkatraman S wrote: > Well, I havent Googled, but was wondering whether how one can integrated XMPP > based communications(PUNJAB?) etc with

Re: iPhone posting FILEs = "Invalid content length"

2010-10-17 Thread Eric Chamberlain
ke the > problem go away? About 1/50 of our requests fail with this bug. > > Thanks! > Mike > > On Oct 7, 11:21 am, Eric Chamberlain <e...@rf.com> wrote: >> We ran into the same error with ASIHTTPRequest, our fix was to turn off >> persistent connectio

Re: design problem..how to store web page's data for later comparison

2010-10-14 Thread Eric Chamberlain
You may want to store a hash of the page and use that for the comparison, then if the user wants to see the difference between the two pages, pull up the full page. On Oct 11, 2010, at 3:07 AM, jimgardener wrote: > hi > I am trying to write an application that checks a web page today and >

Re: iPhone posting FILEs = "Invalid content length"

2010-10-07 Thread Eric Chamberlain
We ran into the same error with ASIHTTPRequest, our fix was to turn off persistent connections. On Sep 30, 2010, at 3:55 AM, Danny Bos wrote: > > Hey there, > I've got a new error I'm totally stumped on. All searches are saying > it's a "http vs https" or similar. > I'd be keen to hear your

Re: App for Registration/Authorization which is Email & Password based (not username)

2010-08-27 Thread Eric Chamberlain
email address, so we can avoid username collisions if the user changes their email address. Don't forget to add an index to the email field. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups "Django users

Re: stream (large) files from the back-end via Django to the user?

2010-08-23 Thread Eric Chamberlain
art of the story our CDN would be just a data > store. The question is if this could be done efficiently? If "yes", how can > it be done? > Does django need to be in the loop for file download? Is there some reason why the web server can't mount and serve the files like any o

Re: Best OS - VPS environment

2010-08-16 Thread Eric Chamberlain
Dan, We also run CentOS 5 on our production servers and have various django projects running Python 2.6.2 & 2.7. I'd stick with an OS that you know and use virtualenv to isolate the python version to the django project. On Aug 16, 2010, at 1:54 AM, Dan wrote: > I have been using CentOS 5

Re: MultiPartParserError HTTP_CONTENT_LENGTH zero when uploading a file

2010-08-14 Thread Eric Chamberlain
d to be really, really hard to reproduce or track down. >> I only get it because I run a SaaS with dozens users uploading photos >> every day, and some requests happen to fail starting the upload and >> end 500'ing. >> >> What about filling a ticket against Djan

Re: what do you do to take your site down?

2010-08-06 Thread Eric Chamberlain
ot; page?Do you do this directly via apache or do you do it via > django? > We have the front end web server redirect all web traffic to a static maintenance page. If we are upgrading the site, it typically means that the database or the django app server is unavailable. -- Eric Chambe

Re: Amazon S3 Boto

2010-08-06 Thread Eric Chamberlain
Take a look at django-storages, it's what we use to store audio files in S3. It's a pretty robust django storage backend with decent community support. On Aug 6, 2010, at 5:06 AM, almacmillan wrote: > Hi there, > > I am a total beginner to programming and Django so I'd appreciate help > that

Re: django.contrib.auth

2010-08-03 Thread Eric Chamberlain
sounds like what you really want is a custom authentication backend so that you can authenticate against an existing table with MD5 passwords. -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

MultiPartParserError HTTP_CONTENT_LENGTH zero when uploading a file

2010-08-02 Thread Eric Chamberlain
We have an intermittent problem when uploading files. About one in five uploads fails, when the MultiPartParser receives an HTTP_CONTENT_LENGTH of zero. We are running Django with lighttpd and fastcgi, has anyone else encountered this problem? -- Eric Chamberlain -- You received

Indexing large CharFields with MySQL backend

2010-08-02 Thread Eric Chamberlain
value, but we were wondering if anyone has already created a model field that addresses this problem and makes the database limitations transparent. -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

New project, debating postgresql or MySQL (Amazon RDS), does it matter to Django?

2010-06-25 Thread Eric Chamberlain
transaction middleware? We aren't using any custom fields, are there functional differences between the two databases that would impact how we use Django? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: If is first time logging in

2010-05-20 Thread Eric Chamberlain
Anything wrong with adding a flag to the profile model? If the flag is not set, show the profile stuff? It keeps all the profile management in one model. The "flag" could even be a timestamp, so you could show the prompt again, if after X time the user has not added anything to their profile.

Re: group password

2010-05-20 Thread Eric Chamberlain
I would use auth.User as is. When a new user (no existing django session) enters the code, django creates a user account (random username and password) behind the scenes and logs in the user. Then the user is identifiable as long as they stay on that machine. Set the logout interval to

Re: django takes all my toys

2010-05-11 Thread Eric Chamberlain
It sounds like Django is working and your issue is with the web server configuration. In you case it sounds like there are two ways you could install Django, add a virtual host to the machine, or configure apache to serve Django from a subdirectory. Unless you have extra hostnames available,

Re: Working for a startup.

2010-04-22 Thread Eric Chamberlain
ples of large systems written in .Net? Amazon, Google, Facebook, twitter, et al. are not using .Net. -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com.

Anyone using django with XMPP for bots or components?

2010-04-20 Thread Eric Chamberlain
We are looking at adding some realtime features to a project and we are exploring using XMPP for the communication method. Is anyone using django with SleekXMPP or any other XMPP library to make bots or components? -- Eric Chamberlain -- You received this message because you are subscribed

Re: Storing API Passwords

2010-03-02 Thread Eric Chamberlain
n as some of the other posters have mentioned. I wouldn't worry about getting sued, what kind of damages would people have and your EULA should already limit your liability. -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users&

Re: LDAP/AD Persistent authentication

2010-03-02 Thread Eric Chamberlain
can see > of running that code as the user. > > Any ideas? > Store the user's credentials, not very secure, or use kerberos for authentication and use the token in the ldap query. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you ar

Re: Django in the enterprise?

2010-02-24 Thread Eric Chamberlain
ke Peoplesoft and Siebel CRM. Django can definitely do more than serve up websites. We use django to run our call routing infrastructure. Our main app does have a mobile web interface for making calls, but the backend telephony servers also communicate with Django via web services. D

Re: Lighttpd and Django

2010-02-24 Thread Eric Chamberlain
wto/deployment/fastcgi/#forcing-the-url-prefix-to-a-particular-value>. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@go

Re: Creating new Thread in a view?

2010-02-21 Thread Eric Chamberlain
ce and works with django. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, se

Re: Is there a way to access a field's verbose_name from a object_list generic view template?

2010-02-06 Thread Eric Chamberlain
On Feb 6, 2010, at 2:53 AM, Atamert Ölçgen wrote: > On Saturday 06 February 2010 12:23:16 Dennis Kaarsemaker wrote: >> On do, 2010-02-04 at 11:01 -0800, Eric Chamberlain wrote: >>> I'm using the object_list generic view and it seems there should be a >>> way to pull

Bulk adding permissions from QuerySet failing, what am I doing wrong?

2010-02-05 Thread Eric Chamberlain
uot;, line 497, in _add_items [self._pk_val] + list(new_ids)) File "/Users/eric/working/rfapns/lib/python2.6/site-packages/Django-1.1.1-py2.6.egg/django/db/backends/util.py", line 19, in execute return self.cursor.execute(sql, params) ProgrammingError: can't adapt What am I doing wr

Re: CheddarGetter module for Django/Python - easy recurring billing

2010-02-04 Thread Eric Chamberlain
ome and Pythonic. > > - Jason Jason, We are looking at recurring billing systems, could you give some more info on why you chose CheddarGetter over Paypal or Amazon FPS? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users&q

Is there a way to access a field's verbose_name from a object_list generic view template?

2010-02-04 Thread Eric Chamberlain
I'm using the object_list generic view and it seems there should be a way to pull the field verbose_name from the model, without having to hard code the name in the template. Any suggestions? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups

Re: Save, Signals and Models

2010-01-16 Thread Eric Chamberlain
update=False): if self.only_me is True: # if this is the new default, set others to False MyModel.objects.exclude(pk=self.pk).update(only_me=False) super(MyModel, self).save(force_insert, force_update) # Call the "real" save() method.

Re: Only Email + Password ( without username )

2010-01-16 Thread Eric Chamberlain
On Jan 14, 2010, at 2:44 AM, nameless wrote: > I want to use "id" as identifier for each user. So every user will > have an url like this: > > http://www.example.com/827362 > > I don't want username for my project. > So, if I can't delete it, I think to insert email in username field > and I

Anyone have provisioning documentation for a LeadTek BVA8055?

2010-01-15 Thread Eric Chamberlain
Hi, A friend has a few hundred LeadTek BVA8055's and need to know how to bulk provision them. There isn't much documentation on the web. Anyone know how to bulk provision these devices? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups

Re: Insert AUTOMATICALLY random string in username field

2010-01-14 Thread Eric Chamberlain
On Jan 14, 2010, at 6:45 AM, nameless wrote: > > > I want username field is automatically filled with this value: > > username = str(n); > > where n is a number of 10 digits ( autoincremented or random ). > > . > > I tried to add this in save method: > > username =

Re: handle astronomically high number of users via the new BigIntegerField and contrib.auth.user

2010-01-10 Thread Eric Chamberlain
hat you used > a varchar field within Django. ? > > On Jan 10, 2:29 am, Eric Chamberlain <e...@rf.com> wrote: >> On Jan 9, 2010, at 8:59 AM, G B Smith wrote: >> >>> Thanks, that is a good resource. So this is what I am going to do : - >>> -- mod

Re: handle astronomically high number of users via the new BigIntegerField and contrib.auth.user

2010-01-09 Thread Eric Chamberlain
that trouble, you may as well use a UUID field instead. We went with UUID, because we didn't want membership counts to leak via an autoincrementing integer. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups

Re: database password in settings.py

2010-01-05 Thread Eric Chamberlain
There's nothing special about settings.py. You could do something like: from Crypto.Cipher import Blowfish blowme = Blowfish.new(SECRET_KEY) DATABASE_PASSWORD = blowme.decrypt(ENCRYPTED_PASSWORD) Securing SECRET_KEY is left as an exercise for the reader. On Jan 5, 2010, at 11:10 AM, Eyüp

Trying to implement a unique default relationship between models

2010-01-04 Thread Eric Chamberlain
lf).save(force_insert, force_update) # Call the "real" save() method. class Meta: unique_together = (('partner','default_reg'),) -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: authentication security

2009-12-21 Thread Eric Chamberlain
ut in any form pointless? > We use https for all our authenticated pages. Our primary concern was packet capture on public WiFi connections. -- Eric Chamberlain, Founder RF.com - http://RF.com/ -- You received this message because you are subscribed to the Google Groups "Django use

Re: How do I filter an InlineModelAdmin ForeignKey?

2009-12-16 Thread Eric Chamberlain
ter > > Note that sometimes this doesn't really work, depending on your model > hierarchy. You might have to throw in the towel on 'extra' inlines. > The key is to filter only when it's bound, and to work around the > filter if it's not bound. > > Tim > > > On Dec 16, 11:

How do I filter an InlineModelAdmin ForeignKey?

2009-12-16 Thread Eric Chamberlain
I'd like PartnerRegistration's default_provider field to be filtered in PartnerRegistrationInline, like how Partner's default_provider field is filtered in PartnerAdmin. When I try the code below, I get a DoesNotExist exception in: self.fields['default_provider'].queryset =

Trying to limit a ForeignKey in the admin site, but formfield_for_foreignkey isn't working

2009-12-15 Thread Eric Chamberlain
*kwargs) The code above generates an AttributeError: 'ReverseManyRelatedObjectsDescriptor' object has no attribute 'all' -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How can child objects inherit data from parents?

2009-12-11 Thread Eric Chamberlain
On Dec 9, 2009, at 9:41 AM, bruno desthuilliers wrote: > On 9 déc, 14:10, Eric Chamberlain <e...@rf.com> wrote: >> Hello, >> >> We're not sure how can we represent the following data structure in the >> django model? >> >> Grandparent Object >

How can child objects inherit data from parents?

2009-12-09 Thread Eric Chamberlain
lookups if possible. Is there a better way to implement this? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group,

Re: Need help optimizing a view, too many queries

2009-05-07 Thread Eric Chamberlain
On May 7, 2009, at 10:36 AM, George Song wrote: > > On 5/7/2009 8:56 AM, Eric Chamberlain wrote: >> Our view is taking too long to render, can anyone offer suggestions >> to >> improve its speed? >> >> There are 5830 profiles. >> >> /Total que

Need help optimizing a view, too many queries

2009-05-07 Thread Eric Chamberlain
Our view is taking too long to render, can anyone offer suggestions to improve its speed? There are 5830 profiles. Total query count: 23809 Total duplicate query count: 493 Total SQL execution time: 66.003 Total Request execution time: 142.931 class Profile(Model): id =

Re: Securely storing passwords

2009-02-24 Thread Eric Chamberlain
ndling functions. You still have problems if the backend servers are compromised, but they would be much easier to lock-down and audit. -- Eric Chamberlain, Founder RF.com - http://RF.com/ --~--~-~--~~~---~--~~ You received this message because you are subscri

Has anyone used the django database as a backend for openldap?

2009-02-23 Thread Eric Chamberlain
. -- Eric Chamberlain, Founder RF.com - http://RF.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To u

Re: How can we improve performance in the Admin when loading profile pages with ManyToMany fields?

2008-11-14 Thread Eric Chamberlain
On Nov 14, 2008, at 4:00 PM, James Bennett wrote: > > On Fri, Nov 14, 2008 at 5:49 PM, Eric Chamberlain <[EMAIL PROTECTED]> wrote: >> We have five or so ManyToMany fields (with 10,000+ and growing total >> entires in each field, only a few are selected for any one prof

How can we improve performance in the Admin when loading profile pages with ManyToMany fields?

2008-11-14 Thread Eric Chamberlain
we would like as admin loads all the field possibilities. Most of the time we use the admin to view the data, not make changes. Is there anything we can do to improve performance? -- Eric Chamberlain --~--~-~--~~~---~--~~ You received this message because

Re: python-ldap: searching without specifying an OU?

2008-04-22 Thread Eric Chamberlain
ize("ldap://server.local;) > con.simple_bind_s('[EMAIL PROTECTED]', pass) > result = con.search_ext_s('OU=some office, DN=server, DN=local', The search should be DC=server, DC=local. -- Eric Chamberlain RF.COM http://RF.COM/ --~--~-~--~~~---~--~~ Yo