Re: Problem with a view - MultiValueDictKeyError

2015-12-18 Thread Dariusz Mysior
Hmm I split index view on two views index and register_user and now it is ok heh. W dniu czwartek, 17 grudnia 2015 22:16:33 UTC+1 użytkownik Dariusz Mysior napisał: > > I have this view and I have a bug why? > > def index(request): > # jezeli formularz coś wysłał > if request.method == '

Re: Admin debugging delete

2015-12-18 Thread Mike Dewhirst
Thanks Andreas - I'll dig deeper! Cheers Mike On 18/12/2015 9:02 PM, Andreas Kuhne wrote: Hi, Are you working in django admin and using the delete checkbox to delete a child record? If so, it is not a javascript event, but it is handled by when you save to the parents form (it's a formset wi

Re: Problem with a view - MultiValueDictKeyError

2015-12-18 Thread Dariusz Mysior
My template looks like below but I changed someting in View and than I had this error {% load staticfiles %} {% block title %}{% endblock %} {% block header %} {% if user.is_authenticated %} Jesteś zalogowany {{ user.username }} wyloguj {% else %}

Re: installing django scripts on a web server

2015-12-18 Thread Vernon D. Cole
On Friday, December 18, 2015 at 4:55:16 AM UTC-7, maringire ringaz wrote: > > How do i install django-cms(or any other web app) on xampp or runserver > using pycharm > First, I would say that xampp is a non-starter, because it does not have support for Python. [besides that, I prefer nginx and

Re: Question about using a model as a member in another model.

2015-12-18 Thread Eliot
It looks like you need a ForeignKey relationship. So your SignUp model would have an extra field, looking something like this: class SignUp(models.Model): #...other fields... elective = models.ForeignK

Re: Error while customising Django User

2015-12-18 Thread Tim Graham
If you didn't start your project with a custom user, it's non-trivial to start using one. Please see https://code.djangoproject.com/ticket/25313. On Friday, December 18, 2015 at 6:55:16 AM UTC-5, Web Architect wrote: > > Hi, > > I am new to Django and still under the process of learning. We are u

How to aggregate (min/max etc.) over Django JSONField data?

2015-12-18 Thread a1tus
I'm using django 1.9 with its built-in JSONField and postgres 9.4. In my model's attrs json field I store objects with some values, including numbers. And I need to aggregate over them to find min/max values. Something like this: Model.objects.filter(**some).aggregate(min=Min('attrs__my_key'))

installing django scripts on a web server

2015-12-18 Thread maringire ringaz
How do i install django-cms(or any other web app) on xampp or runserver using pycharm -- 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...@g

Error while customising Django User

2015-12-18 Thread Web Architect
Hi, I am new to Django and still under the process of learning. We are using an open source ecommerce platform - Oscar - for our online store. Oscar is based on Django. I was trying to customise the Django User model by extending with some few extra fields/columns: # file: your-project/apps/u

Re: Admin debugging delete

2015-12-18 Thread Andreas Kuhne
Hi, Are you working in django admin and using the delete checkbox to delete a child record? If so, it is not a javascript event, but it is handled by when you save to the parents form (it's a formset with child forms). I would follow where the django code stops executing. Regards, Andréas 2015

Re: Admin debugging delete

2015-12-18 Thread Mike Dewhirst
Forgot to mention - Django 1.8, Python 2.7 and 3.4, Postgres 9.1 and 9.3, Apache 2.2 and the dev server I have been digging a little and think this is a javascript initiated event. I am not comfortable with javascript so my uncertainty has just doubled. Thanks very much for any direction Ch