Re: potential issue re in memory django file uploading.

2010-08-29 Thread Steve Holden
On 8/29/2010 12:05 AM, dave b wrote: > On 29 August 2010 13:33, Graham Dumpleton wrote: >> >> >> On Aug 29, 1:17 pm, dave b wrote: >>> On 29 August 2010 08:28, Steve Holden wrote: >>> >>>> On 8/28/2010 6:10 PM, Graham Dumpleton wrote: >

Re: potential issue re in memory django file uploading.

2010-08-29 Thread Steve Holden
you may be correct in treating this as a vulnerability, but your estimate of its seriousness appears to disagree with that of others. If you want to have your code seriously considered for inclusion (and why not?) you should raise it in the Django issue tracker - see "Reporting Bugs" in

Re: potential issue re in memory django file uploading.

2010-08-29 Thread Steve Holden
y. Yes, it might be a problem. But you'll notice it's #22 on a list of 25 ... Anyway, since you have done your civic duty there's a good chance that a fix will find its way into some future version. Thanks for being a good citizen. regards Steve -- DjangoCon US 2010 September 7-9

Re: Unable to add two Numbers

2010-08-29 Thread Steve Holden
't work" You don't show any code, you don't give us any error messages, you don't describe the failure mode at all. You simply say that you fail tp get the form values and you "face a problem" in storing the information in the database. Is it that you don't know

Re: Overriding flatpages class meta

2010-08-29 Thread Steve Holden
On 8/29/2010 6:51 PM, Goran wrote: > Thanks for the answer Steve. I'm Django and Python novice and here is > what I was try. But it doesn't work. > > from django.contrib.flatpages.models import FlatPage > > class NewFlatpage(FlatPage): > > class Meta: The

Re: potential issue re in memory django file uploading.

2010-08-30 Thread Steve Holden
ore than 5,000 impressions a day you are an idiot who will never deserve gainful employment in the web world. How many hits a day does your site get? Look, get off your high horse. Stop trying to prove to everyone how clever you are, join the community and start to seriously learn from the many b

Re: potential issue re in memory django file uploading.

2010-08-30 Thread Steve Holden
Thanks for the reminder. I apologize. regards Steve On Aug 30, 2010 10:04 PM, "Russell Keith-Magee" wrote: >> On 8/30/2010 9:09 PM, dave b wrote: >>> Do not pass go do not collect profit! > ... >>> Put your hands up in the air like you just don't c

Re: fetching values from model

2010-09-01 Thread Steve Holden
ds in the template? What's wrong with doing it in the view, which is what everyone else does and how Django is intended to be used? See Jonas' remarks below. regards Steve >> On Sep 1, 6:02 pm, Jonas Geiregat wrote: >>>> You don't write Python code inside your

Re: multiple oracle database queries in one request problem

2010-09-01 Thread Steve Holden
the cx_oracle database driver a > threaded=True option (which is off by default). > > So I added the following to my database config and I'm hoping I'll be > happy tomorrow morning... > > 'OPTIONS': {'threaded': True} > > > I'll update

Setting a default value for a select widget in a modelformset

2010-09-02 Thread Steve McConville
way to go about this? Is it necessary to create a custom widget to achieve this? -- steve -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this grou

Re: How to display many-to-many field as a list of text input fields?

2010-09-02 Thread Steve Holden
A many-to-many relationship represents a constraint on the database, which is therefore reflected by Django as a constraint in the user input. What would you expect Django to do if the user enters the name of a tool in your form that doesn't exist? regards Steve > class Tool(models.

Re: what to do instead of adding to Query.extra_where ?

2010-09-02 Thread Steve Holden
id',)) > > Seems to work fine. > [...] Once again this group proves itself at least as valuable as a stuffed bear ;-) regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django us

DjangoCon Jobs Board

2010-09-04 Thread Steve Holden
provide a service to the Django community. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- 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 u

Re: Getting last or max "id" value from database

