Re: Django Multiple Choice questions with Answers linked to users

2018-02-22 Thread Mike Dewhirst
On 23/02/2018 2:56 AM, 'Giles german' via Django users wrote: Dear all I am wondering if you can help me?? I haven't looked too closely at your code but there are a couple of things I would do differently. 1. I don't use Caps for field names. Too easy to confuse myself with identical

Re: django admin css not loading in localhost

2018-02-22 Thread Mike Dewhirst
On 23/02/2018 11:49 AM, anurag bhadauriya wrote: i am using django-1.11.6. whenever i open my admin panel and login to it then it looks like the simple html file. no any css files are loading .The interface i am seeing is totally different than that of the tutorials using which i am

Re: django admin css not loading in localhost

2018-02-22 Thread Costja Covtushenko
Hi, Can you provide html code of that page here? Regards, Constantine C. > On Feb 22, 2018, at 7:49 PM, anurag bhadauriya > wrote: > > i am using django-1.11.6. whenever i open my admin panel and login to it then > it looks like the simple html file. no any css

Re: object_list in html

2018-02-22 Thread Costja Covtushenko
Hi Alan, How did you receive that `object_list`? You should filter it based on you user and ‘Running’ inside the view. And then just check if it has count > 0. I hope that does have sense to you. Regards, Constantine C. > On Feb 22, 2018, at 7:34 PM, Alan wrote: > > Hi

Re: UUIDs eventually choke as primary key

2018-02-22 Thread M Mackey
Got it to happen inside the admin interface. It looks like, at least in this case, it's some kind of cache. I don't see the cache stuff on the user's listing page. I'll see if I can put a condensed version of the error here: ValidationError at /admin//log/1418765/change/

django admin css not loading in localhost

2018-02-22 Thread anurag bhadauriya
i am using django-1.11.6. whenever i open my admin panel and login to it then it looks like the simple html file. no any css files are loading .The interface i am seeing is totally different than that of the tutorials using which i am learning.please give me the stepwise solution -- You

object_list in html

2018-02-22 Thread Alan
Hi there, I am using Django 2 with Python 3.5 I have this query, simple, in mysql: select * from submit_submission where jstatus = 'Running' and juser = 'jonhdoe'; Basically, I have a table that tracks the jobs I am running. In my html, I'd like to replace this part (in red): {% if

Re: template parse error

2018-02-22 Thread sum abiut
Thanks heaps Daniel, it was the spaces On Thu, Feb 22, 2018 at 10:57 PM, Daniel Roseman wrote: > On Thursday, 22 February 2018 06:16:32 UTC, suabiut wrote: >> >> Could not parse the remainder: '=="1"' from 'selected_value=="1"' >> >> >> i got the above error when passing

Getting complex query set with a many to many relationship in django

2018-02-22 Thread James Farris
I am trying to *get all article objects that are part of a section* in an edition that is in an issue. I am stumped, even after looking at the documentation for django 2.x I can get all

Re: Issues with french accents

2018-02-22 Thread Samuel Brunel
James, Thanks for this explaination. Samuel 2018-02-22 13:04 GMT+01:00 James Bennett : > JSON is a subset of JavaScript's object-literal syntax. > > In JavaScript, as in Python 3, string literals are defined to be Unicode. > JSON is defined as specifically using UTF-8

Django Multiple Choice questions with Answers linked to users

2018-02-22 Thread 'Giles german' via Django users
Dear all I am wondering if you can help me?? I have a list of questions with a list of multiple choice answers. I am trying to get details of a user who will then answer the questions and store their answers next to their name. The questions/answers may change moving forward. I have the

Re: When do I need a new app within the site?

2018-02-22 Thread Bill Torcaso
This is an indirect reply --- but I like the book "Two Scoops of Django". It is a strong explanation of Django best practices. (The "scoops" are scoops of ice cream in the fictional ice cream store of the examples). Hope this helps. On Thursday, February 22, 2018 at 7:22:36 AM UTC-5,

Django-hotsauce 0.9.1 release

2018-02-22 Thread Etienne Robillard
Hi everyone, I'm glad to announce the release of Django-hotsauce 0.9.1: https://www.isotopesoftware.ca/pub/django-hotsauce/django-hotsauce-0.9.1.tar.gz This is primarly a bugfix release for PyPy. Users of django-hotsauce are encouraged to test this release (with PyPy or Python 3) and submit

Re: Upgrading from 1.1 to 2.0

2018-02-22 Thread James Bennett
https://docs.djangoproject.com/en/2.0/releases/2.0/#miscellaneous See the first item listed there. -- 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

When do I need a new app within the site?

2018-02-22 Thread Cictani
Hi, I'm just beginning developing a new app(s) and I'm wondering when I need to add a new app. if one app uses models from another app is that a hint that these two apps are acutally one app or is this still ok in terms of good design? Let's say I have a customer app (with customer models,

Upgrading from 1.1 to 2.0

2018-02-22 Thread Sharan Yalburgi
I get the following error after upgrading to django 2.0 from 1.11 python manage.py runserver Performing system checks... System check identified no issues (0 silenced). February 22, 2018 - 07:07:06 Django version 2.0.2, using settings 'swd.settings' Starting development server at

Re: Issues with french accents

2018-02-22 Thread James Bennett
JSON is a subset of JavaScript's object-literal syntax. In JavaScript, as in Python 3, string literals are defined to be Unicode. JSON is defined as specifically using UTF-8 as its encoding of Unicode. However, not all systems can handle Unicode passing through them. Luckily, JavaScript, like

Re: template parse error

2018-02-22 Thread Daniel Roseman
On Thursday, 22 February 2018 06:16:32 UTC, suabiut wrote: > > Could not parse the remainder: '=="1"' from 'selected_value=="1"' > > > i got the above error when passing the select value. I have no clue what > i am missing. please assist > {%if selected_value=="1"%} > > > > > Cheers, > You

Issues with french accents

2018-02-22 Thread Samuel Brunel
Hi, Context: Django 1.11.x Python 3.4.5 PostgreSQL 9.6 Database informations : data=> \l List of databases Name| Owner | Encoding | Collate | Ctype| Access privileges

Re: How do I get dynamic choices to a select widget at render time?

2018-02-22 Thread Mike Dewhirst
On 20/02/2018 11:51 PM, Andy wrote: use django-select2 Had a look at the docs and django-select2 doesn't address this use case. However, I can see I will need it for ORM related selections in the near term. Thanks Andy. Am Dienstag, 20. Februar 2018 01:17:26 UTC+1 schrieb Mike Dewhirst:

Re: template parse error

2018-02-22 Thread Andy
Are you using the defautlt django template engine or something else? Looks correct, but please show the full template, because there might be errors before that point causing this error message. Am Donnerstag, 22. Februar 2018 07:16:32 UTC+1 schrieb suabiut: > > Could not parse the remainder: