Re: Django Admin on Microsoft Visual Studio Problem

2016-07-25 Thread Siddharth Ghumre
To access Django's admin site, your admin url should look like url( r'^admin/', include(admin.site.urls)) which says whenever u hit rather http://127.0.0.1:8000/admin would include admin urls from "admin.site.urls" rather than "polls.views" unless you have all the admin login there in "polls.views"

Re: Installation de Django dans un environnement virtuel.

2016-07-25 Thread Siddharth Ghumre
I think "*sudo* pip install django" is the problem here as when you so sudo it installs it in the host machine not in virtualenv so the thumb rule says - dont use sudo when you are working in vitrual env. I guess pip install Django==1.X.X would solve the problem. Suggestion - use pip freeze to l

TypeError: $.get is not a function

2016-07-25 Thread ajay
//In scirpt $('#suggest').keyup(function () { var query = $('#suggest').value; $.get("/search/", {suggest:query},function( data ){ $("#list").html( {% for item in search_list %} ''+{{ item }}+ '' {% endfor %} )

Re: TypeError: $.get is not a function

2016-07-25 Thread Gergely Polonkai
This sounds to be a JavaScript problem, which is not part of Django in any ways. My idea, however, is that you don’t import another JS file that contains the $ function (probably jQuery or Prototype?) Gergely Polonkai [image: https://]about.me/gergely.polonkai

Re: Installation de Django dans un environnement virtuel.

2016-07-25 Thread Shem Geek
Chances are high that one of the apps you are installing is already installed and in its latest version, however, I dont understand what you are asking On Sunday, July 24, 2016 at 3:46:15 PM UTC+3, Philippe Idlas wrote: > > Bonjour, > > J'ai créé deux environnements virtuels sous Python avec 'vi

Registration for Django: Under the Hood 2016 is now open!

2016-07-25 Thread Ola Sitarska
*Django: Under the Hood is back for its third edition!* *DUTH is an annual Django conference that takes place in Amsterdam, the Netherlands. On 3rd - 6th November this year, we're going to see 9 deep dive talks into topics of Django channels, testing, Open

Re: Django selected value

2016-07-25 Thread Shem Geek
Had a similar problem today, other than using django forms, ensure your select box is named, wen the selct box is named, the selected value witll have the name of the select box: example: option 1 option 2 in django after posting the form: you cant get the value by. selected_opt =

How do I do a multiple select in the Admin filters ?

2016-07-25 Thread Hurlu
Hi everyone, For the project I'm working on, I got a Dish Model in which, in order to filter different dishes for allergens or other reasons, I got a BooleanField to check if the dish is* pork-free*, another to check if it's* nuts-free* and a good other *dozen.*As you would expect, displaying

Re: TypeError: $.get is not a function

2016-07-25 Thread ludovic coues
$.get look a lot like Jquery. Do you mind to share what version you are using ? You can find out with `alert($.fn.jquery)` 2016-07-25 16:34 GMT+02:00 Gergely Polonkai : > This sounds to be a JavaScript problem, which is not part of Django in any > ways. > > My idea, however, is that you don’t im

Re: Django selected value

2016-07-25 Thread Volodymyr Kirichinets
Hi Shem, Thanks for Your interest, But I solved this in more flexible and convenient model.(without requests, get selected options and other). I use now ManyToManyField and this solve many problems. Thanks for Your interest. I invite You to Python Dnipro, Django Dnipro, Pyramid Dnipro - Google Gr

Django MySql weirdness

2016-07-25 Thread Steve Bischoff
http://stackoverflow.com/questions/38534734/django-42000-invalid-default-value-for-action-time I have been trying to figure this one out for a bit now, does anyone have any tips on why mysql won't take in this date time from django? Thanks -- You received this message because you are subscrib

Re: How do I do a multiple select in the Admin filters ?

2016-07-25 Thread Constantine Covtushenko
Hi Hurlu, I can suggest two approaches here. 1. change your model so that it contains two fields: 'allowed' and 'disallowed'. Every of which is an array of allowed and disallowed items respectively. You can use JSON Field for that. This approach has benefit that your models looks s

Re: Django selected value

2016-07-25 Thread Sergiy Khohlov
Many to many fields are not good due to performance issues. It is not important for small Db but for big it is a problem. Simplest way for understanding form is a adding debug print(form)inside your views get function. Next step is turning off form autocommit, update your form fields and save it.

Re: Django MySql weirdness

2016-07-25 Thread Constantine Covtushenko
Hi Steve, Can you please provide code snippet here for 'action_time' field? Regards, On Mon, Jul 25, 2016 at 9:11 PM, Steve Bischoff wrote: > > > http://stackoverflow.com/questions/38534734/django-42000-invalid-default-value-for-action-time > > I have been trying to figure this one out for a b

Reverse URL django-admin

2016-07-25 Thread 'dtdave' via Django users
I apologise in advance for the length of my post but I have included all the detail I can. I have the following structure for an app. The list view template uses Bootstrap DataTables. My question is how to amend the urls to return the change url in django-admin. models.py def get_absolute_ur

Re: Django selected value

2016-07-25 Thread Volodymyr Kirichinets
Вечер добрый, Сергей Я не знаю какие там проблемы с большой базой, но моя база тоже не маленькая. И к тому же у меня задачи которые не решить без ManyToManyField - другие не подходят и вызывают еще больше проблем. Я вызываю данные с моделей и заполняю модели, так что акцент на формах тут неумест

Re: Django selected value

2016-07-25 Thread Volodymyr Kirichinets
Сергей, добавляйся в Python Dnipro, Django Dnipro, Pyramid Dnipro - Google Groups -- 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...@goo

Installation de Django dans un environnement virtuel.

2016-07-25 Thread Quentin Fulsher
Je aussi pense que le probleme est quand tu utilizes le command `sudo`. J'irai essayer le installation sans le `sudo`. Aussi français n'est pas mon premiere lang donc si tu ne comprend je peux essayer encore. Bon chance! -- You received this message because you are subscribed to the Google G