Re: Re: RedirectView with query_string = True and urlencoded unicode string

2012-05-14 Thread Germán
Hi. Please excuse my ignorance in this affairs. For an specific URI

Re: Form Wizard usable with branching?

2012-08-06 Thread Germán
Hi @mtnhiker. I ran into very similar problems and spent weeks dealing with a View class based on Django-1.4's django.contrib.formtools.wizard.views.SessionWizardView. It was so much customization that some things started to go wrong and debugging was awful. I came up with this solution: https

Re: Nullable User email

2012-08-07 Thread Germán
It seems you shouldn't use null but rather an empty string: https://docs.djangoproject.com/en/dev/ref/models/fields/#null > Avoid using > null > on > string-based fields such as > CharField

Re: Migrating app from Django 1.3.3 to 1.4

2012-08-07 Thread Germán
What other applications/extensions are you using? I remember a similar problem using debug-toolbar. I had to upgrade it to a newer revision (can't remember if the necessary changes were already contained in a release). On Tuesday, August 7, 2012 10:24:06 AM UTC-4, dokondr wrote: > > Hi all! > I

Re: Using success_url with reverse() in class-based generic view

2012-09-26 Thread Germán
Just for the record. Since Django 1.4, the best way to set up success_url in class-based generic views with url names is: > success_url = reverse_lazy('my_url_name') On Wednesday, September 21, 2011 4:53:56 PM UTC-3, Xavier Ordoquy wrote: > > Hi, > > You can also use get_success_url for that:

Re: Using email instead of username for registration and login

2012-09-26 Thread Germán
I opted to customize a little. First the backend: from django.contrib.auth.backends import ModelBackend from django.contrib.auth.models import User class EmailBackend(ModelBackend): """A django.contrib.auth backend that authenticates the user based on its email address instead of the username.

Re: Using success_url with reverse() in class-based generic view

2012-09-26 Thread Germán
Indeed On Wednesday, September 26, 2012 2:45:32 PM UTC-3, Kurtis wrote: > > Sometimes, though, you may need to pass variables to a success url. In > that case, I'd use the "get_success_url" method so you can access the > 'self' attributes. > > On Wed,

Re: Update Services for Django

2012-09-26 Thread Germán
You could create some methods that ping an specific URL. Then you could subscribe/connect to the specific signals associated to what you want to report. On Wednesday, September 26, 2012 12:14:46 PM UTC-3, Tom wrote: > > Hi All, > > Wordpress has something called Update Services, a feature that p

Re: How to change the representation of newline?

2011-12-12 Thread Germán
Has anybody solved this issue? On Dec 14 2006, 2:47 pm, "Aidas Bendoraitis" wrote: > I ran out of ideas. :) Maybe somebody else has any thoughts regarding new > lines? > > Good luck with Django! > Aidas Bendoraitis [aka Archatas] > > On 12/14/06, zhongke chen wrote: > > > > > > > > > firefox sh

Re: Django + Bamboo

2013-08-27 Thread Germán
Daniel, any luck with Bamboo? On Friday, April 19, 2013 3:25:52 AM UTC-3, daniel.franca wrote: > > Anyone has any experience configuring Django with Bamboo for deployment > and tests? > I'm trying to setup an environment, but there's not much about how to make > this work. > > What's is the best

Re: What is the best way to have multiple admin users with there own models?

2013-09-06 Thread Germán
If I understood your question correctly, you want to create an additional admin site i.e. have more than one admin site, each one in different URLs. This is absolutely possible with stock Django, no need to copy directories or anything like that. What you need is to create another instance of A

Re: Error when using python magic in the Django environment

2013-09-06 Thread Germán
Are you sure you are running the *exact same python interpreter*? Are you using virtual environments? On Friday, September 6, 2013 3:39:11 PM UTC-5, Edmond Murphy wrote: > > Running: > >- Python version 2.7.3 >- Django version 1.5.2 > > I have a django view that indirectly makes use o

Re: How to redorder app

2013-09-06 Thread Germán
If you mean reordering *apps*, as in which order the different apps are arranged, I think there is no simple way. Reorder the models for an specific app ? Same answer. On Friday, September 6, 2013 3:16:59 AM UTC-5, Ranjith Kumar wrote: > > Hello, > I trying to reorder the app in django admin, is

Re: SimpleLazyObject for request.user not correctly evaluated inside RequestContext

2013-09-06 Thread Germán
What DB engine are you using? If it is PostgreSQL, you need to roll back the transaction after a database error exception (e.g. IntegrityError). By the way, I think what you are doing is wrong. If the form data is invalid, then you need to call . form_invalid On Friday, September 6, 2013 11

Query executed two times in database (django 1.4, oracle 11g)

2013-09-07 Thread Germán
I'm not familiar with caching internals but perhaps the fact that you are using `raw` has something to do with your problem? -- 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

Create and save records through ManyToManyField selection.

2013-09-08 Thread Germán
You need to register the admin classes defined in admin.py. If you don't know how, go over the official tutorial in Django's online docs. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails f

Re: bad request 400

2013-09-08 Thread Germán
If you don't post your code it's quite difficult to help you On Sunday, September 8, 2013 3:34:33 PM UTC-5, Marcin Szamotulski wrote: > > Hello, > > I start working on a new app. I started in the usual way (with > django-admin.py startproject, configured the settings (nothing special > though)

Re: custom signup form

2013-09-08 Thread Germán
Anil, please beware that there are lots of code posted on the internet, many of which are faulty or at least don't follow best or standard practices. Copy & pasting will bite you, sooner or later. I recommend you to go over the (excellent) documentation of Django before actually working with so

Re: Forms template renders 'bad' html

2013-09-08 Thread Germán
Please post the code in question so someone can help you out. If you are having doubts with the tutorial, you may check https://github.com/glarrain/django-tutorial-source-code On Sunday, September 8, 2013 8:42:45 AM UTC-5, qdinthialand wrote: > > I'm new to Django, working through the Polls tuto

Re: Test using different database

2013-09-08 Thread Germán
Antony. Developers using different database engines is a very bad practice and WILL cause you troubles sooner or later. I don't get something from your question: are both engines supposed to be used at the same time or do you want to select a specific one to runt the test suite? On Friday, Ju

Re: Django: How to combine 3-party apps!

2013-09-08 Thread Germán
Posting the structure without the "garbage" (.pyc, ~) would help. You have a lot of things mixed up. I suggest you start with a clean project and follow the exact installation instructions of Zinnia. Otherwise it's quite difficult to detect the errors you have. On Saturday, September 7, 2013 5:

Re: Installing django dev

2013-09-12 Thread Germán Larraín
If you are using a virtualenv I don't see why you need to use "sudo". Where did you clone the git repo? Do you have the "regular" permissions in that directory? Also, consider reading the dev version of the docs, not 1.5 (like the link you referenced). -- You received this message because you

Workflow/tools assistance

2013-09-12 Thread Germán Larraín
Some comments: * why use sqlalchemy if Django has its own ORM? * you mentioned parsing SQL entries; watch out! * if you are starting a new project, I seriously recommend you to use PostreSQL, not MySQL/Maria DB -- You received this message because you are subscribed to the Google Groups "Djang

I cannot enable logging in server console

2013-09-12 Thread Germán Larraín
Perhaps it's a pycharm issue... -- 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 email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to d

Re: error python manage.py syncdb

2013-09-12 Thread Germán Larraín
Never import Django stuff in your settings (except core.exceptions) unless you REALLY know what you are doing -- 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 email to dj

Re: Reliable and cheap hosting for simple webapp in Django

2013-09-12 Thread Germán Larraín
Also https://www.nitrous.io -- 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 email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to djan

Access the AdminSite object by its name

2013-10-07 Thread Germán Larraín
Hi. When using multiple admin sites, it's necessary to give them (except the default one) a name to be able to reverse URL names correctly. The default admin site's name is 'admin'. https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#multiple-admin-sites-in-the-same-urlconf Is it possible