Re: manage.py runserver error

2019-09-22 Thread Abu Yusuf
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

Re: manage.py runserver error

2019-09-22 Thread Ashok Rai
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

Re: manage.py runserver error

2019-09-22 Thread oba stephen
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

openLdap authentication in django

2019-09-22 Thread Ankita Gupta
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

openLdap authentication in django

2019-09-22 Thread Ankita Gupta
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

Re: convert python 3 to python2

2019-09-22 Thread Ankita Gupta
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

Re: how to rectify this error

2019-09-22 Thread Sundararajan Seshadri
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

setting ForeignKey/OneToOneField in pre_save is not effective - bug?

2019-09-22 Thread Martín Massera
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

Re: how to rectify this error

2019-09-22 Thread Sundararajan Seshadri
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

Re: setting ForeignKey/OneToOneField in pre_save is not effective - bug?

2019-09-22 Thread Martín Massera
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

Re: manage.py runserver error

2019-09-22 Thread Badal Raina
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)

where to report django issues?

2019-09-22 Thread MW
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

Re: where to report django issues?

2019-09-22 Thread James Schneider
>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,

Re: Nested Model

2019-09-22 Thread Davin Pore
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] >> >> >>

Re: manage.py runserver error

2019-09-22 Thread Sanjeev Shukla
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

[Django][ Pandas] TypeError: crosstab() missing 1 required positional argument: 'columns'

2019-09-22 Thread Dilipkumar Noone
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 ]

Re: convert python 3 to python2

2019-09-22 Thread Shakil Ahmmed
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.

Class Based View All Methods

2019-09-22 Thread Shakil Ahmmed
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,