Re: Slow view causing timeout errors

2009-01-13 Thread Adam
I probably should have thought of that before. On Jan 13, 4:38 am, Daniel Roseman wrote: > On Jan 13, 2:53 am, Adam Tucker wrote: > > > 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 funci

Re: Slow view causing timeout errors

2009-01-13 Thread Adam
d 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 wrote: > > > I am working on a site where a page is loaded which replaces part of itself > >

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 I

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:

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 to

Populating form from existing model

2008-10-14 Thread Adam
the syntax to generate 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 djang

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

utf-8 encoding not working with mysql

2010-08-17 Thread adam
1\x81\xd0\xba\xd0\xb8\xd0\xb9 \xd1\x8f\xd0\xb7\xd1\x8b\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 Googl

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 wrote: > 2010/8/17 adam > > > > > > > When I connect directly to mysql using the mysql client program, I see > > that my table

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: .../region?country_id

Flat pages contrib + caching?

2007-06-14 Thread Adam
Hello, I'm using flat pages quite a bit on a site, and would like to be able to cache them. I'm not finding any reference to this in the group or documentation, will I have to change the flatpage middleware itself or is there already a way to accomplish this (without a whole-site or anonymous on

Re: Flash and Django

2008-02-04 Thread adam
ind. Some struct 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 fro

Re: Tool recommendations

2008-02-04 Thread adam
s spaghetti. 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 [EMAI

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 compan

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 SimplestThinkThatCouldP

Re: MySQLdb version

2007-03-21 Thread Adam
luck 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 t

Retrieving 'attributes' of a product for generic views

2007-05-08 Thread Adam
iculous, in my opinion) What'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 be

Multiple app environments on the same machine - settings & more

2007-10-15 Thread adam
or, preferably, some 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 g

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 --

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

2006-09-13 Thread Adam
tion of my 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

Re: global settings

2005-08-16 Thread Adam
I posed just this question on #django last week. After going around and around a few times, here's what I came up with. Its not exactly the same thing, but it is working for me in a system where all the urls are basically getting you to detail views of the different objects. In myproject/settings

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 in

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

2005-10-25 Thread Adam
I wrote a ticket about this (http://code.djangoproject.com/ticket/662). I think I found where and why this occurs, but I don't have a patch for it, because I suspect there are more things going on than I know about, and I don't want to do just a quick fix for my particular issue.

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 argument.

Re: Django screencast

2005-12-13 Thread Adam
I thought the music was an especially nice touch.

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-us

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 Gr

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 issues.

Re: Django svn over https?

2006-04-11 Thread Adam
I know where you're coming from, but my understanding is this isn't a policy issue, its a technology issue. The firewall we use (from a major vendor) does not support the necessary WebDAV extensions that subversion uses. So changing this would be difficult at a minimum, as this is a large company

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 co

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') reporter_obj.article_set

FilePathField blank=True

2006-05-01 Thread Adam
(in M-R) I have a model with this field: image = models.FilePathField(path='/my/path', blank=True, null=True) In the admin interface, the image field shows up dimmed like the rest of the optional fields. However the select list lists all the files in /my/path, without any blank option. So you ar

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 never tried this approac

How to send xml payload by django test client?

2013-05-18 Thread Adam
ent describes, the test 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 xm

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): Excepti

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])) djang

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

2013-09-25 Thread Adam
UserProfileUpdateView(FormView): <<<<<<< 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, se

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

2013-09-27 Thread Adam
context_data. 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, >&g

Re: Django docs and GSoC doc summit

2011-08-03 Thread adam
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 sounds like a great opportunity to

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 wrote: hi, I am new to the Django list but I am a django fan (we dev with Django for www.booki.cc)... anyways I wanted to

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

2017-10-30 Thread Adam
quot;: "asgi_redis.RedisChannelLayer", "CONFIG": { "hosts": [("localhost", 6379)], }, "ROUTING": "dojos.routing.channel_routing", }, } ROUTING.PY and CONSUMERS.PY copied exactly from the docs. Here is the supervisor

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-

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 c

Re: Looking for a good Django Forum

2016-05-31 Thread Adam
pirit - 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

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