2010-09-05 Thread Steve Holden
jects.aggregate(Max('id')) p = Input.objects.get(pk=maxid) No need to worry about the possibility of an exception, since the maxid value is guaranteed to exist (as long as there's at least one row in the table). This does, however, rely on the assumption that auto-increm

Re: Django template : For Loop

2010-09-05 Thread Steve Holden
dot notation to select the elements: {% for x in VALUES %} First item is x.0 Second item is x.1 {% endfor %} I believe in more recent versions you have the option of unpacking the two elements in the for statement: {% for x1, x2 in lists %} ... {% endfor

Re: Django template : For Loop

2010-09-05 Thread Steve Holden
can pass that item to your template and iterate over it. > > I tried this, its not working. > Sorry, but "not working" does not constitute useful information. My car isn't working. Can you fix it? ;-) regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/

GoFlow - anybody out there used it?

2010-09-06 Thread Steve Boyle
oad of time in something that could have been better spent writing something from scratch. Many thanks Steve -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To uns

Re: need help with admin list images

2010-09-18 Thread Steve Holden
Read up on the concept of "safe" markup: http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#filters-and-auto-escaping regards Steve On 9/18/2010 6:16 PM, Bobby Roberts wrote: > only thing that does is return this: > > width="65"/> > > >

Re: Relationship question: What do I do wrong?

2010-09-18 Thread Steve Holden
perhaps with using a "through" table (? is that what they are called) to add one or more status columns to store further attributes of the relationship such as "post_main_course" / "with_main_course" (useful for searching). regards Steve -- DjangoCon US 2010 Sept

Re: {% url %} template and javascript Get with callback

2010-09-19 Thread Steve Holden
way. > > -Ben > (and I'm sure the sites are on the same domain -- if I hardcode the > full url, the callback works fine). > SERVER_NAME and SERVER_PORT are available in HttpRequest.META if you want to construct full URLs. regards Steve -- DjangoCon US 2010 September 7-9 http://dj

Re: multiple servers one database

2010-09-20 Thread Steve Holden
he two web servers are sharing a disk they are presumably fairly local to each other. Why not just a single database server with each Django server connecting to it over a LAN? You may need to think more deeply abut transaction isolation. Just an idea ... regards Steve -- DjangoCon US 2010 Septembe

Re: ManyToManyField to Phones model for enter phones manually (not select from list)

2010-09-22 Thread Steve Holden
k phones and save it all to database and get Phone model ids for > this phone numbers. And return this ids > > All work well. Simple solution for this task. Thank you for help! > Most of the help seems to have been self-provided, so well done! regards Steve -- DjangoCon US 2010 Sept

Re: Why Django Apps Suck

2010-09-22 Thread Steve Holden
ason to > spend the effort making it reusable. True to a certain extend, but it takes a certain amount of experience to recognize a true YAGNI. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups &quo

Re: Python unexpectedly quit

2010-09-24 Thread Steve Holden
aren't being picky enough? regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- 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 unsubscri

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Steve Holden
hich can greatly helps when it comes to maintainance. > > Ok, I see your point, but still - there`s nothing about this in the > main django documentation as far as I know. The docs should have a > section about organizing projects where the standard models.py and > views.py doesn`t fit

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Steve Holden
On 9/27/2010 11:31 AM, Thomas Weholt wrote: > On Mon, Sep 27, 2010 at 4:52 PM, bruno desthuilliers > wrote: >> On 27 sep, 12:55, Thomas Weholt wrote: >>> On Mon, Sep 27, 2010 at 12:40 PM, Steve Holden wrote: >>>> I think the point is to learn enough Pytho

DjangoCon 2011

2010-09-27 Thread Steve Holden
lose by. I will let you know more when I hear more. In the meantime, I am wondering whether it might be more practical to have a third year at the Doubletree in Portland, and adopt a longer time frame for 2012 planning for an East coast conference. Feedback on that question would be welcome. regards

Re: DjangoCon 2011

2010-09-27 Thread Steve Holden
rlando for me (sorry, I just can't bring myself to like the place as a conference venue, great as it may be for a family vacation). While the other two cities might be possibilities for future years I don't think they are any more likely to be practical for 2011 than Chicago or New York,

Re: IDE for Python/django

2010-09-28 Thread Steve Boyle
I've used Aptana for a while now and it's worked great for me. http://www.aptana.com/ rgds On Sep 27, 2:07 pm, Carlos Daniel Ruvalcaba Valenzuela wrote: > So far there is 3 big ones for django, Eclipse + PyDev or Aptana + > PyDev, WingIDE (latest version can even debug django templates) and > P

Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
There seemed to be a general feeling that a change of venue should head Eastwards rather than South. So we are looking primarily for East coast locations as an alternative to Portland for 2011. regards Steve On 9/27/2010 11:49 PM, David Zhou wrote: > Is the bay area right out for cost reas

Fwd: Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
On 9/28/2010 1:19 AM, Kenneth Gonsalves wrote: > On Mon, 2010-09-27 at 22:51 -0400, Steve Holden wrote: >> I'd just like to briefly report back on the inquiries Nancy and I have >> been making into East coast venues for DjangoCon 2011. > > just curious - why a ho

Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
support from a broad cross-section of the community. I hope nobody takes this the wrong way. regards Steve On 9/28/2010 8:48 AM, Rev. Johnny Healey wrote: > It seems like no one has suggested New Orleans yet, so I'm just going > to toss that out there. > > -Johnny > -- D

Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
On 9/28/2010 9:44 AM, Dana Spiegel wrote: > Steve, > > This seems totally reasonable. > > Looking at this from a different perspective, given that there are a > large and increasing number of python-based startups in NYC, would it > make a difference re: which city was chose

Re: Model field choices

2010-09-28 Thread Steve Holden
ects.get(id=1).offer_type returns > the numeric value only ("3" instead of "free"... which I suppose is to > be expected). > > Thanks! > You should find that your model instances have a get_offer_type_display() method that you can call to retrieve the value

Re: How to get an ajax call to return both QuerySet and paging info in Django

2010-09-28 Thread Steve Holden
;t know about a fake object, but surely if you put everything you want in a Python dict and then serialize that it will arrive in JavaScript as an object with named fields, which you can use as you want by referencing the fields as object attributes. Or am I missing something? regards Steve

Re: What is the correct way to copy an object from one model to a similar model?

2010-09-29 Thread Steve Holden
tr(foo, field)) > I believe that last line should read setattr(spam, field, getattr(foo, field)) regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: UnicodeEncodeError

2010-09-29 Thread Steve Holden
It sounds to me as though the image is being transmitted with the wrong MIME Type. Image files are binary data, but something in your application is treating is as a string. regards Steve On 9/29/2010 1:05 PM, werefr0g wrote: > Hi, > > You should check that your file is actually utf-

Re: UnicodeEncodeError

2010-09-29 Thread Steve Holden
It might be helpful to provide rather more of the traceback information. Also, check your database encoding. Somehow you are requiring Django to convert a Unicode string in to an ASCII string. regards Steve On 9/29/2010 2:01 PM, jean polo wrote: > hi Steve > > do you have any ad

Re: template syntax errors in production admin site (version problem?)

2010-09-30 Thread Steve Holden
{% else %} > 18{{ field.field }} > 19{% endif %} > 20{% endif %} > Is there any possibility that your server is trying to report a 500 error, and that it's actually the

Re: url not going to view

2010-09-30 Thread Steve Holden
Just as "^" means "start of string" so "$" mean "end of string", so "^$" means a string where the end is next to the beginning. You can read the Python documentation for the "re"module for more insight into all this. regards Steve

Re: DjangoCon 2011

2010-09-30 Thread Steve Holden
ise otherwise a high priority will be trying to keep the 2011 cost as close to this year's level as I can. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Steve Holden
n't stop it being distributed under an open source license. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- 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...@g

Re: Full Text Search

2010-09-30 Thread Steve Holden
ed brain! regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send emai

Re: Error

2010-10-01 Thread Steve Holden
possible, given the nature of the error]. Or did you just copy a partial output thinking that it would be enough? The full "traceback", as it's called, would allow a more detailed analysis. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this m

Re: Django website down?

2010-10-02 Thread Steve Holden
http://www.downforeveryoneorjustme.com/djangoproject.com Seems fine to me. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- 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...@goog

Re: Django documentation search not working

2010-10-02 Thread Steve Holden
search from www.google.com > django login() and get access to django docs but can't search > django docs from the django website any explanation? > Are you maybe running NoScript or some other script inhibiting extension to your browser? The search feature's working just f

Re: Any way to select which Model to initialize without resorting to "if-elfi" statements?

2010-10-03 Thread Steve Holden
import WomensApparelForm, TVForm, CandyForm from thatmodule import LaptopForm from theothermodule import CarForm, TruckForm and so on. All you are doing is juggling namespaces, but as "import this" reminds us, "namespaces are one honking good idea. Let's do more of those

Re: convert list into a comma separated string

2010-10-04 Thread Steve Holden
nder Apache, however, that is not the case. Also note that "str" is not a happy choice of name, since it is also the name of one of Python's basic types and you may wish to use it as such. Having a variable called "str" in your code stops you from doing so. A little more inf

Re: treating different versions of website urls as one

2010-10-05 Thread Steve Holden
What about www.mysite.com/default.asp? It might be helpful if you could give us a little more insight into the real requirement here, rather than a technical question based on some interpretation of the requirement. regards Steve On 10/5/2010 12:57 PM, Alec Shaner wrote: > Definitely sou

Re: treating different versions of website urls as one

2010-10-05 Thread Steve Holden
page /data will be the same. > .This is why I need to consider the validation for duplicates > thanks for the replies > harry > > On Oct 5, 10:00 pm, Steve Holden wrote: >> What aboutwww.mysite.com/default.asp?It might be helpful if you could >> give us a little more in

Re: Django Registration password reset problem

2010-10-05 Thread Steve Holden
e who post on this list aren't paid to do so, and mostly have full-time jobs. So a little patience will make it more likely people will help you. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Gr

Re: Django app that uploads media files and servers them through a view?

2010-10-06 Thread Steve Holden
the case. Most sites have a front-end server (typically nginx or Apache) serve the static content directly. For things like CSS style sheets and graphics permissions aren't usually that important. Stodge's case appears to be different. regards Steve -- DjangoCon US 2010 September 7-9 http://dj

Re: admin site not working, problem with urls.py?

2010-10-06 Thread Steve Holden
rtainly shouldn't be seeing anything "funky". regards Steve On 10/6/2010 11:59 AM, Lisa Gandy wrote: > Thanks for the help, > This ended up working > (r'^admin/(.*)', admin.site.root) > > Now, when I look at the admin panel, its really funky looking

Re: data synchronization

2010-10-06 Thread Steve Holden
order data. It's very easy to write RESTful Django views, and you can easily use either JSON or XML (among other possible formats) to transfer the data between the two sites. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are

Re: Possible backwards incompatibility introduced by change 12950 (in upgrade from 1.1.1 to 1.1.2)

2010-10-07 Thread Steve Holden
ogramming language itself ;) > > - Jyrki Don't we all, sometimes? regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: dictionary doesn't get properly updated

2010-10-07 Thread Steve Holden
,the self.threads should > have printed the initially added thread's name and instance. > Please tell me if I am missing something > Are you sure that everything is being run in the same process? If (for example) you are using Apache as a front-end then, as I understand it,

Re: dictionary doesn't get properly updated

2010-10-07 Thread Steve Holden
I don't believe so, guess you have to keep looking. regards Steve On 10/7/2010 11:46 AM, jimgardener wrote: > I am using the development server..will that cause such a problem? > jim > >> Are you sure that everything is being run in the same process? If (for >> exampl

Re: I can't select day with calendar widget

2010-10-09 Thread Steve Holden
As others have observed, I see the correct dates for holidays I created, including 2010-10-10. regards Steve On 10/9/2010 7:46 AM, Rene Vielma wrote: > Hello > > I've upload the sandbox project whit develop server to > http://200.63.96.245:8000/admin/ > user and p: test &g

Re: trouble creating first project

2010-10-11 Thread Steve Holden
e of the directories on your path to the django-admin.py file. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- 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...@googl

Re: trouble creating first project

2010-10-12 Thread Steve Holden
hes for programs to execute. I'd be very surprised, by the way, to find the ls program in /usr/local/bin. It normally lives (as do most other system binaries) in /bin. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscri

Re: Escaping text for raw SQL?

2010-10-12 Thread Steve Holden
imple: def sqlesc(s): return replace("'", "''") and the SQL generation would read something like (again, untested): sql = "SELECT foo, bar FROM proj_words WHERE foo IN (%s)" % \ ", ".join("'%s'&qu

Re: MaxValueValidator to validate a model

2010-10-18 Thread Steve Holden
ary decimal values. You would not want your input to validate correctly with an entry of (say) 14.501, which might be possible if the limit was expressed as a floating-point number. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message be

Re: Different logins in same browser session and login_required

2010-10-20 Thread Steve Holden
hey do that, but if they are so unsophisticated that they let two different users interact with the system through a single login account they must expect trouble with authenticated systems. As is so often the case, education is the answer. And, as is so often the case, the users would rather sacr

Re: Displaying a template table using a query set

2010-10-20 Thread Steve Holden
able_data %} > > > {{ row.Organization.id }} > > > <% endfor %} > > > I guess I'll have to pass another query set object to do this, > will this have any effect on the throughput of the database? > Is it possible to access cached result of th

