Model validation across relationships

2014-03-21 Thread Joshua Pokotilow
Given these models, would UserProfile.clean() make sense as written? class PhoneNumber(models.Model): user = models.ForeignKey(User, related_name='phone_numbers') phone_number = models.CharField(max_length=20) class UserProfile(models.Model): user = models.OneToOneField(User) sm

Re: How to fix this error?

2014-03-21 Thread Sandro Dutra
You're trying to use a MySQL database without the proper library installed, download the python-mysql. http://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python 2014-03-21 16:34 GMT-03:00 Aayush Aggarwal : > Hello! > > Please help me in fixing this error.When is u

How to fix this error?

2014-03-21 Thread Aayush Aggarwal
Hello! Please help me in fixing this error.When is use the command python manage.py runserver 8000.It shows following error Validating models... Unhandled exception in thread started by > Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/django/core/management/

Django, Flask, and Redis: Sharing User Sessions Between Frameworks

2014-03-21 Thread H Singer
By design, Django is very tightly coupled with its ORM, Template Engine System, and Settings object. But is it an all-or-nothing deal? No! Toptal Engineer Denis Kyorov explains how to reap the benefits of large web frameworks (like Django) while enjoying the flexibility of microframeworks (li

Mastering Continuous Integration with Jenkins in 4 hours

2014-03-21 Thread Eduparrot C
HI Friends, We are conducting a session on "Mastering Continuous Integration with Jenkins in 4 hours". I will cover every thing about jenkins starting from installation to configuration and using Jenkins for continuous deployment. Below is the url to register https://www.eventbrite.com/e/maste

Re: How allow public query & download of info from my db

2014-03-21 Thread Rafael E. Ferrero
2014-03-21 12:19 GMT-03:00 C. Kirby : > I've actually built a small app that generates a form allowing users to do > a Meta Query on models django-modelqueryform. > I am in the process of a full rewrite of it to make it a lot more > customizable, but the initial version works with fields that have

Re: How allow public query & download of info from my db

2014-03-21 Thread C. Kirby
I've actually built a small app that generates a form allowing users to do a Meta Query on models django-modelqueryform. I am in the process of a full rewrite of it to make it a lot more customizable, but the initial version works with fields that have choices set or with fields that are a numer

Avoid Django s3-urls stripping

2014-03-21 Thread Paolo Bertasi
Hello, I'm trying to setup a mini django app to allow users to download files from s3. I wrote a simple python function (using boto of course) to fetch the correct url but when i handle the url with django the url is stripped. I wrote down the exact behaviour here

Re: I am unable to get the choice field to validate on creating users. it doesn't make sense at all.

2014-03-21 Thread sashank reddy
Hi Tom, As per your first suggestion I tried a ModelChoiceField in place of ChoiceField. It also results in a validation error. I am putting my new code here. = class New_user_form(UserCreationForm): email = forms.Ema

Re: [GSOC] Django-based project for the neuroinformatics community: neurostars.org

2014-03-21 Thread Roman Valls Guimerà
No, this is based on biostars.org from Istvan Albert: https://github.com/ialbert/biostar-central/ Den torsdagen den 20:e mars 2014 kl. 11:16:25 UTC+1 skrev Roman Valls Guimerà: > > Hello Django users, > > From django-developers mailing list I have been told that list is more > appropiate for >

Re: Django Custom User Admin Login

2014-03-21 Thread Alexander Myasnov
Sorry, it was my bug: wrong has_perm() declaration in custom user model. Everything works fine. четверг, 20 марта 2014 г., 19:54:35 UTC+4 пользователь Alexander Myasnov написал: > > > Hello, have you solved this bug? > > Now I have the same behavior with django-1.6.2 and django-guardian-1.2. > -

Re: Django Tutorials: NoReverseMatch at /polls/1/vote/

2014-03-21 Thread Daniel Roseman
On Thursday, 20 March 2014 23:07:47 UTC, wasingej wrote: > > I am trying to create the project described by the Django Tutorials. > However, I have reached a problem that I am stuck on after implementing > the voting forms described in tutorial 4 ( > https://docs.djangoproject.com/en/1.6/intro/t

Re: How allow public query & download of info from my db

2014-03-21 Thread Venkatraman S
On Fri, Mar 21, 2014 at 12:17 AM, Nicholas Tapia wrote: > Hey Django Community! > > I'm newer to programming and was pointed in the direction of django for > this project. > > The idea is that people can make their own custom queries and download > load it from my db. > > So far I'm thinking that