Hi,
I have the below line in my login code which decides the redirect
screen on successful login
redirect_to = request.REQUEST.get('next')
However redirect_to is always evaluating to None even though the
parameter 'next' is part of the url. Any idea what i might be doing
wrong?
Thanks in advanc
On Tue, 2010-12-07 at 02:31 -0800, vamsy krishna wrote:
> redirect_to = request.REQUEST.get('next')
how about
redirect_to = request.GET?
--
regards
Kenneth Gonsalves
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
I have a PERL test script for DJANGO connection test. It works on
Django 1.1 admin login page, but doesn't work on 1.2. The request
contains:
Forbidden (403)
CSRF verification failed. Request aborted.
Here is the perl script:
$response = $ua->get("$url/admin/");
my @lines = grep /id='csrfmid
request.GET returns an empty dict
On Dec 7, 3:35 pm, Kenneth Gonsalves wrote:
> On Tue, 2010-12-07 at 02:31 -0800, vamsy krishna wrote:
> > redirect_to = request.REQUEST.get('next')
>
> how about
> redirect_to = request.GET?
> --
> regards
> Kenneth Gonsalves
--
You received this message becaus
Hi
I have set up a Generic inline (using generic.GenericTabularInline). It
behaves differently (and from my application's point of view, wrongly) from
the standard admin.TabularInline in two ways:
1. It doesn't have the plus icon next to foreign key fields that allows
users to add new foreign obj
Eeek, that looks pretty hacky, I wouldn't do that.
I can think of a couple of options:
Write some middleware that runs before the authentication middleware,
and updates REMOTE_USER.
or
On your dev site only, specify that the RemoteUserMiddleware use a
header rather than the REMOTE_USER environm
THANKS FOR NOTIFICATION
I am trying to do webservice with RESTfull web service but i dint create models
my view file looks like this
from django.http import *
import urllib
def current_datetime(request):
word = request.GET['word']
message=urllib.urlopen('http://m.broov.com/wap/di/sub?wo
Did you get the next parameter in the login template and append it to
form action, If that is not done then once the form is submitted the
next param would be lost.
On Dec 7, 5:45 am, vamsy krishna wrote:
> request.GET returns an empty dict
>
> On Dec 7, 3:35 pm, Kenneth Gonsalves wrote:
>
> > O
I'm sorry, the error was in my PERL code:
$req->content("csrfmiddlewaretoken=$csrfid");
is the correct POST request setting.
On Dec 7, 11:40 am, gentlestone wrote:
> I have a PERL test script for DJANGO connection test. It works on
> Django 1.1 admin login page, but doesn't work on 1.2. The reque
Hi all,
How would I suppress validation on a django.forms control instance? Eg, I
have:
link = forms.CharField(widget=forms.TextInput(attrs={'size':'70'}))
or
link = forms.URLField()
How would I stop Django from enforcing that the field must be populated with
data? I think that this is what's
On Tue, Dec 7, 2010 at 2:32 PM, Sithembewena Lloyd Dube
wrote:
> Hi all,
>
> How would I suppress validation on a django.forms control instance? Eg, I
> have:
>
> link = forms.CharField(widget=forms.TextInput(attrs={'size':'70'}))
>
> or
>
> link = forms.URLField()
>
> How would I stop Django from
Neat Tom, thanks!
Lloyd
On Tue, Dec 7, 2010 at 4:35 PM, Tom Evans wrote:
> On Tue, Dec 7, 2010 at 2:32 PM, Sithembewena Lloyd Dube
> wrote:
> > Hi all,
> >
> > How would I suppress validation on a django.forms control instance? Eg, I
> > have:
> >
> > link = forms.CharField(widget=forms.TextIn
On Tue, Dec 7, 2010 at 1:50 PM, sami nathan wrote:
> THANKS FOR NOTIFICATION
>
> I am trying to do webservice with RESTfull web service but i dint create
> models
>
> my view file looks like this
> from django.http import *
> import urllib
>
> def current_datetime(request):
> word = request.GE
Hi how to change this checkbox code to django form?
Are you involved in any of the following? (check all that apply):
Website Design
Web Server
Administration
Electronic Commerce
Web Marketing/
Advertising
Web-related
Education
And how to make similar in django form to this:
Poor 1
Hi,
if you have
...
when the form is submitted, django complains about this :
Request Method: POST
Request URL:http://mysite/blabla/topic/reply/114-test%20?/
Django Version: 1.3 pre-alpha SVN-13865
Exception Type: RuntimeError
Exception Value:
You called this URL via
On Tue, Dec 7, 2010 at 3:26 PM, Keats wrote:
> Hi,
> if you have
> id="addReplyForm" name="addReplyForm">
> ...
>
>
> when the form is submitted, django complains about this :
> Request Method: POST
> Request URL: http://mysite/blabla/topic/reply/114-test%20?/
> Django Version:
To fire off an action (method) after an object is saved, you want to listen
for its signal.
Check out http://docs.djangoproject.com/en/dev/topics/signals/
On Mon, Dec 6, 2010 at 11:28 PM, commonzenpython
wrote:
> hey guys, im trying to get a script to run, like a view after a user
> in the admi
>
> How does that look when you are building an object list in the Q( )...
> style format? Where I am hung up is finding syntax examples of how to
> do the functional equivalent of a sql where not exists clause.
>
> Is there a way to do this without using .extra() and using just normal
> django?
>
the urlpattern is :
^'/blabla/topic/(?P\d+)-(?P.*)/$
and i think it's a bug because if you see request URL there is a
slash
and if it was an urlconf problem django would have reply url not
found.
i think the problem is linked to the fact that the test topic ends
with "?" and for some reason django
As I explained in my original email, the URL in your example _DOES
NOT_ end in a slash. It has a query string that ends with a slash
which is _NOT_ the same thing.
Sorry to shout, but I explained it quite clearly before :/
Cheers
Tom
On Tue, Dec 7, 2010 at 3:50 PM, Keats wrote:
> the urlpatter
I'm not the windows guru I used to be. Converted my household to
Ubuntu Linux and have been pretty happy since. The kids miss some
flash games, I don't miss the virus issue.
www.cygwin.com is one possible windows avenue that might work. When I
was hanging on to windows because I had to support
hi
I want to use mysql Query :
Select sum(field_name) FROM table_name WHERE some condition.
Is it possible without using raw queries in Django ?
if yes, please help.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
You want to use an aggregation function:
http://docs.djangoproject.com/en/dev/ref/models/querysets/#aggregation-functions
On Tue, Dec 7, 2010 at 11:14 AM, Jagdeep Singh Malhi <
singh.malh...@gmail.com> wrote:
> hi
>
> I want to use mysql Query :
> Select sum(field_name) FROM table_name WHERE s
for raw sql queries: http://docs.djangoproject.com/en/dev/topics/db/sql/
On Dec 7, 7:14 pm, Jagdeep Singh Malhi
wrote:
> hi
>
> I want to use mysql Query :
> Select sum(field_name) FROM table_name WHERE some condition.
>
> Is it possible without using raw queries in Django ?
> if yes, please
Hi all,
I have this in my model.py
def recipe_cost(self):
total = IngredientInfo.objects.filter(recipe =
self.id).aggregate(Sum('total')).values()
return total
Then in my admin.py I call that to display the cost.
class RecipeAdmin(admin.ModelAdmin
Hi all,
I'm trying out django-command-extensions I want to use the dumpscript
command but I don't understand what I'm supposed to do to set it up.
How to use django-command-extentions dumpscript?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users
I'm still struggling with the javascript translation problem, so it
seems like I'm forced to pull it out of the project I'm working on. If
anybody has any input I'm still interested.
-Lau
On Nov 24, 3:39 am, Lau wrote:
> I'm having some trouble with makemessages failing while parsing my
> javasc
On Tue, Dec 7, 2010 at 5:29 PM, mongoose wrote:
> Hi all,
>
> I have this in my model.py
> def recipe_cost(self):
>
> total = IngredientInfo.objects.filter(recipe =
> self.id).aggregate(Sum('total')).values()
>
> return total
>
> Then in my admin.py I call that
Hi All
In one of tables that we access through the Admin menu we have around
50,000 objects which return string o/p as the return value, but the
problem is that it takes too long for them to load ( more than few
minutes) in a drop down
I have also gone through the raw_id_fields but it doesn't fi
If you can't use raw_id_fields i guess you should write that view and
use javascript to search inside the view.
Can you use a auto complete approach instead a drop down menu? If you
can, my suggestion is to use a jquery plugin to do the hard work:
http://docs.jquery.com/Plugins/autocomplete
--
Y
Copying things from request.META to the env parameter of Popen allows
me to get the cgi off the ground. Now I have the problem that the cgi
is generating a cookie and content type, which django returns to the
browser as page content.
Is there a way to pass it back transparently? Or, failing that,
Moved from django-developers:
On 7 December 2010 20:15, Sean Brant wrote:
> Again this topic is now in django-user land.
>
> I do this in views.py if want the decorator on all methods (get|post).
>
> myview = login_required(MyView.as_view())
>
>
>
> On Dec 7, 2010, at 1:10 PM, Daniel Swarbrick
I'm working on an (open source) project that wants to move to
continuous deployment and could do with "feature flipper"
functionality similar to that discussed at
http://www.alandelevie.com/tag/feature-flippers/
We'd envisage it being a separate application that we'd release as
open source. Does a
Hi everyone,
I hope that this group is the good one for this kind of questions.
So today, I decided to write a tiny django app (in less than 5 minutes
actually) that
helps me add views arguments to templates contexts automatically.
For eg.
def latest_tagged_objects(request, obj, limit, tag):
On 12/06/2010 04:18 PM, Wayne Smith wrote:
> Then yes, in the clean() method of your Galeria form, you could check the
> number of fotos present and then raise a ValidationError if it is too many,
> along with a custom message for the user.
>
> Is that what you wish to do?
>
hi
I think the "clea
On 8 December 2010 02:50, shmengie <1st...@gmail.com> wrote:
> www.cygwin.com is one possible windows avenue that might work. When I
> was hanging on to windows because I had to support it, I used cygwin
> religiously. I found a lot about cygwin to be frustrating, but it was
> better than being w
thanks for your reply, iv been reading the documentation, and wrote
the code, but theres one thing im having trouble with, i included the
signal connection in my models.py, and passed the model that was there
to the handler function so that it can be tied to that specific model,
like so
class foo(
Hi,
How do I use Django's FileField with autogenerated files? That is,
these files aren't uploaded by a user, but rather are created on the
fly. I've looked at ContentFile, but this class doesn't seem to have
a way to attach a file name (the name is also computed at run-time
based on some criter
On Wed, Dec 8, 2010 at 3:15 AM, Toby Champion wrote:
> I'm working on an (open source) project that wants to move to
> continuous deployment and could do with "feature flipper"
> functionality similar to that discussed at
> http://www.alandelevie.com/tag/feature-flippers/
> We'd envisage it being
Eeek. Just had a poke around with getting Django running on IIS.
Making it work with FastCGI will need a bit of work; doesn't work out
of the box and isn't well documented as most of the focus has been on
PHP.
It does seem to work ok with PyISAPIe. I'd probably install Apache and
use that instead
On Dec 7, 10:16 pm, Wayne Smith wrote:
> You want to use an aggregation
> function:http://docs.djangoproject.com/en/dev/ref/models/querysets/#aggregatio...
>
Thanks, Problem solve.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
The button on the first page of http://www.django-projector.org/ says
"Sing up for the demo project". Makes a refreshing change from the
usual getting started red-tape ;)
On Dec 7, 6:59 am, zodman wrote:
> django-projector
>
>
>
> On Wed, Nov 10, 2010 at 2:05 PM, Toby Champion
> wrote:
> > I d
42 matches
Mail list logo