Re: about site price

2010-10-20 Thread Steve Holden
a lot more about building web sites than you apparently do at the moment. If you don't gain the experience, you risk exposing yourself to large liabilities. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to t

Re: /admin list help ASAP

2010-10-20 Thread Steve Holden
return u'%s: %s' % (self.getGallery(), self.title) You actually have to _call_ the getGallery method. Note that the __unicode__ and getGallery methods Mike describes should be methods of your photos model. regards Steve -- DjangoCon US 2010 Septemb

Re: call more than one view action from an uri path?

2010-10-21 Thread Steve Holden
but that terminates the lookup on the last item (rest), instead of > calling the lambda on the way down! > By the way, what are you imagining the functions nest(), pest() and rest() will return? They cannot all return HTTP responses, since there can only be a single response to a single request

Re: call more than one view action from an uri path?

2010-10-21 Thread Steve Holden
t() in earlier Pythons? ... > if func in list_of_allowed_funcs: > func(arg) > return HttpResponse('whatever') > regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Grou

Re: call more than one view action from an uri path?

2010-10-21 Thread Steve Holden
hind its last match in the match object's groups. It's all going to get a bit painful trying to do this with a urlconf. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django use

Re: What does an ideal django workflow setup look like?

2010-10-24 Thread Steve Holden
ontrol but have it include as its last statement from local_settings import * The local_settings.py file is then maintained outside source control on each target platform. This works very nicely, and allows you to maintain common settings without having to edit a file that's under code contro

