Re: Unable to access URL's query string using request.GET['next']

2013-05-24 Thread Ariel Calzada
You can't see next variable after login because the view that process "login form" don't return the variable in any form. You can modify this view. Regards, Ariel Calzada Homepage: http://www.000paradox000.com Blog: http://blog.000paradox000.com "If I had asked people what they wanted, they woul

Re: Unable to access URL's query string using request.GET['next']

2013-05-24 Thread Felipe Coelho
2013/5/25 Amber Jain > Hello, > > I can't seem to access request.GET['next'] (from a URL with a query > string). Here's what I'm doing: > localhost:8000/dashboard/ points to dashboard() view but the dashboard() > view uses @login_required decorator. And so, if the user isn't logged in, > localhos

Unable to access URL's query string using request.GET['next']

2013-05-24 Thread Amber Jain
Hello, I can't seem to access request.GET['next'] (from a URL with a query string). Here's what I'm doing: localhost:8000/dashboard/ points to dashboard() view but the dashboard() view uses @login_required decorator. And so, if the user isn't logged in, localhost:8000/dashboard/ redirects to local

Re: How to stop internal django server

2013-05-24 Thread Thomas Brandenburger
thanks Am Sonntag, 28. September 2008 14:44:22 UTC-7 schrieb Hingarajiya,Ravi: > > Jeff : > > Thanks for reply. > > Ravi Hingarajiya > > On Sun, Sep 28, 2008 at 2:41 PM, Jeff Anderson > > > wrote: > >> Hingarajiya,Ravi wrote: >> > Hi Alessandro, >> > >> >Thanks for your reply.I know kill c

Problem counting names by letters

2013-05-24 Thread Brian Millham
With this simple database table: class Artist(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255L, blank=True) prefix = models.CharField(max_length=32L, blank=True) class Meta: db_table = 'artist' I want to be able to get a lis

Problem counting names by letter

2013-05-24 Thread Brian Millham
With this simple database table: class Artist(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255L, blank=True) prefix = models.CharField(max_length=32L, blank=True) class Meta: db_table = 'artist' I want to be able to get a lis

Re: Problem with ~ in url prefix

2013-05-24 Thread Michael Radziej
Hi Hordur, it really *does* look like a bug, could you please open a ticket for this behaviour? Nice would be a minimal test case, like just reversing a url in this way when a ~ is in the path. Kind regards Michael -- You received this message because you are subscribed to the Google Groups

Re: current transaction is aborted, commands ignored until end of transaction block

2013-05-24 Thread Michael Radziej
Hi Andreas, > The error is : "current transaction is aborted, commands ignored until end > of transaction block", I guess you use postgres. This is a standard error that postgres thows if you do any database action in a transaction after any other error. You need to find the previous error that

Re: upload image with Django

2013-05-24 Thread Michael Radziej
Gianluca Dileo writes: > Hi guy, > I've created a form in a page html that upload a image. > After capturing the image and edit it, I need to have it appear in a window > j > How can i do? Does HttpResponseRedirect do what you want to achieve? Kind regards Michael -- You received this mess

Re: object is not iterable

2013-05-24 Thread Michael Radziej
Hi Olivier, > The error is: > Exception Type:TypeErrorException Value: > > 'Relais' object is not iterable > > > > > Have you got an idea on what cause this problem ? It would really help to see a full traceback, could you provide one? Kind regards Michael -- You received this message becaus

object is not iterable

2013-05-24 Thread Olivier
Hello all, I have an insoluble problem when I try to use the formsets... *This is my models:* class Relais(models.Model): nom = models.CharField(max_length=100,blank=True) competition = models.ForeignKey(Competition) sport = models.ForeignKey(Sport) ordre = models.IntegerField() def __unicode__

Re: Django's cascade delete is executing the DELETE SQL twice

2013-05-24 Thread Michael
Sure okay, I'll whittle my project down to the bare bones, investigate it further, and if I manage to get a simple project that reproduces it I'll let you know. Cheers! Oh, and it's Django 1.5.1 I'm running. On Friday, 24 May 2013 11:14:03 UTC+1, akaariai wrote: > > On 22 touko, 18:57, Michael

Re: Display each language in its own language.

2013-05-24 Thread Cody Scott
ok I also had to add # -*- coding: utf-8 -*- to the top of the file On Fri, May 24, 2013 at 10:03 AM, Tom Evans wrote: > On Fri, May 24, 2013 at 2:54 PM, Cody Scott > wrote: > > In my settings.py I have > > > > #Used for translations > > > > gettext = lambda s: s > > > > #languages written as

Re: Display each language in its own language.

2013-05-24 Thread Tom Evans
On Fri, May 24, 2013 at 2:54 PM, Cody Scott wrote: > In my settings.py I have > > #Used for translations > > gettext = lambda s: s > > #languages written as they would be displayed in the language selector form > > LANGUAGES = ( > > ('en', gettext('English')), > > ('fr', gettext('French')), >

