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
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
.
--
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
t
password handling 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
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 = UUIDField(primary_
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
d avoid looping 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 fr
On Dec 9, 2009, at 9:41 AM, bruno desthuilliers wrote:
> On 9 déc, 14:10, Eric Chamberlain wrote:
>> Hello,
>>
>> We're not sure how can we represent the following data structure in the
>> django model?
>>
>> Grandparent Object
>>
ld(**kwargs)
return super(PartnerAdmin, self).formfield_for_foreignkey(db_field,
request, **kwargs)
The code above generates an AttributeError:
'ReverseManyRelatedObjectsDescriptor' object has no attribute 'all'
--
Eric Chamberlain
--
You received this message b
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 =
self.instan
self.fields['default_provider'].queryset =
> parentInstance.somelookup_to_provider_filter
>
> 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 k
ogging in and out 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
&
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
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.
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, I
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 whatev
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.
x27;s 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&quo
hash 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 pos
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 this
a lot.
It 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 po
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 b
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
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 ag
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 to
f for this part 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
sername to a derivative of the 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 th
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 tho
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
> aga
to make the
> problem go away? About 1/50 of our requests fail with this bug.
>
> Thanks!
> Mike
>
> On Oct 7, 11:21 am, Eric Chamberlain wrote:
>> We ran into the same error with ASIHTTPRequest, our fix was to turn off
>> persistent connection
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 Dja
deError: '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 dj
=None)
super(Registration, self).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 a
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 Hak
o all 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
that you used
> a varchar field within Django. ?
>
> On Jan 10, 2:29 am, Eric Chamberlain 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 : -
>>> -- modi
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 = str(random.randint(1
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 Goo
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 d
t=False, force_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
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 G
e awesome 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
"Djan
6/site-packages/Django-1.1.1-py2.6.egg/django/db/models/fields/related.py",
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.cu
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
push notification
service 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 unsubs
angoproject.com/en/dev/howto/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
; apps, like 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 se
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 y
d use symmetric encryption 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
itialize("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/
--~--~-~--~~--
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
> mu
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 sett
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, Br
six months now. We use
<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 rever
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
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 down
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 ne
che. It functions 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 Group
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 BL
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 experienc
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
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 gu
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
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
dis the manatee. 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 messa
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
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
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
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
e following 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 r
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:
>
>
atching query does 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..
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
> h
ing for
> http://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 G
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
>
user IDs?
>
> On 12 January 2011 21:23, Eric Chamberlain 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.
>>
>> On J
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 3:5
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
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 subsc
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 co
prove performance? I tried implementing
> 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
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 css
would be nearly
> impossible to repair.
>
> 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 ad
find it much more convenient to just open the
> 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
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 p
ase 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
same 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
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
ush it onto 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 - htt
g more about what others 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 Group
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.
To
91 matches
Mail list logo