Re: how to use tkinter widget in django

2010-10-26 Thread Steve Holden
odel like , > class MyModel(django.models.Model): > user_enrty=tkinter.Scale(...) > Unfortunately you cannot do this. Tkinter assumes direct control of the desktop, whereas Django is a web system that must use HTML (or similar) to deliver markup to the user's desktop using HTTP. Tkinter

Re: how to use tkinter widget in django

2010-10-26 Thread Steve Holden
orget using Python is that Python isn't available on the browser. You have to deliver content from Django that the user's browser can execute, and that isn't likely to include Python in most cases. http://www.learnthenet.com/learn-about/how-the-web-works/ regards Steve --

Re: SELECT * FROM `student` WHERE mark=(select max(mark) from student)

2010-10-26 Thread Steve Holden
itors will necessarily be persuaded by sensible arguments) to dump a copy of a row (plus possibly a timestamp field) to an archival table before update? This coild easily be done on a pre-save signal ... regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this m

Re: Django 1.3 alpha 1 released

2010-11-11 Thread Steve Holden
On 11/11/2010 5:04 PM, Russell Keith-Magee wrote: > It won't be 100% frozen until the final release Shouldn't that be "first beta"? regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the

Re: Create User from an User extension

2010-11-12 Thread Steve Holden
na the UserInline lets you enter a User record, but the User has to be saved before the Persona. You could do this by extending the Persona.save() method to save the User as well. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are

