How Can i Use Those Methods In One Class Base View ['get', 'post', 'put',
'patch', 'delete', 'head', 'options', 'trace']
Example:
from django.views import View
class Home(View):
def get(self, request, *args, **kwargs):
return HttpResponse('Hello, World!')
def post(self, request,
How Can I Use ['get', 'post', 'put', 'patch', 'delete', 'head', 'options',
'trace'] in One Class
On Sun, Sep 22, 2019 at 4:14 PM Ankita Gupta
wrote:
>
>
> On Saturday, September 21, 2019 at 11:07:21 PM UTC+5:30, Sipum wrote:
>>
>> Hi Ankita,
>>
>> In coming January, python 2 is going to retire.
to check version of django use - >django-admin --version
--
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...@googlegroups.com.
To view this
Hi,
I am new to django.
MyTask:
==
while handling asynchronous task in Django using celery i need to export
some data to excel and need to create a pivotal table from it,
I am using "crosstab" in pandas.[
https://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.crosstab.html
]
Noted this. Thankyou.
On Thursday, 19 September 2019 19:10:17 UTC+8, Ayser shuhaib wrote:
>
> I’m not sure if I understood your question but for example:
> enterprise.type will give you the value of type.
>
> On Thu, 19 Sep 2019 at 10:00, Davin Pore >
> wrote:
>
>> [image: API_Box.JPG]
>>
>>
>>
>From the main website: https://code.djangoproject.com/
Also from the FAQ:
https://docs.djangoproject.com/en/2.2/faq/help/#i-think-i-ve-found-a-bug-what-should-i-do
https://docs.djangoproject.com/en/2.2/internals/contributing/bugs-and-features/#reporting-bugs
HTH,
-James
On Sun, Sep 22, 2019,
unlike other github project, there is no "issues" link on
https://github.com/django/django
I'm wondering where to report django (source code) issues?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and
First, work on python environment and then continue your job
*Badal Raina*
On Sun, 22 Sep 2019 at 15:39, Ashok Rai wrote:
> You better try using python 3
>
> On Sun, Sep 22, 2019 at 9:55 AM Pawan Jha
> wrote:
>
>> When I run the Command "manage.py runserver" on the command
>> prompt(WINDOWS)
Ok I found the source of the problem, which is the order of assigning and
saving the b object. Saving first and assigning later works:
b = B()
b.save()
instance.b = b
On Sunday, September 22, 2019 at 10:53:32 AM UTC-3, Martín Massera wrote:
>
> Hi guys I'm posting this here before creating a
Oops...I meant 'can you'.
Alternatively try 8001 or 8002 (or...) in the DOS window and point the
browser to the corresponding port.
And, yes, migrate command also needs to be run. But that will not affect
the starting of the server.
---
On Friday, S
Hi guys I'm posting this here before creating a ticket, not sure if this is
intended behavior but it looks like a bug to me.
I have a pre_save method that populates a non-nullable OneToOneField in
case it is not set at save time.
class A(Model):
b = models.OneToOneField(B, on_delete=CASC
n you check if the port 8000 is used by something else?
On Friday, September 20, 2019 at 9:59:58 PM UTC+5:30, idb solutions wrote:
>
> the server isn't running.
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group
On Saturday, September 21, 2019 at 11:07:21 PM UTC+5:30, Sipum wrote:
>
> Hi Ankita,
>
> In coming January, python 2 is going to retire. So better to use python 3.
>
Only official access is denied, we can still work in python2. Anyway thanks.
>
>
> Thanks
>
> On Sat, 21 Sep, 2019, 11:02 PM An
I am trying to add ldap authentication in my django project using
(django_python3_ldap)
after running python manage.py ldap_sync_users i am getting this error
receive_timeout=settings.LDAP_AUTH_RECEIVE_TIMEOUT,
TypeError: __init__() got an unexpected keyword argument 'receive_timeout'
setti
Did you use "python manage.py runserver" or just "manage.py runserver"?
On Sun, Sep 22, 2019, 5:09 AM Pawan Jha wrote:
> When I run the Command "manage.py runserver" on the command
> prompt(WINDOWS), I get the following error:
> Traceback (most recent call last):
> File "C:\Documents and Setti
You better try using python 3
On Sun, Sep 22, 2019 at 9:55 AM Pawan Jha wrote:
> When I run the Command "manage.py runserver" on the command
> prompt(WINDOWS), I get the following error:
> Traceback (most recent call last):
> File "C:\Documents and Settings\harsh\Desktop\Django\mysite\manage.p
I am trying to add ldap authentication in my django project using
(django_python3_ldap)
after running python manage.py ldap_sync_users i am getting this error
receive_timeout=settings.LDAP_AUTH_RECEIVE_TIMEOUT,
TypeError: __init__() got an unexpected keyword argument 'receive_timeout'
setti
It's a shame to use python2 still now. Try to start your django project
with virtualenvironment with python-3 version.
Try to follow the standard way to get start. Everything will be fine.
On Sun, Sep 22, 2019 at 10:09 AM Pawan Jha
wrote:
> When I run the Command "manage.py runserver" on the com
18 matches
Mail list logo