Re: Display each language in its own language.

2013-05-24 Thread Cody Scott
In my settings.py I have #Used for translations gettext = lambda s: s #languages written as they would be displayed in the language selector form LANGUAGES = ( ('en', gettext('English')), ('fr', gettext('French')), ('ja', gettext('Japanese')), ) and I was thinking of writing each lan

Re: Help with robots.txt

2013-05-24 Thread frocco
Thank you On Friday, May 24, 2013 9:16:35 AM UTC-4, Mike Dewhirst wrote: > > On 24/05/2013 10:04pm, frocco wrote: > > Hello, > > > > Can someone give me an example of configuring robots.txt? > > > > I want to block the admin site. > > > > and anything else? > > I needed this info recently

Re: Help with robots.txt

2013-05-24 Thread Mike Dewhirst
On 24/05/2013 10:04pm, frocco wrote: Hello, Can someone give me an example of configuring robots.txt? I want to block the admin site. and anything else? I needed this info recently and googled robots.txt. This was the second item ... http://www.robotstxt.org/robotstxt.html -- You rece

Re: View pictures from the template via models.FilePathField

2013-05-24 Thread Ronny Villarroel Mendoza
Hi Federico, Maby is better idea you use the models.ImageField(upload_to= path) ie: locandina = models.ImageField(upload_to= path) then in the template you can get the path: {{ object.locandina.url }} Also, you need to read some about configuration on settings.MEDIA_ROOT and settings.MEDIA_U

Re: Integrating NoSQL-persisted custom Models

2013-05-24 Thread Alir3z4
On Friday, May 24, 2013 10:22:45 AM UTC+4, Russell Keith-Magee wrote: > You might get some traction using django-nonrel, but I can't comment on how well it works. It's a fork of Django 1.3 ..., I have an app up & running with django-nonrel 1.5, it's in beta but works perfectly with no problem, a

Re: Django tutorial - change history 24h time format?

2013-05-24 Thread Pepsodent Cola
Hi, I changed my settings.py file like so but nothing happened after I restarted the server "$ python manage.py runserver". USE_L10N = False FORMAT_MODULE_PATH = 'config.locale' So I then followed this tutorial by creating some extra folders and files. http://www.epicserve.com/blog/2011/jul/15/

Cache witin a single transaction / session ?

2013-05-24 Thread James
Use the 'with' template tag. That's what it is for. https://docs.djangoproject.com/en/dev/ref/templates/builtins/#with Also you should probably use |pluralize filter to add pluralization. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Help with robots.txt

2013-05-24 Thread frocco
Hello, Can someone give me an example of configuring robots.txt? I want to block the admin site. and anything else? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an emai

upload image with Django

2013-05-24 Thread Gianluca Dileo
Hi guy, I've created a form in a page html that upload a image. After capturing the image and edit it, I need to have it appear in a window j How can i do? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

current transaction is aborted, commands ignored until end of transaction block

2013-05-24 Thread Andreas Kuhne
Hi all, I am working on upgrading our system from django 1.3.1 to django 1.5.1, and have run into a huge problem. The site we are running has multilingual support and the platform has multiple top level domain sites connected to it. Running locally on my machine I get an error when I try to switch

Django - Tastypie and mongoengine

2013-05-24 Thread Hélio Miranda
Hi! Has anyone used Tastypie and mongoengine for an application in django and mongodb? It's just that I have a problem and needed help. I'm having trouble doing the many to many relationships. If someone has already done something with tastypie mongoengine and tell me to put my doubts. thank y

Re: Testing with complex database setups

2013-05-24 Thread akaariai
On 23 touko, 15:09, Jani Tiainen wrote: > Hi, > > I've product that uses complex setup scripts - tens of SQL scripts that > creates tables, views, complex triggers, grants permissions and such and > finally populates database with some pre-data. > > So how I should proceed with unit testing with

Re: Django's cascade delete is executing the DELETE SQL twice

2013-05-24 Thread akaariai
On 22 touko, 18:57, Michael wrote: > I've got an odd situation here, any idea why the delete SQL for the > `myapp_entry_tag` table is being performed twice? > > >>> from myapp.models import Tag > >>> from django.db import connection > >>> from pprint import pprint > >>> Tag.objects.only('pk').get(

Re: Cache witin a single transaction / session ?

2013-05-24 Thread Frank Bieniek
Hi try johnny-cache http://pythonhosted.org/johnny-cache/ Thx Frank Am 24.05.2013 08:50, schrieb brycenesbitt: |Does there exist a lightweight cache option for django which persists data in a single session. For example: {{gallery.tiles.count}} item{% if gallery.tiles.count != 1 %}s{% endif