Re: Automatically assume "models." prefix in models.py

2010-11-14 Thread Steve Holden
will have it. > > So... I'm a being too lazy, or perhaps just stupid? > You can import names individually from a module. In your examoke you would do this: from models import Model, Somefield, OtherField class SomeModel(Model): something = SomeField(someoption=something) and

Re: OT: getting strange attempted gets

2010-11-15 Thread Steve Holden
o post here aren't particularly experienced and so may not appreciate exactly what's going on. regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: OT: getting strange attempted gets

2010-11-16 Thread Steve Holden
On 11/16/2010 10:52 AM, Scot Hacker wrote: > On Nov 15, 8:45 pm, Steve Holden wrote: >> >> Perhaps he did, but that's no reason to believe him until we know that >> his assessment of the situation is likely to be realistic. Don't forget >> that a lot of peo

Re: Static files ...

2010-11-19 Thread Steve Holden
ge %20 in the middle of my link, which seems to relate > to the curly braces in my link: > > > Bingo! (I hope). Try regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups &q

Re: Static files ...

2010-11-19 Thread Steve Holden
ATIC_PREFIX into your contexts with a context processor. That way it happens without any need for template code. In particular, see http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-context-processors-static regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/

Re: Models not being updated when accessed by multiple processes

2010-11-19 Thread Steve Holden
ill also be decrementing object.value, so if we > have 2 processes running the above script at the same time, I would > expect the later process to return line 7 as 3 and not 4. > Shouldn't some saving occur for that to be true? regards Steve -- DjangoCon US 2010 September 7-9 http:

