Re: Optimistic Locking in the Admin

2009-04-29 Thread Andrew Smith
Hello, I've recently been tackling almost the same thing. I'm using Google App Engine and app-engine-patch so I can't help you on the best method for implementing the optimistic locking at the database level to avoid race conditions (though I'm even more lost as to how to achieve the same thing us

Re: Parsing the arguments in HTTP GET

2009-05-19 Thread Andrew Ingram
This is the only real way to do this with Django, though I do wish there was a core Django way to validate GET params, ie which ones are allowed and what format they should be. - Andrew Ingram 2009/5/19 Will Matos : > > You wouldn't match this using a url pattern.  The rest o

Re: Parsing the arguments in HTTP GET

2009-05-19 Thread Andrew Ingram
I've used the forms framework with GET (I'm using it for a search form and a 'q' parameter), but it never occurred to me to use it to validate non-form parameters. Thanks! - Andrew Ingram 2009/5/19 Russell Keith-Magee : > > On Tue, May 19, 2009 at 10:38 PM, Andrew In

Custom urlconfs in django.contrib.auth tests failing when reverse is used in templates

2009-05-20 Thread Andrew Fong
e that the template used for a login page might also have a link to another page in the app. For example, my registration templates extend a base template that has a nav bar pointing to views in other apps. Any ideas on how to work around this?

Re: Custom urlconfs in django.contrib.auth tests failing when reverse is used in templates

2009-05-21 Thread Andrew Fong
ittle auth tests are something of a recurring theme here. On May 20, 5:18 pm, Andrew Fong wrote: > I have the contrib.auth app installed, and in order for its tests to > pass, I have to define certain registration templates. When defining > those templates, if I use the url tag / reverse

Prevent ImageField from trying to load the file automatically on model load?

2009-05-28 Thread Andrew Ingram
locally which obviously doesn't exist. All I want from the imagefield is the filename/path, everything else I need from the image file itself is already stored in the database. Is there a way I can disable the file-loading part of the imagefield? Regards, Andrew I

Re: Prevent ImageField from trying to load the file automatically on model load?

2009-05-28 Thread Andrew Ingram
That seems to have fixed the problem, thanks! - Andrew On 28 May, 13:45, Michael wrote: > On Thu, May 28, 2009 at 8:21 AM, Andrew Ingram wrote: > > > > > Hi all, > > > Some of our models make use of ImageFields, but our admin app is > > hosted on one server

Customizing extends template tag for mobile version of site

2009-06-05 Thread Andrew Fong
I need to call {% load %}, and that call means any ExtendNode created after that can't be first. I'm tempted to simply disable that, but I'm not really sure what will happen if I do. Are there any problems with calling a load tag before an extends? Thanks! -- Andrew --~--~-~--

Re: Customizing extends template tag for mobile version of site

2009-06-06 Thread Andrew Fong
#x27;t easily change. Second, that global variable could potentially pollute other requests. You basically have to ensure it's reset for every request (e.g. using middleware) and mark that piece of code as not thread safe. Any suggestions? -- Andrew On Jun 6, 6:29 am, Matthias Kestenholz wrote: &

Bulk get

2009-06-06 Thread Andrew Fong
nstead len (model_pk_list) calls * x is lazily-evaluated (e.g. like a QuerySet object) * The results come back in the same order as they are in model_pk_list Is this possible? Thanks in advance! -- Andrew --~--~-~--~~~---~--~~ You received this message becau

Re: How to deal with object that have out of date querysets

2009-06-06 Thread Andrew Fong
e was no conflict, it'll return 1. If it returns 0, you know that another process changed the value first and that you'll need to get the new value to increment from the database again. -- Andrew On Jun 6, 10:26 am, Masklinn wrote: > On 6 juin 09, at 15:34, AlexM wrote: > > >

Re: Bulk get

