invalid literal for int() with base 10: '' using FormSet with File Upload

2016-01-12 Thread Néstor Boscán
(this)' }), } DiagnosticStudyFormSet = modelformset_factory(DiagnosticStudy, form=DiagnosticStudyForm, extra=5, can_delete=True) The Form does not have a IntegerField only CharFields and ForeignKeys. Any ideas on how to know which field is generating the error? Regards, Néstor -- You received this message because

Re: How do I install Python 3 in a virtualenv on a MAC ?

2015-07-16 Thread Néstor
Virtualenv -p python3 myfolder On Jul 16, 2015 2:24 PM, wrote: > I'm new to Django and would like to install Python 3.x in a virtualenv so > I can follow the tutorial given on the Django website. > How do I install Python 3.x (latest version) within a virtualenv on a

Re: Playing with API- DjangoProject Part 1

2015-07-14 Thread Néstor
This worked for me in ubuntu: python manage.py shell Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) *>>> from polls.models import Question, Choice* *>>> from django.utils import

Re: python manage.py makemigrations polls

2015-07-13 Thread Néstor
try "python manage.py migrate" On Mon, Jul 13, 2015 at 4:27 PM, Auj Snow wrote: > When I try to run "python manage.py makemigrations polls" in my terminal, > I get an error "No changes detected in app 'polls' " > > I have saved the 'polls' in the INSTALLED_APPS but I just

Custom UserChangeForm shows one list correctly and the other doesn't show values

2015-06-20 Thread Néstor Boscán
Hi I've created a custom UserChangeForm in DJango 1.7.8 where I have 2 custom ComboBox associated with a Model. Both are defined exactly the same. One shows the values and the + button to add a new entity. The second only shows an empty list. Any ideas? Regards, Néstor -- You received

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Néstor
Is it OK to have this syntax? href="{% static "public/css/bootstrap.min.css" %}"> Should you not do something like this: href="{% static 'public/css/bootstrap.min.css' %}"> On Fri, Mar 20, 2015 at 7:13 AM, Fellipe Henrique wrote: > So, answer the questions: > > - I in

Re: Exception occurred processing WSGI script

2015-01-08 Thread Néstor
It would be nice to read about the solution to your problem :-) On Jan 7, 2015 8:09 PM, "sarfaraz ahmed" wrote: > Issue resolved. Please close this > > On Wednesday, 7 January 2015 23:02:33 UTC+5:30, sarfaraz ahmed wrote: >> >> This is what I am trying to do. >> >> I am

Re: Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-23 Thread Néstor
You might need to make for admin mysite/templates/admin/base_site.html for regular html files for the polls only mysite/polls/templates/polls/index.html That is how I got it to work. Good luck!!! :-) On Tue, Dec 23, 2014 at 2:13 PM, Ken Wayne wrote: > Windows 8 > Django

In django-tables2 how do I paginate from the database

2014-11-02 Thread Néstor Boscán
Hi Can django-tables2 paginate at the database level using SQL OFFSET AND LIMIT?. I have a table that has millions of rows and it doesn't make any sense to load them in memory to show only the first 10 rows. Regards, Néstor -- You received this message because you are subscribed

Using ModelForm with ID associated with PostgreSQL Sequence

2014-10-20 Thread Néstor Boscán
? Regards, Néstor -- 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 django-us

Custom Exception Handler not being called

2014-10-09 Thread Néstor Boscán
exception handler is not invocked. Regards, Néstor -- 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

Calling Oracle Stored Procedures with REF CURSOR I get "unhandled data type CursorDebugWrapper"

2014-10-05 Thread Néstor Boscán
Hi I'm trying to use DJango to call Oracle Stored Procedures with REF CURSOR. When I execute it I get: "unhandled data type CursorDebugWrapper". It looks like cx_Oracle doesn't like the DJango cursor wrapper. Regards, Néstor -- You received this message because you are

Re: Does Django detect changes in models Meta ?

2014-08-22 Thread Néstor
is that true if the table is already there? On Fri, Aug 22, 2014 at 6:55 AM, Norman Bird wrote: > I am new, just completed the tutorials, but from my understanding you run > "python manage.py syncdb" and that rebuilds the tables etc. > > On Friday, August 22, 2014