Re: Slow view causing timeout errors

2009-01-13 Thread Adam
should have thought of that before. On Jan 13, 4:38 am, Daniel Roseman <roseman.dan...@googlemail.com> wrote: > On Jan 13, 2:53 am, Adam Tucker <adam.j.tuc...@gmail.com> wrote: > > > I am working on a site where a page is loaded which replaces part of itself > > with an

Re: Slow view causing timeout errors

2009-01-13 Thread Adam
hat needs to be accessed in real-time? If not, you > could cache it in your own database (using a cron job), so that the > view doesn't have to take too long. > > On Jan 13, 10:53 am, Adam Tucker <adam.j.tuc...@gmail.com> wrote: > > > I am working on a site where a page is

Multiple app environments on the same machine - settings & more

2007-10-15 Thread adam
simple and obvious solutions ;-) to accomplish my goal? Much love for your feedback. Take care, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Can QuerySet return array of raw data not in Dict?

2008-10-02 Thread Adam
Is there anyway to get QuerySet to return only the raw data from the field not wrapped in a dictionary object? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Populating form from existing model

2008-10-14 Thread Adam
te the form. Is there anybody who would be willng to help? Thanks, Adam --~--~-~--~~~---~--~~ 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@googlegro

New data not showing up using Forms

2008-09-10 Thread adam
Hi everyone, So I have a problem here. I have a series of forms to allow someone to create recipes, and I decided to build them with Django's form objects. The issue is that newly saved data doesn't appear as an option on another form that I bring in as part of a ChoiceField. An example that

Re: New data not showing up using Forms

2008-09-10 Thread adam
Brilliant. I actually looked at that page for some help with a different form, but I guess I completely missed the part about the init method. Thank you so much for your help. Adam On Sep 11, 12:04 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 11, 2008 at 12:

Chaining Managers

2009-04-30 Thread adam
I was wondering if it was possible (and, if so, how) to chain together multiple managers to produce a query set that is affected by both of the individual managers. I'll explain the specific example that I'm working on: I have multiple abstract model classes that I use to provide small, specific

Question about searching multiple fields

2008-06-11 Thread Adam
I'm new to Django, and as a learning exercise I've been putting together a simple contact database. There are separate fields for first_name and last_name, and another field for the company name called ac_name In the template for the main page I put a form that allows searching by name or

Re: Question about searching multiple fields

2008-06-11 Thread Adam
I was actually thinking to myself "There must be some way to auto- populate a full_name field when I create the object." but I didn't think to override the save method. Shows you how much I still need to learn; thanks for the tip! -Adam > The SimplestThinkThatCouldPossib

Re: Flash and Django

2008-02-04 Thread adam
t problem there I guess. Adam. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, s

Re: Tool recommendations

2008-02-04 Thread adam
ghetti. adam. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PRO

Re: How I do to centralize logins OpenID in django?

2012-08-22 Thread Adam
Ok! but if I share the database for the Authentication then will not be required registration for each site. I want a system similar to that used on StackExchange, for each site is required to register but the username doesn't change it is always the same for all sites. Thank you very much! I

Re: How I do to centralize logins OpenID in django?

2012-08-22 Thread Adam
Thank you! Il giorno mercoledì 22 agosto 2012 09:39:43 UTC+2, Thomas Orozco ha scritto: > > +1 - If you are running both apps using the same database server, this > would probably be the simpler solution! > Le 22 août 2012 04:26, "Kurtis Mullins" > a écrit : > >> I've

How to send xml payload by django test client?

2013-05-19 Thread Adam
is about how server side should response to a request which has no report data inside. The expected behaviour is that the server will return 'naked body' string in response object. However, the test code cannot work and I got exceptions. How could I send a real xml payload with the test client? What abo

Re: Django docs and GSoC doc summit

2011-08-03 Thread adam
e list to apply for the GSoC Documentation Summit (details below): https://sites.google.com/site/docsprintsummit/ You can apply as an individual or a group. Applications close Friday (5th), application process takes about 2-5 mins :) Hi Adam, Thanks for drawing our attention to this. This sound

Re: Django docs and GSoC doc summit