2009-06-06 Thread Andrew Fong
Was hoping not to have to loop back through it -- but I guess I'll just have to suck it up and do it. Thanks. On Jun 6, 11:04 am, Michael wrote: > On Sat, Jun 6, 2009 at 10:55 AM, Andrew Fong wrote: > > > Hi all, > > > I'm trying to figure out how to do this

Testing Django Templates

2009-06-08 Thread Andrew Fong
Currently, I'm doing a bit of testing using this pattern: assert "something" in response.content, response.content That's somewhat messy however -- and I'd like to avoid having to scan through html in my test output just to find a bug if

strange database issue, values getting saved correctly, but not appearing through querysets

2009-06-12 Thread Andrew Ingram
has been added, the relationship works fine (it's not a site-level caching thing because the issue affects my dev environment pointing at the live database) Any thoughts would be greatly appreciated Regards, Andrew Ingram --~--~-~--~~~---~--~~ You received thi

Re: strange database issue, values getting saved correctly, but not appearing through querysets

2009-06-12 Thread Andrew Ingram
I've now resolved this issue, it was caused by a combination of a database config error and using the wrong model manager Regards, Andrew Ingram On 12 June, 12:09, Andrew Ingram wrote: > I'm having a problem with a manytomany relationship in Django.. > > The items in t

Queryset._as_sql() is lying to me!

2009-06-16 Thread Andrew Durdin
n`, `datastore_pbxrecord`.`id` FROM `datastore_pbxrecord` ORDER BY `datastore_pbxrecord`.`id` ASC }}} Why does _as_sql() not return the actual sql that will be executed? Is there any way to obtain the real SQL that a queryset will use? Although I only use _as_sql() for debugging, it'd be n

docstring format documentation for the admin doc contrib?

2009-09-12 Thread Andrew R
The built in templates and filters have formatted docstrings (``, ===, etc.). I don't see anywhere where this syntax is documented. Where can I find information on this. Example docstring: def yesno(value, arg=None): """ Given a string mapping values for true, false and (optionally) N

Re: docstring format documentation for the admin doc contrib?

2009-09-12 Thread Andrew R
Thanks, that is what I was looking for. I also found this: http://docutils.sourceforge.net/docs/user/rst/quickref.html -Andrew On Sep 12, 9:26 pm, Tiago Serafim wrote: > Hi, > > These docs are in ReST (ReStructured Text) format, and each text file > > > corresponds to

Re: How to organize django projects on a productive server?

2009-09-15 Thread Andrew McGregor
t unit tests are run and a bunch of other sanity checks. If OK then the commit works. Spend a fiver on Agile Python Development. http://www.amazon.co.uk/gp/offer-listing/1590599810/ref=dp_olp_used?ie=UTF8&qid=1253043898&sr=8-1&cond

Re: Saving ModelForm with commit=False seems to be generating an INSERT in the database

2009-09-20 Thread Andrew Mckay
> Why is an INSERT statement being generated even though I have > commit=False? The two inserts are causing an Exception which prevent > the actual user data from being saved (a row in the > courses_userprofile table does get created, but with all columns > except the id being blank) Its odd that

Re: list some django-powered web sites

2009-09-24 Thread Andrew McGregor
always a hot topic, what are you considering instead of Django? -- Andrew McGregor 07940 22 33 11 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: reservation & booking system

2009-09-29 Thread Andrew McGregor
ecause there is nothing of > any use around?! > > It would be great if you Guys 'n' Girls could share some ideas regarding > suitable modules etc. If your transactions are low to moderate then consider BookingBug.com as a 3rd par

Automatic user association, and confirmation page

2009-10-09 Thread Andrew Pendleton
ociated with the same User instance. In the event that I get this kind of likely-incorrect submission, is there a way to force a confirmation screen with a warning on it for a save in the admin, but let the user proceed if they really want to? Thanks, Andrew --~--~-~--~~---

Re: popup forms

2009-10-13 Thread Andrew Ingram
s.py (near line 608). I hope this helps. - Andrew Ingram 2009/10/13 nabucosound : > > This is the default behaviour in Django Admin, dude... > > On Oct 13, 9:43 am, andreas schmid wrote: >> hi, >> >> how can i achieve a behaviour like in the admin backend where

Re: Automatic user association, and confirmation page

2009-10-13 Thread Andrew Pendleton
shouldn't have to care, nor should they be able to muck with the process by associating people with different addresses together. Andrew On Oct 11, 2:06 pm, Brian McKeever wrote: > Is there a reason why you're storing an email address instead of just > selecting the user or creating a

Re: Do I have to pass the httprequest object to render_to_response every time?

2009-10-21 Thread Andrew Ingram
matically become available if you use render_to_response Regards, Andrew Ingram --~--~-~--~~~---~--~~ 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.co

stable sort for list views in the admin interface

2009-11-15 Thread Andrew Ball
k on a column in the list view. Peace, Andrew -- === Andrew D. Ball 勃安 "Ὁ θεὸς ἀγάπη ἐστίν ..." (1 Jn 4:16) -- 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: viewing and adding comments while editing an object in the admin interface

2009-11-20 Thread Andrew Ball
s.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=. > > > -- === Andrew D. Ball 勃安 "Ὁ θεὸς ἀγάπη ἐστίν ..." (1 Jn 4:16) -- You received this message because you are subscribed to the Google Groups "Django user

Errors while attempting to enable admin

2010-05-06 Thread Andrew Burns
Django newbie here. I am learning by following the Django book. All is good until I try to enable the admin interface (on v1.1.1) and I get the following error: TemplateDoesNotExist at /admin/ admin/login.html So I did some poking around and changed my TEMPLATE_DIRS to the follow

Re: Errors while attempting to enable admin

2010-05-08 Thread Andrew Burns
oper line IT WORKS! I am extremely embarrassed about this because although I am a newcomer to django I am not a technical or even programming newbie. Thank you for taking the time to point that out Daniel. On May 7, 2:09 am, Daniel Roseman wrote: > On May 7, 4:37 am, Andrew Burns wrote: > > &

Re: Content types and interaction with DeferredAttribute models

2010-06-24 Thread Andrew Ball
te the last model listed): > > app, app_models > 'C:\...\trunk\src\os_so\contact\models.pyc'> > [ > , > , > , > , > , > , > , > , > , > , > , > , > , > , > 'os_so.contact.models.ContactMechanismType_Deferred_creation_date_ti

Re: PIL on 10.6 = PAIN

2010-08-31 Thread Andrew Frankel
. It's been particularly troublesome on snow leopard, so I've come back to prefer plain ol' source based installs instead. Cheers, Andrew On Aug 31, 2:49 pm, keynesiandreamer wrote: > Thanks Bill and Mathieu! > > I will try the Mac port option first, in fact I did look

get object qs with generic relation

2010-09-11 Thread Andrew Marder
an of django-tagging's solution (get_intersection_by_model): http://code.google.com/p/django-tagging/source/browse/trunk/tagging/models.py Any elegant solutions out there? Thanks for the help, Andrew -- You received this message because you are subscribed to the Google Groups "Django u

Testing with a non-model database

2010-09-20 Thread andrew cooke
x27;t create it, just access it". Nor does there seem to be a way to generate fixtures from databases that are not associated with Django models. Any guidance would be appreciated - thanks! Andrew -- You received this message because you are subscribed to the Google Groups "Django user

Re: script adding FileField, no attribute chunks

2010-12-01 Thread Andrew Marder
hon2.6/site- packages/django/core/files/uploadedfile.py", line 46, in _set_name name = os.path.basename(name) File "/home/amarder/Documents/environments/nmis/lib/python2.6/ posixpath.py", line 111, in basename i = p.rfind('/') + 1 AttributeError: 'member_de

Re: script adding FileField, no attribute chunks

2010-12-01 Thread Andrew Marder
Awesome! Thanks so much for the help. Andrew On Wed, 2010-12-01 at 12:32 +, Tom Evans wrote: > On Wed, Dec 1, 2010 at 12:23 PM, Andrew Marder > wrote: > > I'm trying to add a bunch of files from disk into my django database. > > Here's the helper function I&#x

Named URLs and class-based generic views

2010-12-03 Thread Andrew Willey
Can someone point me in the right direction here? How does one use class-based generic views and named URLs? Example (doesn't work): > urls.py > urlpatterns += patterns('myapp.views', >(r'^location/$', MyGenericView.as_view()), > ) > views.py > class MyGenericView(TemplateView): >templa

Re: Named URLs and class-based generic views

2010-12-03 Thread Andrew Willey
Forgot to in mention the actual question from the subject. Is there a "blessed" way to use class-based views with named urls in the > url(r'^location/$', view='WouldLoveToHaveClassBasedView.as_view', > name='name_for_convenience') On Dec 3, 1:46 pm

Re: Named URLs and class-based generic views

2010-12-03 Thread Andrew Willey
me is that you have to include the whole views.py in your url conf. Just feels less graceful than having the dispatcher nab what it needs on demand. I'll get over it. Unless someone has a better idea! On Dec 3, 3:12 pm, Daniel Roseman wrote: > On Dec 3, 8:47 pm, Andrew Willey wrot

Custom filters and partial mark_safe?

2010-01-15 Thread Andrew Turner
I have a custom filter parses a CharField for usernames marked with '@', and replaces them with a hyperlink to their profile page:- def hyperlink_usernames(note): for word in note.split(): if '@' in word: try: User.objects.get(username=word.strip('@'))

Error message has the wrong file path

2010-01-16 Thread Andrew Bialecki
I'm in debug mode and the error message I'm getting sounds right but the file paths are wrong. For instance, I know the module that's failing is in /foo/bar/module.py, but it says the error occurred in the module /baz/module.py which definitely no longer exists. The module used to located in the

Re: Error message has the wrong file path

2010-01-16 Thread Andrew Bialecki
Cool thanks, that was it. On Sat, Jan 16, 2010 at 11:55 AM, Karen Tracey wrote: > On Sat, Jan 16, 2010 at 11:49 AM, Andrew Bialecki < > andrew.biale...@gmail.com> wrote: > >> I'm in debug mode and the error message I'm getting sounds right but >> the file p

Re: Custom filters and partial mark_safe?

2010-01-16 Thread Andrew Turner
On 15 Jan, 12:57, Tomasz Zieliński wrote: > I'm not 100% sure, but after doing quick review of django/utils/ > safestring.py, > I would say that string is either safe or unsafe, it cannot be only > half-safe. Just as I feared. Thanks for the reply. -- You received this message because you are su

Re: Custom filters and partial mark_safe?

2010-01-17 Thread Andrew Turner
over in my head that probably wouldn't have worked anyway. Many thanks, Andrew -- 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,

Initial data fixtures and auto_now_add=True

2010-01-19 Thread Andrew Turner
I have an initial_data.json file which provides some, er, initial data whenever I run syncdb. One of my models has a DateTimeField with auto_now_add=True. The data is loaded first time round, but on subsequent syncdbs, I get "IntegrityError: posts_entry.pub_date may not be NULL". Is this the expec

Deploying for designers

2010-01-22 Thread Andrew Badr
How can I get a designer set up to be able to edit a Django project's templates and static files with the minimum amount of effort? Django itself is easy to get running, but a project with many external dependencies can quickly become very hard for a less technical person to set up, especially if t

Re: Initial data fixtures and auto_now_add=True

2010-02-01 Thread Andrew Turner
On Jan 19, 1:36 pm, Andrew Turner wrote: > I have an initial_data.json file which provides some, er, initial data > whenever I run syncdb. One of my models has a DateTimeField with > auto_now_add=True. The data is loaded first time round, but on > subsequent syncdbs, I get &qu

Re: Initial data fixtures and auto_now_add=True

2010-02-02 Thread Andrew Turner
ls.py:- from django.db import models class Entry(models.Model): content = models.CharField(max_length=250) pub_date = models.DateTimeField(auto_now_add=True, editable=False) First time syncdb is run, the fixture is correctly loaded, subsequent runs result in the aforementioned error. Tested on Djan

Re: Initial data fixtures and auto_now_add=True

2010-02-02 Thread Andrew Turner
On Feb 2, 1:29 pm, Russell Keith-Magee wrote: > The cause of the problem is your initial fixture. Django doesn't > listen to auto_now_add or auto_now fields on fixture loading - fixture > objects are saved in "raw" mode, so it is assumed that the fixture > should have data for all the fields. In t

Re: Initial data fixtures and auto_now_add=True

2010-02-02 Thread Andrew Turner
On Feb 2, 1:45 pm, Russell Keith-Magee wrote: > Correct. I'm guessing that the same thing is happening - the default > value is being used because the fixture doesn't specify a value. Feel > free to update the ticket so the auto_now case isn't forgotten. Done ;) Kind

Django 1.1.1 + mod_python = base.css was swallowed in admin pages

2010-02-08 Thread Andrew Budarevsky
version with the same result. My previous applications use django 1.0 placed at hosting and copied admin/media content into web root of the application works well. Andrew -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Django IDE

2010-02-15 Thread Andrew Davison
Komodo is a very nice IDE for dynamic languages in general, so can be used for both Python and Javascript, for example. It also has syntax highlighting, autocomplete, etc. for the Django template language. The full version costs a couple of hundred euros, but there is a very useable free version, K

Custom filters failing with "no module"

2007-06-08 Thread Andrew R
All, I have a code generating program that using django's nifty template packages. It all worked well until I wanted to use a custom filter. No matter what I try, I get: django.template.TemplateSyntaxError: 'javadoc_filter' is not a valid tag library: Could not load template library from

Re: Custom filters failing with "no module"

2007-06-09 Thread Andrew R
James Bennett wrote: > On 6/6/07, Andrew R <[EMAIL PROTECTED]> wrote: >> whereas I just want it to import "javadoc_filter" from my current dir. I'm >> sure >> this is by design in django but there must be a way around it. > > This is one of th

Re: Custom filters failing with "no module"

2007-06-12 Thread Andrew R
ter() *as well* as have to have the module in a certain directory, seems a bit repetitious. JFWIW Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: Custom filters failing with "no module"

2007-07-01 Thread Andrew R
Malcolm Tredinnick wrote: > On Tue, 2007-06-12 at 05:44 -0400, Andrew R wrote: >> I have to admit, though, that I think adding a custom filter should be as >> simple >> as this code alone: >> >>> from django.template import Library >>> >>>

Form validation and clean_data

2008-01-23 Thread Andrew Doades
I am following the section of the django book (http://www.djangobook.com/en/1.0/chapter07/) to create a feedback form, my problem is when I try to submit the form, I get an error ( 'ContactForm' object has no attribute 'clean_data' ) I have read a little and see that it's because the form is n

Re: Form validation and clean_data

2008-01-23 Thread Andrew Doades
Rajesh Dhawan wrote: > > On Jan 23, 2:39 pm, Andrew Doades <[EMAIL PROTECTED]> wrote: > >> I am following the section of the django book >> (http://www.djangobook.com/en/1.0/chapter07/) to create a feedback form, >> my problem is when I try t

Re: Form validation and clean_data

2008-01-23 Thread Andrew Doades
x27; to ' field, I thought something like % to or something would do the trick!? Cheers, Rajesh Dhawan wrote: > > On Jan 23, 2:39 pm, Andrew Doades <[EMAIL PROTECTED]> wrote: > >> I am following the section of the django book >> (http://www.djangobook.com/e

Re: Form validation and clean_data

2008-01-23 Thread Andrew Doades
Cheers, That was basically the question, what do i put in that to field so the what I email address I enter to the to field is where the message is sent to! Rajesh Dhawan wrote: > > On Jan 23, 5:11 pm, Andrew Doades <[EMAIL PROTECTED]> wrote: > >> I now have this a

Re: Problems using cron to run a python script

2008-03-04 Thread Andrew Holt
rror: No module named feedparser >> >>>>>>> And here is the cron: >> >>>>>>> export PYTHONPATH=/path/to/python2.3/site-packages:/path/to/ >>>>>>> django/ >>>>>>> app >>>>>>> export D

Re: Django Installation Questions on Ubuntu

2008-04-21 Thread Andrew English
That was the problem. I misunderstood the documentation when it said to change projectname.settings to the name of my settings file. I appreciate the help! Thanks. On Mon, Apr 21, 2008 at 5:41 PM, Thomas Kerpe <[EMAIL PROTECTED]> wrote: > > > > Hi khayman, > > Replace: > SetEnv DJANGO_SETTINGS

Re: datetime 8 hours off

2008-04-22 Thread Andrew Durdin
are. This appears to be a bug in the Django mod_python handler, so I have added a ticket for it: http://code.djangoproject.com/ticket/7062 Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Reusable Web Controls

2008-05-06 Thread Andrew English
Is there a way to embed templates in other templates using Django? For example, you could have common elements like a navigation menu defined in a single template, but included in others by reference. --~--~-~--~~~---~--~~ You received this message because you are

response.write and memory, newbie question!

2008-05-12 Thread Andrew Smith
Hello When I use response as a file-like object, by calling response.write or passing it to something which expects a file-like object, does it build up its contents in memory or stream them straight to the browser? TIA Andy --~--~-~--~~~---~--~~ You received thi

Re: response.write and memory, newbie question!

2008-05-12 Thread Andrew Smith
Thanks On May 12, 5:27 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Andrew, it will build up its contents in memory. Consider how an exception > thrown in your view will cause the response never to even be sent. > > Your best bet if you want to do streaming i

user.is_authenticated is always false using default login

2008-05-20 Thread Andrew English
My view function uses the login required decorator: @login_required(redirect_field_name='next') def index(request): lists = List.objects.filter(user=request.user) return render_to_response('base.html', {'lists': lists}) This directs them to the login page: LOGIN_URL = '/todone/list/login/'

Re: Sorl Thumbnail, automatically create in admin

2008-05-29 Thread Andrew Myers
model's save() method to have it create (and immediately discard) a sorl.main.thumbnail.DjangoThumbnail instance, which would generate the thumbnail image. --Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: newforms

2008-06-02 Thread Andrew Ingram
ookup() return render_to_response ("UPSRateLookUp/upsratelookup.html",{"form": form}) The thing to remember is that there's nothing special about forms when it comes to django templates, a form is simply another object that must be passed in the template context if you wish

Re: {{ media_url }}

2008-06-05 Thread Andrew Ingram
Chances are that one of the views isn't passing the media template context processor to the template. = Andrew Bobby Roberts wrote: > i've got two templates in the same directory. My css works fine on > one template but not the other. My link to the css is > > &g

Re: {{ media_url }}

2008-06-05 Thread Andrew Ingram
creates context data from the processors based on the request object. - Andrew chris hendrix wrote: > Hi andrew. I've got the > from django.template import Context, Template line at the top of the view. > > How do i pass the media template contact processor to the template? >

Re: Question about Form Wizard

2008-06-06 Thread Andrew Ingram
u really need to allow the user to leave the form in which case store state in a carefully considered session object. - Andrew Grupo Django wrote: > Hi! Just a simple question. > The Form Wizard application stores the data hashed in hidden fields. > Why not in a session? Why is it better

Re: Model - Only allow One

2008-06-14 Thread Andrew Ingram
bruno desthuilliers wrote: > Anyway, why would you want such a thing ? I can think of one possible use, when you want some project settings to be configurable at run-time through the admin interface. At the moment I would probably relate a settings model to the site model, but I think the site

Tests in files other than tests.py and models.py

2008-06-24 Thread Andrew Fong
(doctest.DocTestSuite(m, checker=doctestOutputChecker, runner=DocTestRunner)) except ValueError: # No doc tests in tests.py pass return s # End tests.py -- Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Root Access

2008-07-12 Thread Andrew Ingram
nge of hosting solutions I can't see myself doing anything more than a simple blog without looking into a VPS or dedicated server with root access. Regards, Andrew Ingram Tim Johnson wrote: > I'm a long-time python web programmer. My company is interested in Django. > > I note fro

Re: Injecting error messages into ModelForm

2008-07-13 Thread Andrew Ingram
other frameworks i've tried. - Andrew Ingram Torsten Bronger wrote: > Hallöchen! > > While ModelForm.is_valid() finds field validation errors, it cannot > catch errors in uniqueness or referential integrity as far as I can > see. Thus, I have to check them in my view.py code

Re: Upcoming Django release, and the future

2007-02-26 Thread Andrew Diederich
ault comments in the settings.py file for the DATABASE_ENGINE setting. -- Best regards, Andrew Diederich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re[2]: Upcoming Django release, and the future

2007-02-26 Thread Andrew Diederich
On Monday, February 26, 2007, 3:00:30 PM, Jacob Kaplan-Moss wrote: > On 2/26/07, Andrew Diederich <[EMAIL PROTECTED]> wrote: >> I'd like to see the mssql patches applied, ticket >> http://code.djangoproject.com/ticket/2358. I'd also like to see the >>

Re: Upcoming Django release, and the future

2007-02-27 Thread Andrew Diederich
On Monday, February 26, 2007, 4:39:29 PM, James Bennett wrote: > On 2/26/07, Andrew Diederich <[EMAIL PROTECTED]> wrote: >> On Monday, February 26, 2007, 3:00:30 PM, Jacob Kaplan-Moss wrote: >> > For the other bit, though, see [4624]. >> >> This ticket d

Re: Upcoming Django release, and the future

2007-02-27 Thread Andrew Diederich
On Tuesday, February 27, 2007, 8:41:44 AM, Marc Fargas Esteve wrote: > Hi Andrew, > There's a ticket for that openned: > http://code.djangoproject.com/ticket/3589 > And it's closed as fixed :) Thanks! The ticket itself doesn't have 'postgresql_psycopg2'

Always repeating myself in templates

2007-03-22 Thread Andrew Durdin
I've created a pair of tags, "ifvalue" and "ifnotvalue", to encapsulate this behaviour: {% ifvalue company.contact.email as email %} Email address {{ email }} {% endifvalue %} The full code for the tag is at http://www.djangosnip

Combine two queries/models?

2007-03-22 Thread Andrew M.
en all my links, in that order. Hence, if I slice the resulting list at 10, it will grab the first ten, usually being ten posts, and not get to the links I also couldn't get any kind of union to work any better. Any help is greatly appreciat

Re: Combine two queries/models?

2007-03-23 Thread Andrew M.
Thanks for the help. I'll see what I can do, but I might be back. I don't know much Python... Thanks, Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Combine two queries/models?

2007-03-23 Thread Andrew M.
I lied, I don't know what I'm doing... Malcolm/Anyone with the time to provide some, or all :-), example code for the above, I would really appreciate it... Thanks a lot, Andrew --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Combine two queries/models?

2007-03-23 Thread Andrew M.
It worked great... finally. I really appreciate it. I learned something too, so it's even better. Thanks again, Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Django app initialisation

2007-04-04 Thread Andrew Durdin
and then call prepare_app(initialise). Is there a better way to perform application-specific initialisation, after all apps and models have been loaded, but before other processing begins? Andrew. from django.dispatch import dispatcher from django.core.signals import request_started class

Re: repository for SuSe

2007-04-08 Thread andrew cooke
Hey, thanks! That just saved me an hour's work :o) (and psycopg for both i686 and x86_64 :o) Cheers, Andrew On Apr 8, 4:55 am, Paul Rauch <[EMAIL PROTECTED]> wrote: > Hello, > I just published my repository for SuSe, > till now it only contains

Re: repository for SuSe

2007-04-08 Thread andrew cooke
Spoke too quickly - it failed to install: Subprocess failed. Error: RPM failed: error: /var/adm/mount/ AP_0x0051/noarch/python-django-svn-4945-0.prauch. 1.SuSE1020.noarch.rpm: Header V3 RSA/SHA1 signature: BAD, key ID b242b96d error: /var/adm/mount/AP_0x0051/noarch/python-django- svn-494

Re: repository for SuSe

2007-04-09 Thread andrew cooke
When I update the repo I get security warnings about the repomd.xml file having changed since it was signed, but otherwise things seem to work now, thanks. Andrew > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > andrew cooke schrieb: >> >> Spoke too quickl

Re: Django app initialisation

2007-04-17 Thread Andrew Durdin
sted could respond to that (having hooked it in __init__.py). Could this be a workable approach, do you think? [*] Using __init__.py is not at present a good solution, as it can be executed more than once during django's startup by various __import__() calls. Andrew --~--~-~--~

Re: Django app initialisation

2007-04-18 Thread Andrew Durdin
ever, don't let my negative experiences scare you off. Write a > solution and then we can borrow it for loading.py. I'll certainly try to get something working -- I've been trying various hacky workarounds for my specific need, but nothing that's reliable and on time. Time to pa

Foreign keys with null=True and QuerySet.exclude

2007-11-23 Thread Andrew McMurry
Attribute from a queryset: qs.exclude(attr_private=True) Unfortunately this also excludes all Objects that have no Attribute. Is there a way to filter a queryset that will pass Objects with no Attribute and those whose Attribute is not private? Andrew

Strange problems with django (python related?)

2006-09-19 Thread Andrew Degtiariov
#x27;, 'rypik: \xc1\xe0\xe7\xee\xe2\xfb\xe9 (250)')] First line displayed after first visiting page (and I'm pressing Enter after opening ones) Next groups of lines with "edit_zone" displayed after pressing "Refresh" button in browser. Don't

Re: ATTENTION! Problem with FormWrapper! (WAS Strange problems with django (python related?))

2006-09-20 Thread Andrew Degtiariov
Orion: 1000 (1000) Edit_zone: Orion: 1000 (1000) form.instance: Malishev: 500 (500) What we see? base_context['form'].fields contains proper data, but __getitem__ returned incorrect! Test case with 100% repetition can be obtained from

Re: ATTENTION! Problem with FormWrapper! (WAS Strange problems with django (python related?))

2006-09-20 Thread Andrew Degtiariov
race condition. -- Andrew Degtiariov DA-RIPE --~--~-~--~~~---~--~~ 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

Re: Easy thumbs in your models

2006-09-27 Thread Andrew Gwozdziewycz
See belowOn Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting thumbs when deleting the objectIn

Re: Easy thumbs in your models

2006-09-27 Thread Andrew Gwozdziewycz
Of course you have to "import os.path"On Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting thum

Re: My own auth backend

2006-11-12 Thread Andrew Degtiariov
rld accessable    if acls is None: return None    for check_func in acls:     if check_func(request.__class__.muser, **view_kwargs):     return None    new_url = LOGIN_URL + '?url=' + request.path    return HttpResponseRedirect(new_url)-- Andrew Degtia

Re: My own auth backend

2006-11-14 Thread Andrew Degtiariov
Thanks, Andrew, for reply!But, can not figure out what backend do you use for authentication? Custom sql. It used also by RADIUS server (this is a reason for creating custom authentication backend instead of using one from Django)-- Andrew DegtiariovDA-RIPE

Re: Good Web development practice

2007-01-08 Thread Andrew Durdin
from the form. Note that this does not in anyway prevent the user from going back past the landing page to the form, and clicking the submit button again. Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

<    1   2   3   4   5   6   7   8   9   10   >