Re: Django filters with Foreign Key

2016-09-18 Thread Ali khan
Thank you for your kind response James. I must be doing something wrong but I thought that importing different models and assigning them with variable may had help me to filter it out. I will try your suggestion first to save your valued time and then will post with result. Let me add a field

Issue using django-admin

2016-09-18 Thread PARTH VERMA
Hello everyone, I am new to Django and just cloned it. I am getting error running django-admin commands, the error says: "-bash: django-admin: command not found". However, 'python -m django --version' this commands works just fine, returning the current version of Django (1.11). Can someone

Re: How to populate self._reverse_dict with a default language code ?

2016-09-18 Thread Mike Dewhirst
On 18/09/2016 11:07 PM, Etienne Robillard wrote: Hi, Actually the issue is that the self._reverse_dict type isn't containing any key. You will need to examine class RegexURLResolver(LocaleRegexProvider) in django/core/urlresolver.py where self._reverse_dict is declared and populated to see

Re: Django filters with Foreign Key

2016-09-18 Thread James Schneider
On Sep 18, 2016 4:01 AM, "Ali khan" wrote: > > I have two different apps and applying filters by ForeignKey and as newbie I am not able to understand how it works. > > My Order App: > ORDER_STATUS_CHOICES={ > ('created','Created'), >

Re: authenticate user on post request returns 403-regarding

2016-09-18 Thread James Schneider
On Sep 18, 2016 12:56 PM, "sabari rangan" wrote: > > i am using django.contrib.auth module for authentication system in my django rest framework app, when i post data i couldn't able to authenticate the user it return 403 response code . but during get request it works

authenticate user on post request returns 403-regarding

2016-09-18 Thread sabari rangan
i am using django.contrib.auth module for authentication system in my django rest framework app, when i post data i couldn't able to authenticate the user it return 403 response code . but during get request it works fine. i have attached the sessionid in cookies in both above. kindly help me

Re: How to populate self._reverse_dict with a default language code ?

2016-09-18 Thread Etienne Robillard
Hi, Actually the issue is that the self._reverse_dict type isn't containing any key. Le 2016-09-14 à 20:33, Mike Dewhirst a écrit : On 14/09/2016 11:43 PM, Etienne Robillard wrote: Hi, Is there a way to populate self._reverse_dict to contain a default language_code in case the setting

Trying to find an archive of all "A Django Podcast" podcasts--does anyone have it?

2016-09-18 Thread Aron Lindberg
Hi All, I'm trying to find an archive of all "A Django Podcast" podcasts--does anyone have a link to an archive, or possibly the Mp3 saved? Best, Aron -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Newbie to Novice – Using Admin DateTime Picker in your Form

2016-09-18 Thread Mayank Rungta
Most of the posts I see around this topic are dated. I was wondering if this works for Django 1.8 upwards. Kindly let know if anybody has tried/tested any of these approaches on a more recent version of Django. I would like to stick to this approach rather than figure a plugin/javascript for

Django filters with Foreign Key

2016-09-18 Thread Ali khan
I have two different apps and applying filters by ForeignKey and as newbie I am not able to understand how it works. My Order App: ORDER_STATUS_CHOICES={ ('created','Created'), ('paid','Paid'), } class Order(models.Model): status =