2011-08-05 Thread adam
last day today :) https://sites.google.com/site/docsprintsummit/ adam On 08/03/2011 01:44 AM, Russell Keith-Magee wrote: On Tue, Aug 2, 2011 at 6:43 PM, eset<a...@flossmanuals.net> wrote: hi, I am new to the Django list but I am a django fan (we dev with Django for www.bo

utf-8 encoding not working with mysql

2010-08-17 Thread adam
xd0\xba' I'm hoping that there is some obvious solution to this, since we're at our wits' end. Any suggestions would be of great use. Thank you, Adam -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: utf-8 encoding not working with mysql

2010-08-17 Thread adam
Karen, Thank you very much. Our collation is set to utf8_bin, which was the source of the problem. Adam On Aug 17, 9:01 pm, Karen Tracey <kmtra...@gmail.com> wrote: > 2010/8/17 adam <adus...@gmail.com> > > > > > > > When I connect directly to mysql u

Re: Customized filter for Django Admin

2010-03-24 Thread adam
derek i want to do the same thing. first, the site below mentioned about filtering. http://patrickbeeson.com/blog/2008/aug/11/how-create-user-specific-admin-Django/ in this time, you have to give country_id as a request parameter by changing link url. link url is like this:

Retrieving 'attributes' of a product for generic views

2007-05-08 Thread Adam
s the solution I'm missing here? And/or how can I access elements of a dictionary that is itself an attribute? That feels like the holy grail solution to me. Thanks, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: MySQLdb version

2007-03-21 Thread Adam
getting them to update their version? Adam --~--~-~--~~~---~--~~ 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 unsubscribe from this g

OS X install problem: No module named django.core.management

2006-09-13 Thread Adam
django src location is symlinked from the new site-packages folder in /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/ Is there anything I'm missing? Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: extending admin interface

2005-08-30 Thread Adam
Yeah, I didn't update the wiki page because you told me the page you pointed to was coming. I'll replace the previous wiki page with a link to http://www.djangoproject.com/d ocumentation/models/subclassin g/ Adam

Re: extending admin interface