Re: A Model to store links to other models

2010-11-19 Thread Steve Holden
arField(max_length=1, default="R") # This field type is corrected pagid = models.IntegerField() # Note this should eventually become the PK pagnews = models.CharField(max_length=20, blank=True, null=True) class Meta: db_table = 'page' def __str__(self):

Re: Static files ...

2010-11-21 Thread Steve Holden
On 11/21/2010 10:52 AM, jonno wrote: > I think I'm getting there, and thanks Steve! I've switched my > directory structure around a bit, but I'm now able to make changes > with predictable results. Still no image, however, but I can't be too > far off. I'll

Re: PIL issue opening an image file

2010-11-26 Thread Steve Holden
no direct evidence) simply crediting you with more knowledge than you actually had. Misunderstandings can be frustrating, and we all give in to the frustration sometimes. regards Steve -- DjangoCon US 2011 Portland, OR: September 6-8 http://djangocon.us/ -- You received this message because you ar

Re: WEB SERVICE IN DJANGO USING ZSI

2010-11-27 Thread Steve Holden
tende --file=D:\soap\FlyppSms.wsdl > ^ > SyntaxError: invalid syntax >>>> > shouldn't i use this way > No. You typed "python" at the command line. You need, probably, to type wsdl2py --extende --file=D:\soap\FlyppSms.wsdl a

Re: If logged in show X, if not Y

2010-11-28 Thread Steve Holden
an ok? It seems like a perfectly sensible plan to me. You will probably find that you can define a hierarchy of templates, with the basic look and feel provided by the top-level templates. Sub-templates aren't always necessary. regards Steve -- DjangoCon US 2011 Portland, OR: September 6-8 h

Re: django to php

2010-11-30 Thread Steve Holden
ousand miles an hour. So there's no way to get "equivalent" performance. In most places I suspect the oxen would be more useful. The more so as the oil disappears. regards Steve -- DjangoCon US 2011 Portland, OR: September 6-8 http://djangocon.us/ -- You received this message becau