2016-06-04 Thread Adam
IE. > 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

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 (whi

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
yError: NOT NULL constraint 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: &

Re: Setting up Django on CentOS5 with flup and fastcgi

2008-10-21 Thread Adam Nelson
cles/nginx-fastcgiwsgi-django-deployment I haven't put any real load on this stuff yet but it sounds like wsgi is a champ and it's certainly been great for me so far. -Adam On Oct 21, 1:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > yes i have read that.. &g

Re: Django Suitability

2008-10-23 Thread Adam Nelson
nguage in all modern UNIX systems - which says alot about how solid it is and how it's here to stay. -Adam On Oct 23, 6:21 am, "Matthew Talbert" <[EMAIL PROTECTED]> wrote: > Thanks, Dj, that is helpful. > > > A project I worked on over the summer used a Database that w

Re: why not django's default server?

2008-10-25 Thread Adam Fast
It's worth mentioning as well that the Django "built-in" dev server is single-threaded the last time I heard, and with transferring large files / the application itself, I see a lot of your users getting "busy signals" so to speak from the server when they request pages. A few thousand pageviews a

Per-Test Caching?

2008-11-08 Thread Adam Seering
an I put it s.t. it runs before (and, ideally, after, for cleanup purposes) all test cases? 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

ChicagoLug Code review

2008-11-13 Thread Adam Jenkins
We would like to announce that this Saturday November 15th from 3 to 6pm is the Chicago Lug code review meeting. If you're stuck on a piece of code, looking to learn a few tricks, or just wanna hang out with some nerds, then come by. We will have people with knowledge in C, Python, Django, Ruby,

djangobook ch3, can't see the view current_datetime

2008-11-16 Thread Adam Yee
I'm a new user to Django, hi everyone. My system: Windows XP Python 2.5 Apache 2.2 >>configured for mod_wsgi MySQL, MySQLdb #Irrelevant at this point My issue: Having trouble getting the through the first example. Basically, when directing the browser to '.../time/' I'm still at the 'It worke

Re: djangobook ch3, can't see the view current_datetime

2008-11-16 Thread Adam Yee
Thanks again. On Nov 16, 6:31 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-11-16 at 17:41 -0800, Adam Yee wrote: > > [...] > > Good debugging info snipped. > > > When enteringhttp://localhost:8080/testproject/timeI'm reading this >

Re: automatically save latitude and longitude of the address.

2008-11-17 Thread Adam Fast
erate, which is more useful if other models in your system will require geocoding. I'd definitely rename the function though because it's doing more than just returning latitude at that point.) Code at: http://dpaste.com/91483/ Adam On Mon, Nov 17, 2008 at 3:19 AM, please smile <[EMAIL

change/edit list not showing in admin interface

2008-12-03 Thread Adam Yee
Hi, Going through chapter 6 in the djangobook. Using 1.1 SVN-9368. I think this chapter might be missing a step or two, or there's something I'm overlooking. In both the django development server and my apache server I can't seem to show the created models 'Publiser, Author and Books'. All mo

Re: Combining multiple Django applications.

2008-12-13 Thread Adam Fast
merge them into one with no intermediate (make sure you read the comments, there is additional helpful discussion on performance and other methods there) Adam http://ryanberg.net/blog/2008/jun/24/basics-creating-tumblelog-django/ http://lazypython.blogspot.com/2008/11/timeline-view-in-django.htm

TextMate Django Bundle

2008-12-17 Thread Adam Nelson
Does anybody have this working in TextMate? "Python Django Templates.tmbundle" >From http://macromates.com/svn/Bundles/trunk/Bundles/ I've installed other bundles and the Python Django.tmbundle, but the Templates one simply doesn't appear in the Bund

Issues with setting attrs and Media when creating my own widget

2009-01-06 Thread Adam Stein
re. Did I need to do anything else? I would 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'

Re: Your IDE of choice

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

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 >

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 few weeks ago.  i'm pretty

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 dat

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,

Site wide date format

2008-07-15 Thread Adam Peacock
I'm looking for a consistent way to format dates across my site, without having to put the format into every template. Is it possible to set a default date format for the "date" filter? For example, I want {{ var.date|date }} to format to {{ var.date|date:"l, F j Y" }} unless I specify otherwise

Re: Site wide date format

2008-07-15 Thread Adam Peacock
Thank you for the quick response - I think I'm going to go with the custom filter for maximum flexability On Jul 15, 9:25 am, "Brett Hoerner" <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote: > > Is this pos

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread Adam Stein
tifacts. > * transfer distribution > > Perhaps you just hand build python scripts to do it. Or do you use > Ant or make? I'm coming over from Java, and used to use Ant, but I'm > migrating over to Python and would like to use what is generally > considered the Py

django-locationtracking Reusable App

2008-09-18 Thread Adam Fast
need to be ported from my personal site to be generic) and multi-user support baked in, but if you're interested in using it it's ready to go with the InstaMapper iPhone/other phone handsets backend. Adam --~--~-~--~~~---~--~~ You received this message be

Re: django google-app-engine appengine backend

2008-09-18 Thread Adam Fast
ry below. If that was a typo ignore, but if that's there then the app isn't being picked up for that reason. Adam On Thu, Sep 18, 2008 at 10:29 PM, bfrederi <[EMAIL PROTECTED]> wrote: > > I am trying to get django1.0 running with the google-app-engine SDK. I > am u