2005-08-30 Thread Adam
I haven't seen that error, but one thing I noticed about your model is that I don't think you can just add things to the admin interface (like you're trying to do with 'Extra info'). You have to copy the admin section of auth.User if you want everything that's already there to also show up. For

Re: Exception raised when calling "save()" on simple model object.

2005-10-25 Thread Adam
I forgot to add...in your particular case, I think s = statustypes.StatusType(description='foo') will work. Or if you don't know what the description is yet, and need to save before setting it, s = statustypes.StatusType(description='') What it requires is having some kind of keyword

Re: How to get vote total in poll tutorial

2006-03-30 Thread Adam
You're dancing all around it. I'm pretty sure its: poll__id__exact=1 (two underscores both times) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Django svn over https?

2006-04-10 Thread Adam
Is there any chance of making the django subversion repository available over https? I'm stuck behind a firewall that will let me do svn checkouts over https, but not http. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Django svn over https?

2006-04-10 Thread Adam
Augh, ok, sort of nevermind. Right after I hit "post", the guy who told me our firewall wouldn't support WebDAV over http told me we have an http proxy outside the firewall that I could use. So problem solved for me, but it still might be useful for others with similarly draconian firewall

Re: Ordering by a column in a foreign table and custom managers

2006-04-18 Thread Adam
I'm having a similar problem in 0.91. The documentation (http://www.djangoproject.com/documentation/db_api/#ordering) says you can do this in the order_by clause. Such as: choices.get_list(order_by=('polls.pub_date', 'choice')) But that doesn't actually work (OperationalError: (1054, "Unknown

adding Many-to-one objects in m-r

2006-04-24 Thread Adam
I just started porting an app over to magic-removal and ran across this. The documentation (http://code.djangoproject.com/wiki/RemovingTheMagic#Descriptorfields) says that you can add a ForeignKey related object with either of: reporter_obj.article_set.add(headline='Foo')

Re: Best way to do a dynamic sidebar?

2006-05-17 Thread Adam
> It feels like I should be able to define a template just for the > sidebar, and insert the content of that template into whatever > template is being rendered. The way I look at it, that's pretty much what you're doing if you write a custom inclusion tag: -- custom tag file --

Error importing middleware django.contrib.sessions.middleware

2013-08-11 Thread Adam
Hello, I removed *Memcached* from django then i restarted Apache, but I am getting an ImproperlyConfigured error on account of custom middleware: *ImproperlyConfigured: Error importing middleware django.contrib.sessions.middleware: "No module named base" * [error] mod_wsgi (pid=758249):

Re: Error importing middleware django.contrib.sessions.middleware

2013-08-13 Thread Adam
Thank you so much WongoBongo, Yes I have sync database but now when I run the command again i get this following error (i tried with python2.7 manage.py syncdb and python2.7 manage.py syncdb --settings=settings_mysetting): raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))

How to do 2-ModelForm-in-1-CVB right?

2013-09-25 Thread Adam
): <<<<<<< How could I handle two forms at once in a view? Thanks, /Adam -- 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 it, send an email to django-use

Re: How to do 2-ModelForm-in-1-CVB right?

2013-09-27 Thread Adam
ta. It is still not perfect. For example, consider a dynamic formset with which you can create new objects by adding new forms in UI. In this case, it is not easy to handle all forms in one view. /Adam > > 在 2013年9月26日星期四UTC+8下午1时19分41秒,Adam写道: >> >> Hi, >> >>

Re: Looking for a good Django Forum

2016-05-31 Thread Adam
- the file structure put me off. it seems needlessly complicated with several apps and the templates stored in different directories. I will try this next. Machina and Misago both say not to use in production . I am going to try lbforum now. Adam On Friday, September 4, 2015 at 1

Re: Looking for a way to broadcast live video streams. Is it possible with Django ?

2016-06-04 Thread Adam
Thanks also, Does anyone have an opinion on big blue button? or a similar lms solution to this issue? Adam -- 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 it, send an

opentok tokbox

2016-07-04 Thread Adam
Has anyone integrated these into a django project? Are there any good alternatives? Our use case is as a virtual classroom / webinar. It seems odd that with all there documentation, nothing mentions django. Likewise furious googling fails to turn up anything beyond one GitHub example

return Database.Cursor.execute(self, query, params) django.db.utils.IntegrityError: NOT NULL constraint failed: auth_user.last_login when adding a superuser

2017-02-12 Thread Adam
Hi everyone, I'm super new to django, I tried to add a superuser and this is the error I got: File "/root/udemystuff/test_project/trydjango19/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 323, in execute return Database.Cursor.execute(self, query, params)

Re: return Database.Cursor.execute(self, query, params) django.db.utils.IntegrityError: NOT NULL constraint failed: auth_user.last_login when adding a superuser

2017-02-12 Thread Adam
nt failed: auth_user.last_login On Sunday, February 12, 2017 at 4:19:16 AM UTC-8, Antonis Christofides wrote: > > Hello, please show the full traceback. > > Antonis Christofideshttp://djangodeployment.com > > On 02/12/2017 06:58 AM, Adam wrote: > > Hi everyone, &g

Re: Seeking design guidance on a Team model where a user sends invitation to other users to join the team

2017-11-10 Thread Adam
Weird, I dont see our conversation, Anyway here is a simple setup: urls.py: from django.conf.urls import url from .views import ajax_comment_send urlpatterns = [ url("comment_send", ajax_comment_send, name="comment_send"), ] then a view - this is from my project, you will to make

Re: channels working in runserver but "Still in CONNECTING state" then "ERR_CONNECTION_TIMED_OUT" in production

2017-11-01 Thread Adam
Anybody? On Monday, October 30, 2017 at 10:57:26 AM UTC-7, Adam wrote: > > > Hello, > > I am following "getting started" in the django channel docs as well as > "django channels form the ground up" > https://artandlogic.com/2016/06/django-channels-

channels working in runserver but "Still in CONNECTING state" then "ERR_CONNECTION_TIMED_OUT" in production

2017-10-30 Thread Adam
ot;CONFIG": { "hosts": [("localhost", 6379)], }, "ROUTING": "dojos.routing.channel_routing", }, } ROUTING.PY and CONSUMERS.PY copied exactly from the docs. Here is the supervisor configuration: [program:dojos] command=/home/adam/dojos/b

Issues with setting attrs and Media when creating my own widget

2009-01-06 Thread Adam Stein
d appreciate any help either by example or pointers to examples or docs. I looked in the Django source and it looks like the admin stuff sets Media just like I'm doing. The Django doc page for Media also shows an example that looks just like what I'm doing (doesn't mention that I have to do anything else).

Re: Your IDE of choice

2009-01-07 Thread Adam Stein
> >> > prefer the eclipse sort of IDE's. > > >> > > >> > > > >> > > >> > From: django-users@googlegroups.com > > >> > [mailto:django-us...@googlegroups.com] On Behalf Of Damien Hou

Re: Your IDE of choice

2009-01-07 Thread Adam Stein
n looking (and I'm pretty sure it's not only me who's been > looking) for some good tutorial on how to do this. > > Luckily I use OS X at home, which probably means that I can use this > without any modification... :-D > > Thank you very much! > > Oscar > > On Wed, Jan 0

Re: very basic beginners question

2009-01-08 Thread Adam Yee
On Jan 8, 7:49 am, Evan wrote: > This is probably the most basic question in the history of the group. > Still, I googled the error message both in this group and in google at > large and went through the first 5 pages, and didn't see anything. > > i installed django a

Slow view causing timeout errors

2009-01-12 Thread Adam Tucker
I am working on a site where a page is loaded which replaces part of itself with another view using a simple ajax replacement (the load funciton in jQuery.) The view that is called iterates a loop anywhere from 3 to 10 times before getting to a render_to_response. Unfortunately, the view pulls

Re: Django Continuous Integration

2009-01-14 Thread Adam V.
> Revision Control: How do you layout your development repository? I'm > using Subversion for my setup but would be interested in hearing what > else others are using (Mercurial, Bazaar, Git, etc) We're using Subversion. We have one big repository, but we treat it like two top-level repository,

Re: How to obtain an intermediate ManyToMany object?

2009-01-15 Thread Adam Yee
Maybe try a all(), filter(stuff) or get(thing)? lightbox.lightboxphotograph_set.all() Does that yield anything? On Jan 15, 10:51 am, JonUK wrote: > lightbox.lightboxphotograph_set yields: > > TypeError: "'RelatedManager' object is not iterable" > > :(

Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-17 Thread Adam Yee
It was a slam dunk for completing the tutorial in the development server, but I can't figure out this issue I'm having with the generic views while using my apache server. I'm unable to get the vote view to redirect correctly. My apache error seen here with both urls.py and views.py. The

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
On Jan 17, 8:36 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Jan 18, 2:53 pm, Adam Yee <adamj...@gmail.com> wrote: > > > It was a slam dunk for completing the tutorial in the development > > server, but I can't figure out this issue I'm having wi

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
On Jan 18, 3:44 am, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > On Jan 18, 8:46 pm, Adam Yee <adamj...@gmail.com> wrote: > > > > > > > On Jan 17, 8:36 pm, Malcolm Tredinnick <malc...@pointy-stick.com> > > wrote: > > >

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
URL if you mount your site at /, but > I think most browsers and servers won't care about that extra / > > I welcome anyone pointing out a better way to make the form action > more "portable" in projects... > > -Preston > > On Jan 17, 7:53 pm, Adam Yee <adamj.

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Adam Yee
, please share other solutions. On Jan 18, 8:13 pm, Adam Yee <adamj...@gmail.com> wrote: > On Jan 18, 7:39 am, ptone <pres...@ptone.com> wrote: > > > > > > > In the tutorial, the form action in the poll_detail template is > > hardcoded to "/polls/..."

Best Practices for debugging URL problems

2009-01-21 Thread Adam Nelson
revisions and just find out which one caused the problem by trial and error. Thanks, Adam --~--~-~--~~~---~--~~ 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

Re: http links without using URLs.py

2009-01-27 Thread Adam Stein
t; go directly to the page ignoring the django requests. > > Is there a simple work around for this, that will allow me to continue > to use the convenience of the base.html inheritance? > > Thanks, > > Ana > -- Adam Stein @ Xerox Corporation Email: a...@eng.mc.xerox.com

Re: http links without using URLs.py

2009-01-27 Thread Adam Stein
o url requests. Do you know of a > way to get apache to override django? > > Thanks, > > Ana > > On Jan 27, 8:55 am, Adam Stein <a...@eng.mc.xerox.com> wrote: > > Check out: > > > > http://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs &

Re: http links without using URLs.py

2009-01-27 Thread Adam Stein
-01-27 at 09:42 -0800, May wrote: > Hello Adam, > > Thanks! I have already set up several sections for the > django site, so I must not have the syntax quite right for apache to > ignore the static links. I will work on it. One last question? What > are eggs? >

Any way to NOT escape a percent sign using 'contains'?

2009-01-29 Thread Adam Stein
to know that they would have to use "a.*b" instead of "a*b", just trying to make it simplier for myself and the people using the system. -- Adam Stein @ Xerox Corporation Email: a...@eng.mc.xerox.com Disclaimer: Any/All views expressed here have been proven

Re: Any way to NOT escape a percent sign using 'contains'?

2009-01-30 Thread Adam Stein
000, Adam Stein wrote: > > According to the docs, when using 'contains' in filter() a percent sign > > or underscore is automatically escaped. However, in my case I want the > > resulting SQL to use the percent sign. > > > > I know 'contains' will fill in the outs

Re: Strange "problem" with tutorial

2009-02-03 Thread Adam Yee
On Feb 3, 9:49 am, Joshua Russo wrote: > I'm working through the tutorials and have encountered a strange > problem. So far everything works but Python doesn't acknowledge my > base site as a package. So everywhere that you see a reference like > "mysite.poll" I need

Re: Changing default app url in development server

2009-02-04 Thread Adam Stein
>> > >> >> >> > >> >> >> > >> >> >> > Hi, > >> >> >> > >> >> >> > My question is: > >> >> >> > >> >> >> > Is there a way to

Re: Changing default app url in development server

2009-02-04 Thread Adam Stein
gt;> > >> >> > If it's a problem, maybe someone have a good reference for > >> >> > configuring > >> >> > apache server on MAC. > >> >> > >> >> > Regards, > >> >> > Arshavski Alexander. > >>

Recent admin redirect url error?

2009-02-04 Thread Adam Yee
I'm experiencing Change password / Logout redirect errors while trying to logout or change the password. The 404 messages show below: Request Method: GET Request URL:http://127.0.0.1/admin/admin/logout/ It's adding in an extra ^admin/ Same for Change password: Request URL:

Re: Recent admin redirect url error?

2009-02-04 Thread Adam Yee
Using Django version 1.1 pre-alpha SVN-9805 On Feb 4, 4:44 pm, Adam Yee <adamj...@gmail.com> wrote: > I'm experiencing Change password / Logout redirect errors while trying > to logout or change the password. > > The 404 messages show below: > Request Method:         GET &

URLField verify_exists is ignored

2009-02-05 Thread Adam Radestock
self.name This is because the subversion server returns a response asking for username and password, and so triggers the 'not valid URL' error when I try and submit the form in the admin interface. Can anyone suggest what I might be doing wrong? Adam Radestock stainlessgames Tel: (+44) (0

RE: [slightly offtopic] Which Python are people using on OSX?

2009-02-06 Thread Adam Radestock
/2.6.1/ Adam Radestock stainlessgames Tel: (+44) (0)1983 827227 Mob: (+44) (0)7725568433 MSN: raddish...@hotmail.co.uk radd...@me.com -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Russell Keith-Magee Sent: 05 February 2009 22:53

Re: A Very Puzzling MySQL Issue Performance...

2009-02-06 Thread Adam Nelson
Also, you could limit the result set to the number of records you actually need. 5k seems like an absurdly large result set. One final thing would be if you could pre-cull the Person data by narrowing it down to active users or something. The active_user field (if there is one), could quickly

Re: Which Python are people using on OSX?

2009-02-06 Thread Adam Nelson
ock 2.5.1 and it has worked fine. I would consider that next time. I've been under the impression that 2.6 can't be used with Django yet. At the least, I would only use it for helping with Django development, not for anything else - it hasn't been out long enough to be depended on IMHO. -Adam

Re: Installing Django to a newer version of python

2009-02-06 Thread Adam Nelson
> > how can I get mod_python, which is needed by apache, to load in the > > python 25 directoty and not in the 24 directory? > > If no prebuilt binary of mod_python is available that was compiled > against Python 2.5 then you must build mod_python from source code > yourself against Python 2.5. >

Re: A Very Puzzling MySQL Issue Performance...

2009-02-06 Thread Adam Nelson
On Feb 5, 12:36 pm, dan0 wrote: > Hello, > > I am having an issue with my msyqld process responding to a query > after a moderate period of inactivity. I'll issue a simple query such > as "Person.objects.filter(name__icontains='Dan')", which would map to > about 5000

Prepoplulate admin form with previously entered data

2009-02-09 Thread Adam Woodbeck
to visit is redundant. So I'm looking to cut down on the amount of typing required each time I add a new patient encounter record through the admin interface. Is there any way to prepopulate a patient's encounter in the admin interface using data from the patient's previous encounter? Adam

Re: Prepoplulate admin form with previously entered data

2009-02-09 Thread Adam Woodbeck
Would it be possible to extend the ModelForm for my encounter model, automatically filling the form when I add a new entry? On Feb 9, 9:51 pm, Adam Woodbeck <adam.woodb...@gmail.com> wrote: > I'm building my first Django app and I've run into a roadblock.  I'm > hoping someo

Best way to deal with dictionaries of lists (equivalent of SQL GROUP BY)

2009-02-10 Thread Adam Nelson
ion" bookmark_id 2, comment_descriptions "Bookmark2 Description" The Python docs are really tough to navigate and while the Django docs are excellent, I can't find the standard solution for this. I know it must come up all the time (as

Re: Geodjango GPolygon

2009-02-16 Thread Adam Fast
GPolygon is "designed" to take the geometry natively - no fromstr() or .wkt necessary. Try GPolygon(polycoords_from_database.geometry) Adam 2009/2/16 Adonis <achrysoch...@hotmail.com>: > > Hello, > > -being facing a non-givin-back-errors problem... > > v

Any way to show progress during a short process job?

2009-02-18 Thread Adam Stein
to indicate the computer hasn't frozen :-{} It seems that I can only return HTML to be displayed once from a view. Is there a way to get the functionality described above somehow? -- Adam Stein @ Xerox Corporation Email: a...@eng.mc.xerox.com Disclaimer: Any/All views expressed here have been

Re: Any way to show progress during a short process job?

2009-02-19 Thread Adam Stein
} > > //--> > > And your HTML code looks like this: > > >class="checkout_button" /> > > > >Please wait while your request is being processed... > > > Cheers, > Kevin Audleman > > On Feb 18, 2:52

Re: Any way to show progress during a short process job?

2009-02-19 Thread Adam Stein
store the iterator's contents. Guess I found a bug to exploit. Too bad they are changing it. Let me take another look at Kevin's suggestion. Maybe I can play around with showing the progress bar (unhiding it) via the JavaScript example. -- Adam Stein @ Xerox Corporation Email: a...@eng.

Self Join using QuerySet

2009-03-05 Thread Adam Nelson
Is it possible to do a self join using QuerySet? I'm looking to simulate a query like this: SELECT b.created_on, SUM(a.vote) FROM votes a JOIN votes b ON a.created_on <= b.created_on WHERE a.object_id = 1 GROUP BY 1 Which finds the sums for votes before the datetime of each vote.

Re: Best way to trap IntegrityError in Django form?

2009-03-08 Thread Adam Jenkins
You can override the clean method on the for and have it raise the appropriate error for you. I've done the same thing before and came across the issue that the form doesn't know the current user. I ended up adding a user parameter to the init and passing it when I instantiated the form. Then I

Get Current User

2009-03-09 Thread Adam Schmitz
of the fields being the current user that is logged in. -- Adam "Say what you mean and mean what you say. Because those that matter don't mind and those that mind don't matter." -Dr. Suess --~--~-~--~~~---~--~~ You received this message because you are

Values from Reverse Generic Relations on multiple objects

2009-03-10 Thread Adam Nelson
http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#reverse-generic-relations I'm working with Reverse Generic Relations and I was wondering if there is a way to get the related objects for multiple objects in a simple way. For instance, based on the bookmark example of that link,

Re: Best practise of using custom sql with Stored Procedure

2009-03-10 Thread Adam N
Tim, Here is how I do it with a different query. Using the fetchall() and getting it into a list works nicely. I know that there should be a better way to do this so that we're not making a list twice - but this works: query = """SELECT b.created_on, SUM(a.vote)

Re: Order_by number of foreign key joins

2009-03-10 Thread Adam N
You can do this by changing the Thing model: http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#reverse-generic-relations class Thing(models.Model): ... otherthing = generic.GenericRelation(OtherThing) For each thing, when you run thing.otherthing.all(), you'll

Re: tutorial

2007-08-21 Thread Adam Fast
Check to make sure you're defining the __str__(self) on your poll object. That indicates that the object does not know how to turn itself into a string. (note that with trunk the best practice way to do this will be __unicode__ but with any of the static releases the new unicode method will not

Re: Any way to re-synch database when I change models.py without deleting the DB?

2007-08-24 Thread Adam Fast
You can either manually make the change with your 4# admin utility, or look at the schema-evolution branch. Just searching this group for that term will provide a world of information. I've not kept up on it's status, but you can find it easily. On 8/24/07, Stodge <[EMAIL PROTECTED]> wrote: > >

Databases, one or many

2007-09-06 Thread Adam Jenkins
an issue, or are there any other problems I should look out for? -- --- Adam Jenkins [EMAIL PROTECTED] 312-399-5161 --- --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Databases, one or many

2007-09-06 Thread Adam Jenkins
these apps to a > separate project. This actually brings up an issue. I've heard that many Django developers don't use projects at all, that they just use apps. Is this correct? Should I default to one project and break it up into smaller ones if the need arises? On Sep 6, 4:27 pm, "Adam

Re: Issue with regroup and sorting with foreign keys

2007-09-11 Thread Samuel Adam
I have had similar issues while sorting with foreignkeys, try specifying the sort like this : {% regroup techskill.name.all|dictsort:"domain.id" by domain as grouped %} On Sep 11, 11:04 am, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > Hello, > > Below my model with which I have an issue : > >

Re: django-voting question

2007-09-12 Thread Samuel Adam
Try this : {% for p in posts %} {{ p.0 }} {{ p.1 }} {% endfor %} :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Arithmetic operations in a templete

2007-09-14 Thread Samuel Adam
no, Scott, you should just do *this*: In your Parrot model, you could add a property that displays your DOM id. class Parrot(models.Model): # fields def _domid(self): return ''parrotButton-%s" % self.id domid = property(_domid) and use parrot.domid in your templates. On

Re: media

2007-09-20 Thread Samuel Adam
http://www.djangoproject.com/documentation/static_files/ --~--~-~--~~~---~--~~ 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 unsubscribe from

Re: Adding extra info to HttpResponseRedirect

2007-10-04 Thread Samuel Adam
HttpResponseRedirect doesn't return a template so you just need to add your message before the redirect: request.user.message_set.create(message="Your playlist was added successfully.") You should implement the display of your messages on your base template like this: {% for message in messages

Contractual Django Developer Position

2007-10-11 Thread Adam Jenkins
350 N. La Salle St. Chicago, IL 60610 please contact [EMAIL PROTECTED] and [EMAIL PROTECTED] if interested. -- --- Adam Jenkins [EMAIL PROTECTED] 312-595-2216 --- --~--~-~--~~~---~--~~ You

Accessing many-to-many relations in save()

2007-10-11 Thread Adam Endicott
://groups.google.com/group/django-users/browse_thread/thread/99680b69d2d4799c/07093d3695163269 Thanks, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Accessing many-to-many relations in save()

2007-10-12 Thread Adam Endicott
> I don't think there's a clean solution to this (as far as making the > Admin work with it). I don't think the admin can make use of a custom > manipulator without hackish code. Bummer, I figured the best I could hope for would be to replace the automatic manipulators to do my bidding after

Re: Accessing many-to-many relations in save()

2007-10-12 Thread Adam Endicott
> How about something along these lines (a lazy initialization pattern): Well, the point of saving that boolean was so I could do database queries on it (MyModel.objects.filter(has_m2m_thing=True)). That wouldn't really work with this lazy initialization pattern, unless I'm missing something.

Re: Accessing many-to-many relations in save()

2007-10-12 Thread Adam Endicott
> Can you describe generally what you are trying to update in the parent > object when its ManyToMany relationships are changed. Perhaps there's > a way to solve your specific problem without requiring more general > purpose solutions (like Custom Manipulators). Sure. I'm trying to set a boolean

  1   2   3   4   5   6   >