Re: Help for for loop

2010-12-10 Thread Steve Holden
ly good indication of why it's much better to perform the appropriate translations in the view. regards Steve > On 09/12/2010 11:18, Phani Chand wrote: >> Can i use filter(lambda x: x%2, mylist) directly in my html page -- >> You received this message because you are subsc

[Fwd: Re: how to get ManyToMany relations?]

2009-12-27 Thread Steve Holden
ta+m.description+'|' > > But I get this error: > QuerySet object has no attribute modelType. > > Thanks for your help! The error message was trying to be helpful - you just didn't realize that you don't need a QuerySet, but a model instance. reg

Re: Django performance on Amazon EC2

2010-01-12 Thread Steve McConville
p://alan.blog-city.com/has_amazon_ec2_become_over_subscribed.htm -- steev http://www.daikaiju.org.uk/~steve/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from t

Re: Django performance on Amazon EC2

2010-01-12 Thread Steve McConville
is has been observed to be rising in us-east-1. Sorry if that wasn't clear. -- steev http://www.daikaiju.org.uk/~steve/ -- 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...@googlegroup

Re: announcement: SHPAML (alternative to haml)

2010-01-26 Thread Steve Howell
On Dec 29 2009, 1:44 pm, Durbin wrote: > very cool! any plans to integrate it fully into the django templating > system? Glad you like it. Amit Upadhyay has written a loader here: http://github.com/amitu/dutils/blob/master/dutils/shpaml_loader.py I've used shpaml mostly with django, but for my

Re: set up database engine

2010-04-08 Thread Steve Holden
This might just have been a spelling issue. http://docs.djangoproject.com/en/dev/ref/databases/#sqlite-notes Regards Steve On Apr 8, 2010 12:18 AM, "yangyang" wrote: how exactly set up the database engine as SQLight? The tutorial doesn't seem to tell us... Thanks! -- Yo

Re: set up database engine

2010-04-08 Thread Steve Holden
Oh, I see it wasn't just a Google failure. Thierry gave you the correct answer, but omitted to mention (or we omitted to notice) that those lines go in your settings.py file. No use typing them on the command line. .. Regards Steve On Apr 9, 2010 12:26 AM, "Steve Holden" wro

Re: set up database engine

2010-04-08 Thread Steve Holden
at some backwards compatibility hook sets DATABASES["default"] from the original DATABASE_* variables? Would a one-day "Running the Django-users Tutorial on 1.2" be any use? regards Steve On Apr 9, 2010 12:31 AM, "Steve Holden" wrote: Oh, I see it wasn't just a Google

Re: /i18n/setlang/ broken?

2010-04-08 Thread Steve Holden
[facepalm] is much quicker and far less painful; -) On Apr 8, 2010 4:25 PM, "chr" wrote: hi rolando, yep, that fixed it. stupid me. i'll spend the next few hours hitting my head against the desk. thank you so much. cheers, chr On Apr 8, 5:44 pm, Rolando Espinoza La Fuente wrote: > On Thu, A

Adding information to error reports

2010-04-09 Thread Steve Holden
What's easiest way to ensure that further data is displayed as a part of the emails sent after a server error? Some of the data would be present in all requests, some might only be available for particular requests. regards Steve -- You received this message because you are subscribed t

Spicify form field choices at form instantiation?

2007-06-24 Thread Steve Bergman
ChoiceField on one form in which the user selects a location, and when they submit that it needs to bring up another form with another choice field whose options depend upon the location. -Steve --~--~-~--~~~---~--~~ You received this message because you are su

Instantiate model object with dictionary?

2007-06-30 Thread Steve Bergman
object and then save it. But I end up with an empty object. Do I really have to set the attributes individually? Or is there a more concise way to do it? Thanks, Steve Bergman --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Django facility for storing a SelectMultiple list to postgresql array?

2007-06-30 Thread Steve Bergman
be nice to store it in some sort of MultiCharField which takes a list. Thanks, Steve --~--~-~--~~~---~--~~ 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

<    1   2   3   4   5   6   7   8   >