path populated by a script
and allow a user editing the record to see the image, but not be able
to edit or change anything about it. It seems easier to use a
CharField instead of ImageField, but then how do I go about showing it
inline? fieldsets.description doesn't allow anything but text.
Tha
On Sep 11, 7:54 am, Ron W <[EMAIL PROTECTED]> wrote:
> Trying to prevent some wheel-reinvention on my part and just wondering
> if anyone out there's built some advanced form widgets to take care of
> inline / ajax validation a la Digg registration page (http://digg.com/
> register/), Wufoo's inl
On Sep 11, 9:15 am, Benjamin Buch <[EMAIL PROTECTED]> wrote:
>
> find /path/to/the/directory/ -type f -name "*.pyc" -exec rm -f {} \;
>
> Use it with caution, I'm no wizard with the terminal, just wanted to
> share this because it's been useful to me.
> I found it somewhere on the net, can't
eldset. I know description allows
arbitrary html, but I can't make calls the thumb function.
Any ideas would be greatly appretiated.
Thanks,
-Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
Hi,
I'm encountering exactly the same problem as yours. Did you finally
find the solutions?
Thanks,
Dave
On Feb 17, 1:25 pm, Tipan wrote:
> I'm having some problems with the New Forms Admin that are giving me
> the error message " You don't have permission to edit an
Hey all, thanks for your replies.
I have been only using python for a little over a month and django
only for a little over a week.
Thanks again for your help.
On Aug 9, 4:32 am, David Zhou wrote:
> See:
>
> http://diveintopython.org/xml_processing/unicode.html
>
> -- dz
>
> On Sat, Aug 8, 200
Hey everyone,
I've been using Django for awhile now, but not using any models. I
finally found a great opportunity to use them, but I've found a number
of seeming bugs (which I assume everyone would be dealing with and
therefore fixing, so I must be doing something wrong). Basically, I
will be
I've encountered the multiple database issue but with a twist. I want
to propagate data across a dual master Oracle database setup which
seems to be a little different topic than the online discussions I've
seen. In order to do this I want to pass the url for both domains to
Oracle as the connec
just about at our wits
end because tracking down what should be simple issues is consuming
far too much time.
Thanks
Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
Hi all,
I created a django project and when I try to start the server I get
this:
Traceback (most recent call last):
File "manage.py", line 2, in
from django.core.management import execute_manager
ImportError: No module named django.core.management
I did some Googling and I think it's bec
(2)"
Mysql is running; I have the little tool in system preferences that
says it's running. The file mysqld.sock doesn't exist, though. The /
run/ directory doesn't even exist. Any MySQL gurus out there know how
to fix this?
On Nov 30, 10:02 pm, Dave wrote:
> Hi all,
>
Okay, figured this one out, too. If anyone comes across the same
problem, read this:
http://2tbsp.com/content/install_and_configure_mysql_5_macports
On Dec 1, 4:47 pm, Dave wrote:
> Okay, I figured out this problem by editing my PYTHONPATH in
> my .bash_profile, but now I have another p
I have a website with about 90 users that I'm trying to import into
Django. Right now, the users have a password with a salt and a hash,
so I tried (with a sample user) to format the password how Django
likes them. I did sha1$salt$hash and I wasn't able to log into admin
with that user (I made that
e other
> doesn't, or a number of other possibilities, you are out of luck making it
> work with the default auth framework.
>
> You could implement an additional password type in Django, using the old
> site's algorithm, and calling it something other than sha1 (the key bef
't demand that the users do a password
> reset, would be to make yourself a custom version of that file where
> get_hexdigest() accepts an additional encoding type, say 'rubysha1',
> for which is combines the raw password and salt in the ruby order (and
> possibly applies uppe
I figured this out -- not a well-documented feature as far as I can
tell. I added a documentation ticket:
http://code.djangoproject.com/ticket/13451
Just add any locale folders you need to include in settings.py as
LOCALE_PATHS, which requires a tuple or list.
For example:
LOCALE_PATHS = (
with the message "'NoneType' object has no attribute 'label''
unless I remove images from the page.
Any ideas what I'm doing wrong? Is this the right way to enforce the
desired relationship?
Thanks
Dave
--
You received this message because you are subscribed t
Each patient can have multiple images. Each image can only be of a
single patient. Have I got the model wrong? Should it be a ForeignKey
in ImageRecord to Patient?
On Jul 29, 6:06 pm, Dennis Kaarsemaker wrote:
> On do, 2010-07-29 at 05:35 -0700, Dave wrote:
>
> > In my applicati
No MySQL. But I found a bit of docs saying that this behaviour is
expected: if you use through then that field cannot be automatically
added to the admin pages. It suggested using an inline in these cases
and that has worked, sort of :-).
In fact, I'm beginning to suspect that my model design may
Hello,
I am doing a project in djagno and I stucked in working with files. I
am realy confused about, how it is described in django documentation
and I did not find a solution in it that would suit my case. So
basically what I want to do - I want to have a storage for some
certain files in my proj
Hi everyone,
I've found in documentation usage of custom file storage. There it is
like that (
http://docs.djangoproject.com/en/1.2/topics/files/#the-built-in-filesystem-storage-class
) -
from django.db import models
from django.core.files.storage import FileSystemStorage
fs = FileSystemStorage
inline formsets extend formsets, which take the initial keyword,
and in the django.forms.models **kwargs is passed to all parents of
BaseInlineFormset.
I am extending BaseInlineFormset in my SectionFormSet but I am not
overriding __init__ .
Am I missing something?
Cheers,
Dave
--
You received
e a better way to do this. Or perhaps I should rethink my site
design?
Side question - Is it a bad idea (ie. lots of overhead) to write a
custom tag that hooks in to the django functions that do this on a
HTTP request?
Thanks!
dave
--~--~-~--~~~---~--~~
You received
d I've
not seen how to do that.
Thanks in advance,
Dave
--~--~-~--~~~---~--~~
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 un
Hi all,
I was looking at middleware - so, thanks Todd for the pointer in the
right direction. I can't seem to find anything much in docs or on the
web about TEMPLATE_CONTEXT_PROCESSORS in Django. Anyone got any links?
Cheers,
Dave
On Apr 10, 11:47 pm, "Todd O'Bryan" <[
ions like render_to_response.
>
> def my_view(request):
> ...
> return render_to_response(template_name,
>
> context_instance=RequestContext(request))
>
> 4. Inside your template, you can now access {{ var1 }} all the time
>
> On 11 avr, 15:37, "Dave" <[E
Hey All,
Is there a simple way to re-create the fancy admin date/time widget
(with the 'Today'/'Now' buttons and the pop-up calendar) with
newforms?
I can see how to do it by creating a custom widget, but I thought
perhaps there was an easier way.
Thoughts?
--~--~-~--~~
I am a recruiter looking for excellent Django/Python developers, the
role is with a company based in Central London and the salary is very
competitive. Please see my ad below and if you are interested please
contact me:
Python Developer - Central London - £45k - Python, Django, Plone, Zope
£4500
r model), but they should, somewhat
obviously, not be able to see someone else's order.
Have I explained this well? Does this make sense? Does anyone have any
ideas?
Big fan of Django, so far. Everything has been relatively easy to
manage. This is the first
> I think your best bet is to override the save() method of your model.
This worked perfectly. It didn't even occur to me that I could do that.
Thanks so much for the suggestion.
- Dave Worley
--~--~-~--~~~---~--~~
You received this message because
Thanks for the tip. I've added conditions to ensure this is intended
behavior, based on your suggestion of checking self.id.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this grou
#x27;ve read the authentication docs, and no clear answer is forthcoming.
I'll go read them again whilst I wait in hope of an answer to this
post!
- Dave Worley
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
atabase programming are somewhat new areas of
exploration for me.
Thanks for any help you can lend! I promise that once I know enough,
I'll contribute back to the community!
- Dave Worley
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
access the POST data to validate both objects?
Thanks,
Dave Worley
--~--~-~--~~~---~--~~
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 u
access the POST data to validate both objects?
Thanks,
Dave Worley
--~--~-~--~~~---~--~~
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 u
This is perfect! Thanks so much. I got a little help from the IRC
channel last night, and I was able to get it working, but this tutorial
is what I need to understand why it works now.
Thanks so much.
--~--~-~--~~~---~--~~
You received this message because you ar
I create my models in models.py, and everything looks great. I launch
the application and millions upon millions of peope start using my app
and creating their own little entries in my database, via the perfect
models.py I wrote.
But then, the EVIL CLIENT comes along and requests a change to exis
in interface. I'm able to save Customers
without adding invoices, which is perfect.
The problem arises when the I try to upload an invoice. Nothing
happens...
No error is displayed, but no file is uploaded.
Has anyone encountered this and found a solution, or can point out
where I
Hi Guys,
I have tried to run the tutorial after updating to the latest svn trunk
(magic removal) and it's failing when I browse to the admin page (start
of Tutorial 2).
Trace follows!
Any help appreciated. Is this a bug or can I just not follow
instructions?
Thanks!
Dave.
AttributeErr
Hi guys,
I get the following error when trying to connect to the admin page
(start of Tutorial 2). Any help greatly appreciated as I'm new to this
Magic Removal stuff...
Cheers, Dave.
AttributeError at /admin/
'module' object has no attribute 'urlpatterns'
Reques
al was merged in. I have made no
changes to the source, however to be sure I'll try nuking the tree and
checking it out again.
Thanks for your help, any other suggestions greatly appreciated!
Dave.
--~--~-~--~~~---~--~~
You received this message because you
.
Cheers, Dave.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROT
def get_object(self):
queryset = self.get_queryset()
pk = pid_to_oid(self.kwargs.get('pk'))
queryset = queryset.filter(pk=pk)
obj = queryset.get()
return obj
Thanks in advance for the help.
Dave
--
You received this message because you are subscribed to th
s i'm just being too lazy
Thanks again!
Dave
On Apr 7, 11:45 am, Daniel Roseman wrote:
> On Saturday, 7 April 2012 16:40:05 UTC+1, Dave wrote:
>
> > Hi, I need to manipulate my pk when using new class based views. In
> > order to DRY I think what's needed is to supe
In [27]: Test.objects.all()
Out[27]: [, , , ]
In [28]: hos1 = Test.objects.get(host_name='host1')
In [29]: host1.delete()
In [30]: Test.objects.all()
Out[30]: []
Is this a django bug or I'm wrong something ?
Thank you,
Dave
--
You received this message because you are
d it
after the .save().
With my surprise all objects in this table was deleted :(
In [7]: Test.objects.all()
Out[7]: [, , , ]
In [8]: obj1 = Test(host_name="othertest")
In [9]: obj1.save()
In [10]: obj1.delete()
In [11]: Test.objects.all()
Out[11]: []
Can I avoid this problem ?
Thank
;:'special'}))
...:
In [3]: MyForm = CommentForm()
In [4]: MyForm.as_p()
Out[4]: u'Name: '
Dave
On Fri, 16 Sep 2011 02:41:24 -0700 (PDT)
"Kevin.X" wrote:
> Hi, folks
> Is there any simple way to customize a form filed's style? I want to
> add C
On Fri, 16 Sep 2011 04:58:00 -0700 (PDT)
"Kevin.X" wrote:
> Dave,
> Thanks for your reply. But I want a more general way to specify the
> class of a widget. Is that a little boring when you want a text input
> with class 'text', but you have to call forms.CharFie
I'm trying to understand how using django for development works. Can a
backend developer begin with just a wireframe? Isn't it possible to develop
scripts while someone else is writing the html/css code? (like working on
the front end and back end at the same time)
For example: Creating a for
changed in the last few months and I missed
whatever it was. I'm going to attempt to setup a dummy project and
try this again.
If anybody has some clue, please let me know,
Cheers,
Dave Dash
On Sep 30, 5:05 pm, Álvaro Justen <[EMAIL PROTECTED]> wrote:
> Ah, some details:
> ->
I had cleared the cookies, I also tried in another browser as well -
same result.
On Nov 3, 10:50 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Nov 4, 5:08 pm, Dave Dash <[EMAIL PROTECTED]> wrote:
>
> > I am witnessing this issue using manage.py runserve
Here's the changelist:
http://docs.djangoproject.com/en/dev/releases/1.0/
On Nov 4, 7:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Where can I find the "What's new" in detail in django's doc 1.0?
--~--~-~--~~~---~--~~
You received this message because y
ted.
My questions are:
1. How do I properly remove accents from strings in Django
2. What is django (this is using trunk) doing to strings differently
than python?
Even typing u'é' in the shell returns different things.
Cheers,
Dave
--~--~-~--~~~---~--~~
You
ry:
tag = remove_diacritics(tag)
except:
pass
tag = reTagnormalizer.sub('', tag).lower()
return tag
It fails on the ' café' and translates it to cafa instead of cafe.
THis is only through the unittest framework (doctest) since I can run
it from djan
27;cafe'
>>> normalize(u'cAFe')
u'cafe'
>>> normalize(u'%sss%s')
u''
"""
try:
tag = remove_diacritics(tag)
except:
pass
tag = reTagnormalize
]>
wrote:
> On Sun, 2008-12-07 at 11:12 -0500, Karen Tracey wrote:
> > On Sun, Dec 7, 2008 at 4:58 AM, Dave Dash <[EMAIL PROTECTED]> wrote:
>
> > Sorry Karen my mistake for leaving that out, that
> > reTagnormalizer just
> > filte
Without knowing too much about your code, the only thing I can say,
having had a similar issue, was that select_related witha specified
depth generally made for more efficient queries.
For fun, I started on some code to output database queries on all my
pages while I'm debugging:
Queries
I'm curious at what you're trying to ultimately do.
On one of the projects I work on, we put a class on a encapsulating
div that defines future behavior:
and then we can do a special style for
.no_content .content {display: none}
or whatever we end up deciding to do differently.
On Dec 1
Is sqlite3 part of yoru windows path?
Otherwise you can run sqlite3 with the path to your db... e.g.
sqlite3 c:\Users\Benjamin\Desktop\mysite\data\website.sqlite
or wherever your sqlite db is stored.
On Dec 14, 5:10 am, ben852 wrote:
> C:\Users\Benjamin\Desktop\mysite\sqlite3
> SQLite3 versio
I just hg pull the code from time to time. I've had bad luck running
the latest/greatest of anything. So now I only upgrade when I need
to.
-d
On Dec 16, 6:23 am, shabda wrote:
> Django registration has moved from googlecode to Bitbucket, which
> means my projects which are svn:externaled to
Hmm... this is slightly different... is BookRatings and Books 1 to 1?
If I store these aggregates as part of the class that it's grouping
by. Here's how I do it for restaurants:
class RestaurantRating(models.Model):
restaurant = models.ForeignKey(Restaurant)
value = models.IntegerF
I currently serve up images via the DB vs. filesystem. I did this in
order to keep the data in one place, but I now regret it.
I'd recommend overriding the delete() of your image class to take care
of deleting the related image from your storage.
Depending on your needs and the amount of data,
I did a lot of symfony stuff on the side about a year ago, and now
it's the framework that I we use for our frontend servers at
Delicious.com. It was through symfony that I found out about Django,
and started using it quite a bit... so I know a bit about the two
frameworks. Or rather, I know a l
I saw the note about revision 8760 introducing changes to reverse and
the url template tag, specifically that passing extra parameters won't
work. I haven't been able to find anywhere in my code where extra
parameters are being passed. However, after I update to 8760, I start
getting the following
r.py", line 256, in
get_quantifier
return int(values[0]), ch
ValueError: invalid literal for int() with base 10: '3}'
On Sep 1, 3:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-09-01 at 15:16 -0700, Dave Lowe wrote:
> > I saw the note about revis
= '}'" before
"quant.append(ch)", and I no longer get the error.
On Sep 1, 3:55 pm, Dave Lowe <[EMAIL PROTECTED]> wrote:
> I wish I could find that. I've already been looking for anything like
> that and keep coming up empty. None of the URL variables
Thanks Malcolm!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
I'm adding new views to my admin models. The documentation is here:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#get-urls-self
and the following is my implementation ( I think the same thing )
from django.conf.urls.defaults import *
class AisleAdmin(admin.ModelAdmin):
def get_ur
Well you might want to start by looking into django-tagging
http://code.google.com/p/django-tagging/wiki/UsefulTips
Install that for easy tags, and that link to the useful tips shows how
to retrieve and set tags.
Also instead of doing a lot of is_this() and is_that() you will
probably want to d
There's Django Satchmo
http://www.satchmoproject.com/
But it doesn't do auctions yet. I haven't heard of anything else...
On Feb 1, 12:10 pm, Erik Allik wrote:
> Does anyone know of an app written for Django that implements a kind
> of (simple) web-auction functionality suitable for, say, s
Daniel, thanks for the response
I'm on the latest svn version
d...@django$ svn up
At revision 9803.
so my version shouldn't be the issue.
On Feb 2, 1:44 am, Daniel Roseman
wrote:
> On Feb 1, 10:11 pm, Dave Fowler wrote:
>
>
>
> > I'm adding new views to my
Using r9679 (I can svn up if needbe ;) )
How exactly do I save my new resized image? I couldn't quite find any
documentation on this either.
The "easy" way almost seems to do it by writing out the file on my own
and just setting the imagefield to the filename... but there seems
like there shoul
I started experiencing this too... I can't tell if this is Gmail or
not. I know I send email via SMTP from Gmail masqueraded with other
aliases. So I feel that something is getting munged. Either in the
mail library or with Gmail's servers.
On Jan 28, 3:02 am, funkazio wrote:
> Right! Thanks!
I started experiencing this too... I can't tell if this is Gmail or
not. I know I send email via SMTP from Gmail masqueraded with other
aliases. So I feel that something is getting munged. Either in the
mail library or with Gmail's servers.
On Jan 28, 3:02 am, funkazio wrote:
> Right! Thanks!
I have some data (page number references) that looks like this:
320, 387..90, 410, 500
or (sustituting numerical .. ranges for conventional dashes)
320, 387-90, 410, 500, 634
I'd just like to know the most Django-esque way of creating a model
for these?
The requirements are:
1. they're all n
I'm running Django with memcached on EC2. We frequently turn on or
off different servers with memcached running on each.
To configure your memcached the docs suggest you list them in your
settings file:
CACHE_BACKEND = 'memcached://172.19.26.240:11211;172.19.26.242:11211/'
The only problem wit
Thanks, I'm currently under mod_python... maybe I should switch.
On Mar 9, 8:33 pm, Alex Gaynor wrote:
> On Mon, Mar 9, 2009 at 8:31 PM, Dave Fowler wrote:
>
> > I'm running Django with memcached on EC2. We frequently turn on or
> > off different servers wi
ReloadingSourceCode
>
> http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django...
> http://blog.dscpl.com.au/2009/02/source-code-reloading-with-modwsgi-o...
>
> to understand what modes it works in and what it gives you.
>
> Graham
>
> On Mar 10, 12:45 pm,
wrote:
> On Mon, 2009-03-09 at 21:28 -0700, Dave Fowler wrote:
> > Thanks. So to summarize,
>
> > No one knows of a way to change memcached settings without having to
> > re-load the django settings
>
> They're not intended to be changed like that, which is why you ha
ny of these bits may not matter to you, but if you need the
> flexibility of any of them, the others come for free.
>
> Just a few pre-breakfast rambling thoughts...
It'll be a few days at least before I get back to the project (my
first real-world site in Django), so I'
e.
I'm just not sure quite how to approach this...
If anyone can provide guidance to an appropriate architecture for this
type of function withing a Django platform, it would be greatly
appreciated..
Thanks...
-Dave
--~--~-~--~~~---~--~~
You received this mes
ution?
>
Hi Geoff,
I am seriously impressed with how django-piston adds a minimal framework
for doing various API's. There is also an example project bundled.
HTH
Kind Regards,
Dave Walker
--~--~-~--~~~---~--~~
You received this message because you are
I've just removed my old Django 1.0 dir to install 1.1 (as per the
instructions on the Django site):
http://docs.djangoproject.com/en/dev/topics/install/#removing-old-versions-of-django
But this leaves django-admin.py under (on Mac OS 10.4.11):
/Library/Frameworks/Python.framework/Versions/2.6/bi
nothing there - django dir already deleted. I just seem to have an
extra copy of django-admin.py in:
/Library/Frameworks/Python.framework/Versions/2.6/bin/
so I guess deleting it is okay, since the new install will presumably
replace it with a new version at:
/Library/Frameworks/Python.framework/
I've just done this after installing Postgresql (BTW and letting it
mess with my OS X memory settings):
Added path to .bash_login (or .bash_profile)
export PATH="/Library/PostgreSQL/8.4/bin:$PATH"
sudo easy_install psycopg2
Password:
Searching for psycopg2
Reading http://pypi.python.org/simple/p
onment is already running under mod_wsgi,
which the django-users thread suggests fixes the problem. The
environment is using the postgres database engine, and has psycopg
2.0.7 installed on it.
So a couple of questions:
1. Is the bug described in that thread still an issue? It's a
a few minutes, so I went the re-configuring mod_wsgi route and I
haven't had any problems since (it's difficult to say for sure that
the issue is fixed, since the problem is intermittent.)
The lines I had to add to my Virtualhost's config
We're using Django on giantbomb.com and comicvine.com . They are
pushing 25 mil or so monthly pageviews. I'm not up on the community
these days but I think we're one of the larger implementations. Most
of our team came from PHP/SMARTY backgrounds and I can't recommend
Django
I'm using memcached sessions and having an issue. When I log out of
my site with one user it will not let me log in with another. I have
to delete my cookies before I can log into the site with a different
user.
Anyone run into this? Ideas on fixing?
Thanks.
--~--~-~--~~--
I'm about to do my umpteenth Django app and I'm just wondering if
there is a new standard (better) way to extend the User model. I've
used this method
http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/
And a few others, but all of them keep the User and Profile objects
s
Great, thanks guys! Just wanted to make sure I wasn't missing
anything.
On Apr 2, 8:46 pm, Malcolm Tredinnick
wrote:
> On Thu, 2009-04-02 at 18:29 -0700, Dave Fowler wrote:
>
> [...]
>
> > Profile.objects.all().select_related()
>
> > But it seems weird to b
p the popups smaller than that.
Is it possible to exclude columns from the popup list view?
Thanks,
Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
On Apr 11, 9:29 am, Dave Benjamin wrote:
> Is it possible to exclude columns from the popup list view?
I may have answered my own question. It looks like the popup is
generated from the changelist_view method of ModelAdmin, and this
method gets the request as a parameter. I was able to mod
was afraid of. Thanks for the confirmation.
Dave
--~--~-~--~~~---~--~~
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 grou
uld override
the non-popup attributes for popups if specified.
Dave
--~--~-~--~~~---~--~~
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
T
o noticed that the user's session retains knowledge of which
backend was used (req.session['_auth_user_backend']) but I couldn't
figure out a good way to make use of that via permission_required.
Maybe I need to change all uses of permission_required to a custom
decorator
Has anyone in this group implemented any sort of login-as-another-user
functionality with Django? Maybe if I at least know it's possible
it'll steer me in the right direction.
On May 2, 8:42 am, Dave Brueck wrote:
> Hi all,
>
> I would like an admin user on my site to be
that are viewable by site
admins:
def admin_required(func):
def decorated(req, *args, **kwargs):
if req.user.has_perm('is_admin') or req.session.get
('was_admin'):
return func(req, *args, **kwargs)
return HttpResponseRedirect(settings.LOGIN_URL)
retu
Hi,
I want to be able to use spatial functions to annotate a queryset,
then aggregate based on those annotation, for example:
>>> r = Resultant.objects.values('ownership')
>>> r1 = r.area()
AttributeError: 'GeoValuesQuerySet' object has no attribute 'area'
or
>>> r = Resultant.objects.area()
>
Hi,
I'm working on porting a legacy site (addons.mozilla.org) where all
urls begin with /locale/app/:
e.g.
https://addons.mozilla.org/en-US/firefox/
https://addons.mozilla.org/ja/firefox/addon/5890
https://addons.mozilla.org/en-US/thunderbird
and in some cases, the application is not needed:
h
1 - 100 of 284 matches
Mail list logo