Re: Unable to reverse URL

2015-07-13 Thread Vincent
Hi James, substance_list is indeed the name of the view. I've now applied namespaces, and added quotes around each URL statement, and it works! thanks! What I do not understand is how it could have worked in the past. Regards, Vincent On Monday, July 13, 2015 at 6:36:00 PM UTC+2, James Schnei

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 don't understand > how

python manage.py makemigrations polls

2015-07-13 Thread Auj Snow
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 don't understand how to fix this. Any help would be appreciated. Thanks -- You received this message bec

Re: Grouping lists in a template

2015-07-13 Thread anotherdjangonewby
Another approach would be to build a list of dictionaries based on the query and pass this to the template instead of the pure llst of books: [{ publisher: 'Publisher X', books: ['Book A', 'Book B'] }], So the logic remains in the code and not in the template. Kai Am 13.07.2015

How to debug? -- DoesNotExist at /admin/login/

2015-07-13 Thread elim
I got error when I did $ python manage.py runserver Performing system checks... System check identified no issues (0 silenced). July 13, 2015 - 20:42:02 Django version 1.8.3, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. [1

Re: What is _set and where is it documented?

2015-07-13 Thread Andrew Farrell
Hello, One relevant bit of the documentation for what you are asking is following-relationships-backward . On Mon, Jul 13, 2015 at 3:13 PM, wrote: > I've been working through "Writing Your first Django A

What is _set and where is it documented?

2015-07-13 Thread tromba . dolce
I've been working through "Writing Your first Django App, part 1." It appears that "_set" is auto-generated, and it works with foreign keys. If _set is an auto-generated (method? attribute?), then where is the documentation that lists and explains "_set" and other auto-generated methods and f

Re: loop a ChoiceField SelectMultiple form in the view as post

2015-07-13 Thread Vijay Khemlani
To tell you the truth I'm not quite sure what are you trying to accomplish, but for starters if you have a select multiple widget then your form field should be a forms.MultipleChoiceField On Mon, Jul 13, 2015 at 4:38 PM, dk wrote: > I made a quick project with an app, that might be easier to s

Re: 1.7 to 1.8 upgrade: test suite failing

2015-07-13 Thread Tim Graham
Do your test classes use setUpClass() and/or tearDownClass()? If so, are you missing super() calls in those methods? On Monday, July 13, 2015 at 9:37:03 AM UTC-4, tom.sz...@eporta.com wrote: > > Thanks for the link > This is the commit at which my tests start failing: > da9fe5c Fixed #20392 -- Ad

Re: Unable to reverse URL

2015-07-13 Thread James Schneider
What is the value being given to substance_list in your template context? It looks like it may be empty. Unless 'substance_list' is the actual name of the view? In which case you probably need to add quotes around it in your URL tag: {% url 'substance_list' %} As is it is, the template is readin

Re: Help me develop a Job Tracker (?)

2015-07-13 Thread Aaron C. de Bruyn
You might be looking for the FormWizard. In the latest version of Django, it has been moved to an external application (https://github.com/django/django-formtools/blob/master/docs/wizard.rst). In older version of Django, it is part of the corp app (https://docs.djangoproject.com/en/1.7/ref/contri

Re: ORM Query question

2015-07-13 Thread Joss Ingram
Ok, thanks. On Monday, 13 July 2015 16:14:29 UTC+1, Avraham Serour wrote: > > Personally I don't see obvious errors, but it is hard to tell with only > this small snippet. > > If it works what are you worried about? Performance? If you are having > performance problems you can try caching the qu

Re: ORM Query question

2015-07-13 Thread Avraham Serour
Personally I don't see obvious errors, but it is hard to tell with only this small snippet. If it works what are you worried about? Performance? If you are having performance problems you can try caching the query On Mon, Jul 13, 2015 at 6:08 PM, Joss Ingram wrote: > Ok, thanks fair enough. > >

Re: Grouping lists in a template

2015-07-13 Thread Scot Hacker
On Sunday, July 12, 2015 at 5:50:11 PM UTC-7, Andrea wrote: > > Hello. I'm new to both django and python. Been trying to figure out how to > group items from a model for hours now. > Check out the `regroup` template tag: https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#regroup

Re: ORM Query question

2015-07-13 Thread Joss Ingram
Ok, thanks fair enough. my Question then is : Is the query above bad? On Mon, Jul 13, 2015 at 4:00 PM, Avraham Serour wrote: > You told a story but didn't ask a question > > On Mon, Jul 13, 2015 at 5:54 PM, Joss Ingram > wrote: > >> I'm not getting much joy with my question, is there too litt

Re: ORM Query question

2015-07-13 Thread Avraham Serour
You told a story but didn't ask a question On Mon, Jul 13, 2015 at 5:54 PM, Joss Ingram wrote: > I'm not getting much joy with my question, is there too little info? > > On Friday, 10 July 2015 15:31:50 UTC+1, Joss Ingram wrote: >> >> Hi, >> >> In my models I have an event index page type, which

Re: ORM Query question

2015-07-13 Thread Joss Ingram
I'm not getting much joy with my question, is there too little info? On Friday, 10 July 2015 15:31:50 UTC+1, Joss Ingram wrote: > > Hi, > > In my models I have an event index page type, which can have child event > pages, each event page can be tagged (using taggit), and I want to produce > a

Unable to reverse URL

2015-07-13 Thread Vincent
Hi everyone, I've started working on an application after some trime, but I can not get it to run again. I've got this error: Reverse for '' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] Internal Server Error: /substances/ Traceback (most recent call last)

Two Things: (1)-ModelChoiceField with a searchbox and (2)-Related Dropboxes

2015-07-13 Thread Miguel Pereira Legal
I have this two questions: I am trying to write a small stock management system, and I am finding problems in the Form. See, when an item goes out I have a dropbox (ChoiceField) to choose the item that is going out, but this dropbox gets too long when you have so many elements in the data base

Re: 1.7 to 1.8 upgrade: test suite failing

2015-07-13 Thread tom . szpytman
Thanks for the link. This is the commit at which my tests start failing: da9fe5c Fixed #20392 -- Added TestCase.setUpTestData() On Monday, July 13, 2015 at 12:39:57 PM UTC+1, Tim Graham wrote: > > That's a starting point, but there are still a lot of commits between 1.8 > and 1.7.x. Here's what I

Re: Help me develop a Job Tracker (?)

2015-07-13 Thread Softeisbieger
So I made some progress on this project. I set up the means to manage customers, which is pretty basic stuff: I usedCreateView, ListView and the like. Now I have a more complex situation where I am stuck: I am now working on creating projects (see models above). Here I have to implement the fo

How to save base64 string in Python django

2015-07-13 Thread ywaghmare5203
Hello all, I am trying to save base64 string string image to database but I am not able to store. I am beginner for python django language. I am following these steps:-- from base64 import b64decode from django.core.files.base import ContentFile from time import time import cStringIO import bas

Re: 1.7 to 1.8 upgrade: test suite failing

2015-07-13 Thread Tim Graham
That's a starting point, but there are still a lot of commits between 1.8 and 1.7.x. Here's what I meant by "bisecting the commit": https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression On Monday, July 13, 2015 at 5:50:49 AM UTC-4, tom.sz...@eporta

Re: Grouping lists in a template

2015-07-13 Thread Daniel Roseman
On Monday, 13 July 2015 01:50:11 UTC+1, Andrea wrote: > > Hello. I'm new to both django and python. Been trying to figure out how to > group items from a model for hours now. > > This in an example code i made up to illustrate my problem: > # Models > class Book(models.Model): > submitted_by

Re: 1.7 to 1.8 upgrade: test suite failing

2015-07-13 Thread tom . szpytman
Thanks for the swift reply. The problem starts with Django 1.8.0. My test suite passes on all 1.7.x versions. On Friday, July 10, 2015 at 2:32:25 PM UTC+1, Tim Graham wrote: > > No ideas, but if you could bisect to find the Django commit where the > problem started to appear that will probably h

db_index=False for ForeignKey not working

2015-07-13 Thread Shanu Kumar
Hi, I have created a particular model in django that looks like this: Class Document(models.Model): doc_id = models.AutoField(primary_key=True) doc_name = models.CharField(max_length=255, help_text=_('The name of the document'), verbose_name=_('doc_name')

Suggestion needed: user registration without a username but with email + Facebook authentication + Linking profiles together + REST API

2015-07-13 Thread Andrey Shipilov
Hey guys, I have tried several approaches and kinda stuck now. I have tried using django-allauth, django-rest-auth, djangorestframework, python-social-auth and such. Basically I have these requirements for a project I am building. - It's an iOS/Android app, so it needs to have RESTful API.