Updates not working

2008-09-22 Thread Adam Findley
For some reason this fails in the view, but doesn't fail in the shell... I'm at such a loss here. Any ideas here? Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

[OT] Looking for developers: platform for fast and effective learning

2008-09-25 Thread Adam Dziendziel
we can consider changing tools. Best regards, Adam Dziendziel adam (dot) dziendziel (at) gmail (dot) com PS. Sorry for OT, it is hard to find a good place to ask. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Looking for an example on how to use us.forms.USZipCodeField

2008-09-26 Thread Adam Stein
ter choice. Thanks for any links, pointers, examples, etc. -- Adam Stein @ Xerox Corporation Email: [EMAIL PROTECTED] Disclaimer: Any/All views expressed here have been proven to be my own. [http://www.csh.rit.edu/~adam/] --~--~-~--~~~---~--~~ You rec

Re: Looking for an example on how to use us.forms.USZipCodeField

2008-09-30 Thread Adam Stein
agee wrote: > On Fri, Sep 26, 2008 at 9:11 PM, Adam Stein <[EMAIL PROTECTED]> wrote: > > > > While there is are phone number and US state model fields, there doesn't > > seem to be the equivalent zip code field, even though there is a zip > > code form elemen

Re: Django book says MSSQL works with 1.0...?

2008-10-09 Thread Adam V.
I'm the django-mssql maintainer; please do post in bugs or weirdness you run into to http://code.google.com/p/django-mssql/ and I'll try to get the fixed. Thanks, -Adam V. (For what it's worth, at work we're using Apache + mod_python for our internal development; haven'

Re: Django book says MSSQL works with 1.0...?

2008-10-10 Thread Adam V.
> OT: I respect your position but, why you use mssql? Our IT systems at work are already Windows / SQL Server based, so it made sense to do our new web development against the same database. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Which IDE do you choose with django?

2008-10-13 Thread Adam Schmitz
E is suit for > > django? > > > > thank your > > > > > Abdel Bolaños Martínez > Ing. Infórmatico > Telf. 266-8562 > 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA > > > -- Adam "Do one thing, and do it well." -- T

Streaming Video

2008-10-13 Thread Adam Schmitz
Does anyone know of any Django Apps that you can plug into your site to stream video content like YouTube (but the video file is hosted yourself, not by YouTube)? -- Adam "Do one thing, and do it well." -- The UNIX Philosophy --~--~-~--~~~---~--

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 apache

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

2009-01-18 Thread Adam Yee
On Jan 17, 8:36 pm, Malcolm Tredinnick wrote: > On Jan 18, 2:53 pm, Adam Yee 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 with the generic > > views while using my apa

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

2009-01-18 Thread Adam Yee
On Jan 18, 3:44 am, Graham Dumpleton wrote: > On Jan 18, 8:46 pm, Adam Yee wrote: > > > > > > > On Jan 17, 8:36 pm, Malcolm Tredinnick > > wrote: > > > > On Jan 18, 2:53 pm, Adam Yee wrote: > > > > > It was a slam dunk for completing th

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

2009-01-18 Thread Adam Yee
gt; > This proobably means a // in the 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 > &g

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

2009-01-18 Thread Adam Yee
to reiterate what Preston said, please share other solutions. On Jan 18, 8:13 pm, Adam Yee wrote: > On Jan 18, 7:39 am, ptone wrote: > > > > > > > In the tutorial, the form action in the poll_detail template is > > hardcoded to "/polls/..." > > > So th

Best Practices for debugging URL problems

2009-01-21 Thread Adam Nelson
isions 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-users

Re: http links without using URLs.py

2009-01-27 Thread Adam Stein
the links > 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

Re: http links without using URLs.py

2009-01-27 Thread Adam Stein
and still run into django url requests. Do you know of a > way to get apache to override django? > > Thanks, > > Ana > > On Jan 27, 8:55 am, Adam Stein 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
? I could use regexp, but I didn't want people 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 Dis

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

2009-01-30 Thread Adam Stein
47 +0000, 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

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 to use only "poll". I think

Re: Changing default app url in development server

2009-02-04 Thread Adam Stein
;> >> > Hi, > >> >> >> > >> >> >> > My question is: > >> >> >> > >> >> >> > Is there a way to change my default app url in development server > >> >> >> > fromhttp://localhost:8000tohttp://l

Re: Changing default app url in development server

2009-02-04 Thread Adam Stein
t; >> >> > 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:http:/

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 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 > Request URL:  

URLField verify_exists is ignored

2009-02-05 Thread Adam Radestock
return 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 stainless

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

2009-02-06 Thread Adam Radestock
rg/download/releases/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

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 k

  1   2   3   4   5   6   >