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
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
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
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?
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
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
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
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
--~--~-~--
#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:
&
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
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:
>
>
>
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
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
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
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
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
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
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
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
> 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
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
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
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
--~--~-~--~~---
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
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
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
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.
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
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
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:
>
>
&
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
. 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
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
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
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
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
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
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
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
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('@'))
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
>>>
>>>
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
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
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
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
rror: No module named feedparser
>>
>>>>>>> And here is the cron:
>>
>>>>>>> export PYTHONPATH=/path/to/python2.3/site-packages:/path/to/
>>>>>>> django/
>>>>>>> app
>>>>>>> export D
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
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
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
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
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
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/'
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
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
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
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?
>
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
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
(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
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
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
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
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
>>
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
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'
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
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
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
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
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
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
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
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
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
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
--~--~-~--~
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
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
#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
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
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
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
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
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
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
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
201 - 300 of 974 matches
Mail list logo