Re: URL configuration error for a beginner

2020-09-02 Thread maninder singh Kumar
If its frozen, perhaps your server is not running

Maninder Kumar
about.me/maninder.s.kumar



On Tue, Sep 1, 2020 at 9:57 AM Haris Ahmad  wrote:

> Hello dear,
>
> add that app in settings.py in installed apps
> Eg. "base.apps.BaseAppConfig"
> Or simply
> "base"
>
> Kind regards Haris
>
> On Tue, 1 Sep 2020, 3:59 AM Manal Helal,  wrote:
>
>> Hi
>>
>> I am using DJango to the first time and appreciate some explanation to
>> the error I am receiving. I followed the steps in the polls app tutorial:
>>
>> https://docs.djangoproject.com/en/3.1/intro/tutorial01/
>>
>> and getting the following error when running: python manage.py runserver
>>
>> *path('app/', include('app.urls')),*
>>
>> *  File
>> "/home/me/website/venv/lib/python3.8/site-packages/django/urls/conf.py",
>> line 34, in include*
>>
>> *urlconf_module = import_module(urlconf_module)*
>>
>> *  File "/home/me/opt/python-3.8.1/lib/python3.8/importlib/__init__.py",
>> line 127, in import_module*
>>
>> *return _bootstrap._gcd_import(name[level:], package, level)*
>>
>> *  File "", line 1014, in _gcd_import*
>>
>> *  File "", line 991, in _find_and_load*
>>
>> *  File "", line 973, in
>> _find_and_load_unlocked*
>>
>> *ModuleNotFoundError: No module named 'app.urls'*
>>
>> I tried adding
>>
>> from app import views
>>
>>
>> but not working and I am obviously have a long way understanding the
>> classes and directory structure of Django and appreciate a clarification to
>> make things easier,
>>
>>
>> thank you in advance
>>
>>
>> Manal
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/a0c75269-ad22-4860-b6bd-3b9f69b8cfd7n%40googlegroups.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAG0UDYZtwYzMd1vJoLu-4EMP3inrJ3oE%2BXOk04q06SsLAitkFA%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SyXHAr%2BJjKrRb8TahbmC%2BjjyDcqKyLwc7B1%2BoMbWYNHQ%40mail.gmail.com.


Re: Looking for angular-django developers

2020-07-10 Thread maninder singh Kumar
You were told there was no salary.  I rest my case.

Sent from my iPhone

> On Jul 10, 2020, at 3:48 PM, Hadisur Rahman  wrote:
> 
> Edited:
> 
> Dear Kumar, U have to mention it with ur post but u do not did it.  If
> u do it i don,t spend 2 hours to ready my CV and send it to u, thanks
> 
>> On 7/10/20, Hadisur Rahman  wrote:
>> Dear Kumar, U have to mention it with ur post but i do not did it.  If
>> u do i don,t spend 2 hours to ready my CV and send it to u, thanks
>> 
>>> On 7/10/20, maninder singh Kumar  wrote:
>>> You were told there was no salary.  Is that what’s annoying or the fact
>>> that
>>> I don’t think it’s prudent to reply to your aggressive comment.
>>> Whichever
>>> it is mr hadisur there is a project and it will go on without you
>>> 
>>> Sent from my iPhone
>>> 
>>>> On Jul 10, 2020, at 11:23 AM, Hadisur Rahman  wrote:
>>>> 
>>>> He should point the no salary till December 2020, just waste my some
>>>> valuable time.
>>>> 
>>>> 
>>>> 
>>>>   Sender notified by
>>>> Mailtrack 07/10/20, 11:52:29 AM
>>>> 
>>>>> On Fri, Jul 10, 2020 at 11:51 AM Hadisur Rahman 
>>>>> wrote:
>>>>> Dear Django-users group admins
>>>>> a concern about this fake post, please take proper action as soon as
>>>>> possible on it.
>>>>> 
>>>>> see my attachment.
>>>>> 
>>>>> 
>>>>> 
>>>>>   Sender notified by
>>>>> Mailtrack 07/10/20, 11:48:42 AM
>>>>> 
>>>>>> On Thu, Jul 9, 2020 at 7:49 PM Divakar Upadhyay
>>>>>>  wrote:
>>>>>> Can you take fresher sir. As I have experience of. Net mvc
>>>>>> development.
>>>>>> 
>>>>>> 
>>>>>>> On Thu, 9 Jul 2020, 10:10 am maninder singh Kumar,
>>>>>>>  wrote:
>>>>>>> Dear all,
>>>>>>> 
>>>>>>> There is a requirement for angular-django developers.  Experience 1-3
>>>>>>> years.  Post your resumes if interested to maninder.s.ku...@gmail.com
>>>>>>> 
>>>>>>> regards
>>>>>>>
>>>>>>> Maninder Kumar
>>>>>>> about.me/maninder.s.kumar
>>>>>>> --
>>>>>>> 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 discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/django-users/CABOHK3TLumkPwHrQWXxvs8cKcsYqzrbX5p_%3DkP6N%2BD2UZ4OAXw%40mail.gmail.com.
>>>>>> 
>>>>>> --
>>>>>> 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 discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/CAG5yzPAm8D6vUL6_Ny-YO_-M%3DknDOQOYz9uPi52y_KavdK%2Brgg%40mail.gmail.com.
>>>>> 
>>>>> ᐧ
>>>> 
>>>> ᐧ
>>>> --
>>>> 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 discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAOd0vtVfZGUU%2BCXFySSbaJ7FM%2BuPSVN8Rii2Yv25afdYFhn1dQ%40mail.gmail.com.
>>> 
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/F1AC632D-F3C4-4CDE-8678-2D6197D605BC%40gmail.com.
>>> 
>> 
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAOd0vtU4-5xAwoPseRVc%2BgTXv9_6bqeLRMPJ5UgifxzpSTDiiA%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7ADFC324-1E69-48E5-8B87-0FA5148E9F3F%40gmail.com.


Re: Looking for angular-django developers

2020-07-10 Thread maninder singh Kumar
I frankly don’t care what the admin does !

Sent from my iPhone

> On Jul 10, 2020, at 3:41 PM, maninder singh Kumar 
>  wrote:
> 
> You were told there was no salary.  Is that what’s annoying or the fact that 
> I don’t think it’s prudent to reply to your aggressive comment.  Whichever it 
> is mr hadisur there is a project and it will go on without you
> 
> Sent from my iPhone
> 
>> On Jul 10, 2020, at 11:23 AM, Hadisur Rahman  wrote:
>> 
>> He should point the no salary till December 2020, just waste my some 
>> valuable time. 
>> 
>> 
>> 
>>  Sender notified by 
>> Mailtrack 07/10/20, 11:52:29 AM  
>> 
>>> On Fri, Jul 10, 2020 at 11:51 AM Hadisur Rahman  wrote:
>>> Dear Django-users group admins
>>> a concern about this fake post, please take proper action as soon as 
>>> possible on it. 
>>> 
>>> see my attachment. 
>>> 
>>> 
>>> 
>>> Sender notified by 
>>> Mailtrack 07/10/20, 11:48:42 AM 
>>> 
>>>> On Thu, Jul 9, 2020 at 7:49 PM Divakar Upadhyay 
>>>>  wrote:
>>>> Can you take fresher sir. As I have experience of. Net mvc development. 
>>>> 
>>>>> On Thu, 9 Jul 2020, 10:10 am maninder singh Kumar, 
>>>>>  wrote:
>>>>> Dear all,
>>>>> 
>>>>> There is a requirement for angular-django developers.  Experience 1-3 
>>>>> years.  Post your resumes if interested to maninder.s.ku...@gmail.com
>>>>> 
>>>>> regards
>>>>>   
>>>>> Maninder Kumar
>>>>> about.me/maninder.s.kumar
>>>>> -- 
>>>>> 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 discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/django-users/CABOHK3TLumkPwHrQWXxvs8cKcsYqzrbX5p_%3DkP6N%2BD2UZ4OAXw%40mail.gmail.com.
>>>> 
>>>> -- 
>>>> 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 discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-users/CAG5yzPAm8D6vUL6_Ny-YO_-M%3DknDOQOYz9uPi52y_KavdK%2Brgg%40mail.gmail.com.
>>> 
>>> ᐧ
>> 
>> ᐧ
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAOd0vtVfZGUU%2BCXFySSbaJ7FM%2BuPSVN8Rii2Yv25afdYFhn1dQ%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/78F11D5C-9EB9-41EF-881E-16BD08161508%40gmail.com.


Re: Looking for angular-django developers

2020-07-10 Thread maninder singh Kumar
You were told there was no salary.  Is that what’s annoying or the fact that I 
don’t think it’s prudent to reply to your aggressive comment.  Whichever it is 
mr hadisur there is a project and it will go on without you

Sent from my iPhone

> On Jul 10, 2020, at 11:23 AM, Hadisur Rahman  wrote:
> 
> He should point the no salary till December 2020, just waste my some valuable 
> time. 
> 
> 
> 
>   Sender notified by 
> Mailtrack 07/10/20, 11:52:29 AM   
> 
>> On Fri, Jul 10, 2020 at 11:51 AM Hadisur Rahman  wrote:
>> Dear Django-users group admins
>> a concern about this fake post, please take proper action as soon as 
>> possible on it. 
>> 
>> see my attachment. 
>> 
>> 
>> 
>>  Sender notified by 
>> Mailtrack 07/10/20, 11:48:42 AM  
>> 
>>> On Thu, Jul 9, 2020 at 7:49 PM Divakar Upadhyay 
>>>  wrote:
>>> Can you take fresher sir. As I have experience of. Net mvc development. 
>>> 
>>>> On Thu, 9 Jul 2020, 10:10 am maninder singh Kumar, 
>>>>  wrote:
>>>> Dear all,
>>>> 
>>>> There is a requirement for angular-django developers.  Experience 1-3 
>>>> years.  Post your resumes if interested to maninder.s.ku...@gmail.com
>>>> 
>>>> regards
>>>>
>>>> Maninder Kumar
>>>> about.me/maninder.s.kumar
>>>> -- 
>>>> 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 discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-users/CABOHK3TLumkPwHrQWXxvs8cKcsYqzrbX5p_%3DkP6N%2BD2UZ4OAXw%40mail.gmail.com.
>>> 
>>> -- 
>>> 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 discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAG5yzPAm8D6vUL6_Ny-YO_-M%3DknDOQOYz9uPi52y_KavdK%2Brgg%40mail.gmail.com.
>> 
>> ᐧ
> 
> ᐧ
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAOd0vtVfZGUU%2BCXFySSbaJ7FM%2BuPSVN8Rii2Yv25afdYFhn1dQ%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/F1AC632D-F3C4-4CDE-8678-2D6197D605BC%40gmail.com.


Looking for angular-django developers

2020-07-08 Thread maninder singh Kumar
Dear all,

There is a requirement for angular-django developers.  Experience 1-3
years.  Post your resumes if interested to maninder.s.ku...@gmail.com

regards

Maninder Kumar
about.me/maninder.s.kumar


-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TLumkPwHrQWXxvs8cKcsYqzrbX5p_%3DkP6N%2BD2UZ4OAXw%40mail.gmail.com.


Re: django.db.utils.ProgrammingError: relation "ops_sightseeing" already exists

2020-06-29 Thread maninder singh Kumar
This could be a case for cleaning the database up.  Is there kinda too much 
data in it,  and which one is it ?

Normally when you use multiple databases,  the routers could also cause the 
problem

Without knowing all this and the code,  it might be difficult to take a decision

Regds

Sent from my iPhone

> On Jun 29, 2020, at 11:17 PM, Arpana Mehta  wrote:
> 
> This is because those tables exist in your database probably. And thus when 
> you migrate it is showing error.
> 
>> On Mon, 29 Jun 2020, 19:42 rishi kalsi,  wrote:
>> Hi, 
>> 
>> I am very new to Django or to web programming.
>> Somehow i have learnt from Django documentation to create models.
>> 
>> django.db.utils.ProgrammingError: relation "ops_sightseeing" already exists
>> 
>> I have deleted my entire model due to the above mentioned error
>> after deleting I ran makemigrations which was fine.
>> 
>> but when i run migrate it gives this error
>> 
>> django.db.utils.ProgrammingError: relation "ops_sightseeing" already exists
>> 
>> 
>> 
>> Please help me on this
>> 
>> 
>> 
>> Regards
>> 
>> Rishi
>> 
>> 
>> 
>> 
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/32eca0bd-4276-469c-9f3d-013a14c07049n%40googlegroups.com.
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAGyqUuUVoVSf%2BafLLsviHrqs8HfUic3OJzr36nAVvAAAx-G_eA%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/346676BD-D5F3-4846-B74E-B938EC088A08%40gmail.com.


Re: django.db.utils.ProgrammingError: relation "ops_sightseeing" already exists

2020-06-29 Thread maninder singh Kumar
Are you using multiple databases perhaps.

Regds.  Willy

Sent from my iPhone

> On Jun 29, 2020, at 5:54 PM, rishi kalsi  wrote:
> 
> Hi, 
> 
> I am very new to Django or to web programming.
> Somehow i have learnt from Django documentation to create models.
> 
> django.db.utils.ProgrammingError: relation "ops_sightseeing" already exists
> 
> I have deleted my entire model due to the above mentioned error
> after deleting I ran makemigrations which was fine.
> 
> but when i run migrate it gives this error
> 
> django.db.utils.ProgrammingError: relation "ops_sightseeing" already exists
> 
> 
> 
> Please help me on this
> 
> 
> 
> Regards
> 
> Rishi
> 
> 
> 
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/32eca0bd-4276-469c-9f3d-013a14c07049n%40googlegroups.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/EECD754C-0E53-4B52-B407-BB700137CD57%40gmail.com.


Re: CSRF verification failed, 'CSRF token missing or incorrect'

2020-06-28 Thread maninder singh Kumar
You need to pass RequestContext in render_to_response for csrf_token

Maninder Kumar
about.me/maninder.s.kumar



On Mon, Jun 29, 2020 at 2:02 AM Akinfolarin Stephen <
akinfolarinsteph...@gmail.com> wrote:

> can i see the error log
>
>
> On Mon, Jun 29, 2020 at 7:06 AM Shinster  wrote:
>
>> When I try to submit a Django form with username and password, I get this
>> error message:
>> 'CSRF token missing or incorrect'.
>>
>> The CSRF token is not missing at least.
>> Here is where I included it in my form in my .html template:
>>
>> In **index.html:**
>>
>> {%
>> csrf_token %}
>> {{ form.as_p }}
>> 
>> {% for field, errors in form.errors.items %}
>> {{ errors }}
>>{% endfor %}
>> 
>>
>> In **views.py:**
>>
>>
>> class LoginForm(forms.Form):
>> username = forms.EmailField()
>> password = forms.CharField(widget=forms.PasswordInput())
>>
>> def index(request):
>>  if request.method == 'POST':
>>  print("Received POST")
>>  form = LoginForm(request.POST)
>>  if form.is_valid():
>> print("FORM is Valid")
>>  else:
>> print("FORM is NOT VALID")
>> template = loader.get_template('index.html')
>> context = {
>>'username': 'Benny',
>>'form': LoginForm(),
>> }
>> return HttpResponse(template.render(context))
>>
>> I tried adding @ensure_csrf_protect and @csrf_protect, but none of these
>> worked. I also have csrf middleware in settings. I am trying to avoid using
>> @csrf_exempt as this app will go into production down the line.
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/11e4049b-cf04-4144-ad07-928c884ed812o%40googlegroups.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFujGLye7TNFMs4673V2%3DpqdRd1%2BH3c27_1rbn1vDkQLxN4V5Q%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Qcgtw3h5tHakLBcXFKrtmss%3De4D_kOJ8foMqJ2%2BhAYGw%40mail.gmail.com.


Re: Required Django programmers for HR Portal project

2020-06-28 Thread maninder singh Kumar
Just out of curiosity I would like to know more about the project John

Regds.  Willy

Sent from my iPad

> On 28-Jun-2020, at 6:24 PM, John McClain  wrote:
> 
> Send me your details
> 
>> On Sat 27 Jun 2020 at 23:03, Mottaz Hegaze  wrote:
>> Mr Kumar,
>> 
>> Please checkout your inbox or spam folder,
>> 
>> I sent you my CV with email title " [ Motaz Hejaze ] Senior Python Django / 
>> Flask / Node.js  Backend developer "
>> 
>> Thanks & Regards
>> 
>>> On Sat, Jun 27, 2020 at 11:59 PM oba stephen  wrote:
>>> Would be interestef
>>> 
>>>> On Sat, Jun 27, 2020 at 8:57 PM maninder singh Kumar 
>>>>  wrote:
>>>> Dear group subscribers,
>>>> 
>>>> I require Django programmers for an HR Job portal.  It is an intern 
>>>> project.
>>>> 
>>>> regards  willy
>>>>
>>>> Maninder Kumar
>>>> about.me/maninder.s.kumar
>>>> -- 
>>>> 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 discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-users/CABOHK3QFjdFBhptC5YExGd%3DtO%2BmMeZzjy%3DL0u67mWRT2SihwfA%40mail.gmail.com.
>>> 
>>> -- 
>>> 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 discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAAJsLnowvpfp-i3vg-qL4HOnTy28vywSiUU41S%3DPAt3NJaqGog%40mail.gmail.com.
>> 
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAHV4E-d%2BTLi71dVnR%2BFbLvj2nMy5X%2B-byB-53EaNUzhHAXy%3DCw%40mail.gmail.com.
> -- 
> John McClain
> 
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@gmail.com
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAN-hv_r0th8qE3Ky7%3DeS7Y8j_XT0E%2BSTUgZ0jnUF2vxhWRE6JQ%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/EC971362-A921-4EA8-BB0D-87579F6AFAD6%40gmail.com.


Required Django programmers for HR Portal project

2020-06-27 Thread maninder singh Kumar
Dear group subscribers,

I require Django programmers for an HR Job portal.  It is an intern project.

regards  willy

Maninder Kumar
about.me/maninder.s.kumar


-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QFjdFBhptC5YExGd%3DtO%2BmMeZzjy%3DL0u67mWRT2SihwfA%40mail.gmail.com.


Re: using serializers with POST requests

2020-06-25 Thread maninder singh Kumar
Seems like the loop doesn't go anywhere but the "else" part where it says
fail.  Perhaps you need to relook keyword or positional arguments

Maninder Kumar
about.me/maninder.s.kumar



On Thu, Jun 25, 2020 at 3:55 AM Arpana Mehta 
wrote:

>
> https://stackoverflow.com/questions/62561906/django-adding-a-new-row-in-a-table-based-on-a-foreign-key-value-using-serializ
>
>
> Please visit this link!! I have posted my question with details there.
> It's super urgent.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a8957681-396a-4e78-b0ae-526d577f3eb8o%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Q0ZeDe_Wiq5AfoA5-%2BW-mu%3D_8sL56zaexLY0SPBwOGUg%40mail.gmail.com.


Re: Manage.py not working

2020-06-20 Thread maninder singh Kumar
Have you tried django-admin ?!?

Maninder Kumar
about.me/maninder.s.kumar



On Sat, Jun 20, 2020 at 9:12 PM Tanisha Jain 
wrote:

> Hi everyone,
> I am new to Django platform. Whenever I am trying to create a new app
> using  ( python manage.py startapp app1) then I am not able to create app.
> Neither I get any error message in logs. Can someone plz suggest me what to
> do now?
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6b4c856f-0849-409a-b77a-b31038572aado%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3RxH_2-285jmD274CAco8REjqkh%2BhUb1L8DhvDzJ8A%2B9g%40mail.gmail.com.


Re: Collaborators

2020-06-20 Thread maninder singh Kumar
Hi John,

I would love to join up with you.  My skype id is wi...@kawapeople.com.
Adding you up.

regards
willy

Maninder Kumar
about.me/maninder.s.kumar



On Sat, Jun 20, 2020 at 5:21 AM John McClain  wrote:

> Hello Ragnar,
>
> you can send me an email or contact me via skype both details are in the
> signature
>
> cheers,
>
> John
>
> On Fri, 19 Jun 2020 at 13:08, Ragnar Örn Ólafsson Ólafsson <
> ragnar@gmail.com> wrote:
>
>> Hi John,
>>
>> I’d love to get in touch with you regarding the Django role. What’s the
>> best way to contact you?
>>
>> On Fri, 19 Jun 2020 at 09:55, John McClain 
>> wrote:
>>
>>> Hello all,
>>>
>>> I am looking for long term collaborators on a live django project I own
>>> and operate.
>>>
>>> This is a bootstrapped project which is generated revenue. However, all
>>> funds are poured back into the project at the moment.
>>>
>>> There is compensation for the right person(s)
>>>
>>> Please only apply if you have exceptional full stack developer skills.
>>> This is not a jr. role but would suit an intermediate level developer with
>>> a few years under their belt.
>>>
>>> Fluent English as a first language is required but the position itself
>>> is fully remote.
>>>
>>> If you are looking to contribute to a true bootstrapped startup with a
>>> proven POC, perhaps you would consider this opportunity.
>>>
>>> I am looking forward to speaking with you soon.
>>>
>>>
>>> We are looking for expertise in
>>>
>>> 1. Marketing Guru who can manage the Sendgrid implementation and ongoing
>>> marketing campaign creation and management.
>>>
>>> 2. Django backend developer to continue improving models or introducing
>>> new ones to the architecture already in play.
>>>
>>> 3, Frontend designer with strong UI UX experience to assist with assets
>>> to compliment the two rolls identified above
>>>
>>> --
>>> John McClain
>>> fundgrazing.com
>>>
>>> Cell: 085-1977-823
>>> Skype: jmcclain0129
>>> Email: jmcclain0...@gmail.com
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAN-hv_qi7kLmrfcQaqihT1xP0EpfJbqgt5S6q%3Di8rOFDwgBasw%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAL1UQP2um7x7OyhWbDdkptbnYXR9h2BFbfUzVyQw9ZEg0AX8SQ%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@gmail.com
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAN-hv_oH-YBXG-kNrE1qEmEYTZU4Ei54hHu5%2BQCd1o6QsNQDKA%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3So2O_7vW93QBNju%3D4och3Mk8V6TS19cYx6x44qUUOerQ%40mail.gmail.com.


Re: Why Should I use DRF over Django

2020-06-18 Thread maninder singh Kumar
DRF causes serialization of data and converts it to JSON, making it an
efficient way to communicate with your frontend.  An API allows you to
build a common core that can be used on multiple platforms like websites,
mobile applications, plugins, and so on.
You can build an API with pure Django too.

regards .. .willy

Maninder Kumar
about.me/maninder.s.kumar



On Thu, Jun 18, 2020 at 6:12 PM Rajprabhu Arulnathan <
arulrajprabhu...@gmail.com> wrote:

> Apart from Rest API & serializer why I should use DRF over Django Because
> We could write what we want in Django & I want to know the advantage of
> using DRF over Django
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/afae9004-3edc-4083-997a-ddfcab647d98o%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QehsudxQCtxzoFKtXbTt-6Ma80oZPBmxwA28xA%2BmAz_w%40mail.gmail.com.


Required Python Django developers

2020-06-06 Thread maninder singh Kumar
Dear all,

We require python django developers for a HR project.  Please answer to
maninder.s.ku...@gmail.com if interested.

regards
Willy

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3R1pdwbzavYP48KA_g_pLm_5kkqNSxwhGdcRf4mfetw6w%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread maninder singh Kumar
Is it a navbar or just a plain dropdown ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Wed, Jun 3, 2020 at 1:31 PM meera gangani 
wrote:

> Yes i Did,
> But Nothing is working,
> with data-toggle href is not working
>
> On Wed, Jun 3, 2020 at 1:00 PM Ajay Rathore  wrote:
>
>> Hello Meera,
>>
>> Did you try using urls as
>>
>> 
>>
>> And I think you should check what messages you received on the shell where 
>> you are running ./manage.py runserver command. This might give more 
>> information on the problem.
>>
>> Regards
>>
>> Ajay
>>
>>
>> On Wed, Jun 3, 2020 at 10:21 AM meera gangani 
>> wrote:
>>
>>> Hello Django-users
>>>
>>> href is not working
>>> here is my views.py file and my urls.py file
>>>
>>> Please Help me out!!
>>>
>>> Thank you in advance
>>> -Meera
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SyS6mOd4jiRLpEd_m_bcBUmt8GVG4BMidi%2BfY%3DB4sasA%40mail.gmail.com.


Re: Django Pagination

2020-06-01 Thread maninder singh Kumar
I think there might be a way around, below is the code modified for views.py

@login_required
def home_view(request):
"""Display all the post of friends and own posts on the dashboard"""
posts = Post.objects.order_by('-date_posted')
media: MEDIA_URL
# 'post':Post.objects.filter(Q(author=request.user) |
Q(author__from_user=request.user) |
Q(author__to_user=request.user)).order_by('-date_posted'),
paginator = Paginator(posts, 2)
page_number = request.GET.get('page')
try:
page_obj = paginator.page('page')
except PageNotAnInteger:
page_obj = paginator.page(1)
except EmptyPage:
page_obj = paginator.page(paginator.num_pages)
return render(request, 'post/home.html',{'page_obj': page_obj})

I think this might work !

regards
willy


On Mon, Jun 1, 2020 at 7:48 PM Akshat Zala  wrote:

> Dear Sir,
>
> it shows all the text on all the pages.
>
> if there are total 5 posts, then it  shows all the 5 posts on all the
> pages.
>
> Thanks,
>
> Akshat Zala
>
> On Saturday, 30 May 2020 20:54:35 UTC+5:30, maninder singh Kumar wrote:
>>
>> Views.py looks fine !
>>
>> regards
>> willy
>>
>>
>> On Sat, May 30, 2020 at 7:22 PM Akshat Zala  wrote:
>>
>>> Hello,
>>>
>>> I am finding it difficult to paginate through all the posts
>>>
>>> My views.py :
>>>
>>> @login_required
>>> def home_view(request):
>>> """Display all the post of friends and own posts on the dashboard"""
>>> posts = Post.objects.all().order_by('-date_posted')
>>> media: MEDIA_URL
>>> # 'post':Post.objects.filter(Q(author=request.user) |
>>> Q(author__from_user=request.user) |
>>> Q(author__to_user=request.user)).order_by('-date_posted'),
>>> paginator = Paginator(posts, 2)
>>> page_number = request.GET.get('page')
>>> page_obj = paginator.get_page(page_number)
>>> return render(request, 'post/home.html',{'page_obj': page_obj})
>>>
>>>
>>> and in template post/home.html:
>>>
>>> {% if is_paginated %}
>>> {% if page_obj.has_previous %}
>>> First
>>> arrow_left
>>> 
>>> {% endif %}
>>> {% for num in page_obj.paginator.page_range %}
>>> {% if page_obj.number == num %}
>>> {{ num }}
>>> {% elif num > page_obj.number|add:'-4' and num < page_obj.number|add:'4'
>>> %}
>>> {{ num }}
>>> 
>>> {% endif %}
>>> {% endfor %}
>>> {% if page_obj.has_next %}
>>> arrow_right
>>> Last
>>> {% endif %}
>>>
>>>
>>> Thanks
>>>
>>> Akshat Zala
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/87c3f0db-3088-448c-b3c7-14450e8c2f5d%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/87c3f0db-3088-448c-b3c7-14450e8c2f5d%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c775d687-0773-4d09-86be-35e6f2cd55d2%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c775d687-0773-4d09-86be-35e6f2cd55d2%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3T5A8JT%2BOe-Tt%3DAw4ZOff%2BwVWXO4EXMbkKtTUz2Y2spZg%40mail.gmail.com.


Re: Django Pagination

2020-05-30 Thread maninder singh Kumar
Views.py looks fine !

regards
willy


On Sat, May 30, 2020 at 7:22 PM Akshat Zala  wrote:

> Hello,
>
> I am finding it difficult to paginate through all the posts
>
> My views.py :
>
> @login_required
> def home_view(request):
> """Display all the post of friends and own posts on the dashboard"""
> posts = Post.objects.all().order_by('-date_posted')
> media: MEDIA_URL
> # 'post':Post.objects.filter(Q(author=request.user) |
> Q(author__from_user=request.user) |
> Q(author__to_user=request.user)).order_by('-date_posted'),
> paginator = Paginator(posts, 2)
> page_number = request.GET.get('page')
> page_obj = paginator.get_page(page_number)
> return render(request, 'post/home.html',{'page_obj': page_obj})
>
>
> and in template post/home.html:
>
> {% if is_paginated %}
> {% if page_obj.has_previous %}
> First
> arrow_left
> 
> {% endif %}
> {% for num in page_obj.paginator.page_range %}
> {% if page_obj.number == num %}
> {{ num }}
> {% elif num > page_obj.number|add:'-4' and num < page_obj.number|add:'4'
> %}
> {{ num }}
> {% endif %}
> {% endfor %}
> {% if page_obj.has_next %}
> arrow_right
> Last
> {% endif %}
>
>
> Thanks
>
> Akshat Zala
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/87c3f0db-3088-448c-b3c7-14450e8c2f5d%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QumzEA417%3DMV3dTwRszxmULfHp9y-tADSD56N_sTNQ5g%40mail.gmail.com.


Marketing django project

2020-05-18 Thread maninder singh Kumar
Dear all,

Require sales and marketing interns for django, javascript based artificial
intelligence project.

regards
willy
+91 9910669700

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TYdfAAeY%3DE5sdQsBpzwNSNKXtR%2BZGVd7u7txSqHszw7Q%40mail.gmail.com.


Re: Project available

2020-05-12 Thread maninder singh Kumar
Have decided against it.

regards
willy


On Tue, May 12, 2020 at 7:36 PM Bighnesh Pradhan <
bighnesh.pradhan...@gmail.com> wrote:

> I am interested ,
> i am from bangalore.
>
> On Mon, May 11, 2020 at 10:43 PM Nagaraju Singothu <
> nagarajusingoth...@gmail.com> wrote:
>
>> I'm interested sir
>>
>> On Mon 11 May, 2020, 11:36 AM maninder singh Kumar, <
>> maninder.s.ku...@gmail.com> wrote:
>>
>>> Dear group members,
>>>
>>> I have a django project available the flowcharts of which will be up in
>>> 1 week.  Write or call if interested ?
>>>
>>> Willy
>>> +91 9910669700
>>> wi...@kawapeople.com
>>>
>>> Sent from my iPad
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/58FEE8F5-5336-43BA-B65D-ECDA1C8303EA%40gmail.com
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMyGuAaiJkUeDXhcyczQ2DjAyAByS%2BhCF2tt8bnv24dpz5ENvQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMyGuAaiJkUeDXhcyczQ2DjAyAByS%2BhCF2tt8bnv24dpz5ENvQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGa5oYzJVzdBZYh9KUZzBU-XLny6ri1dGAGUrPn05k3zN4iMaA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGa5oYzJVzdBZYh9KUZzBU-XLny6ri1dGAGUrPn05k3zN4iMaA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3S7sH0JTa2Qriq51H-9rUCQYt3Z52MNkQysdF1gfgDD%2Bw%40mail.gmail.com.


Re: Project available

2020-05-11 Thread maninder singh Kumar
Sorry, it would not be possible to give an internship in case you are not
in India, I would require you for maintainance later on.

regards
willy


On Mon, May 11, 2020 at 8:30 PM Ali Murtuza  wrote:

> No I am from Pakistan
>
> On Mon, 11 May 2020 at 7:46 PM, maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
>> Are you based in India ?
>>
>>
>> [image: --]
>>
>> Maninder Kumar
>> [image: http://]about.me/maninder.s.kumar
>> <http://about.me/maninder.s.kumar?promo=email_sig>
>>
>>
>>
>>
>> On Mon, May 11, 2020 at 7:17 PM Fulbéria Tangbé <
>> fulberiatangbe2...@gmail.com> wrote:
>>
>>> Le lundi 11 mai 2020 06:06:23 UTC, maninder singh Kumar a écrit :
>>> > Dear group members,
>>> >
>>> > I have a django project available the flowcharts of which will be up
>>> in 1 week.  Write or call if interested ?
>>> >
>>> > Willy
>>> > +91 9910669700
>>> > wi...@kawapeople.com
>>> >
>>> > Sent from my iPad
>>>
>>> Salut Monsieur! Au fait j'ai un problème au niveau de mon projet Django
>>> 2.2.5 : j'ai crée mon projet Django en ayant des applications(blog,
>>> services, à propos ... ) ma question : est-ce que si je crée un modèle dans
>>> l'une des applications est-ce que les autres applications hériteront ce
>>> model ? Ou bien c'est la seule application qui héritera de son modèle ?
>>> Aide moi je suis confus.
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/e1fcfa73-5d44-45cb-9da4-221c554dcc6a%40googlegroups.com
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABOHK3SBZQA1M%2BqMdwLAE86nv%3DQHoNWfWUrwdsoN3_vG%3DMj3mg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CABOHK3SBZQA1M%2BqMdwLAE86nv%3DQHoNWfWUrwdsoN3_vG%3DMj3mg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BGgMvVBw8fu9g-9kPxq1phuVdhcYaO-2SWyKxJrN6F5%3DthHOw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BGgMvVBw8fu9g-9kPxq1phuVdhcYaO-2SWyKxJrN6F5%3DthHOw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QLDpXhoBnF%2B1Sz-GE-2xELV-vbTuA9TWcV%3DtqaH%2BZ%2B_w%40mail.gmail.com.


Re: Project available

2020-05-11 Thread maninder singh Kumar
Are you based in India ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Mon, May 11, 2020 at 7:17 PM Fulbéria Tangbé <
fulberiatangbe2...@gmail.com> wrote:

> Le lundi 11 mai 2020 06:06:23 UTC, maninder singh Kumar a écrit :
> > Dear group members,
> >
> > I have a django project available the flowcharts of which will be up in
> 1 week.  Write or call if interested ?
> >
> > Willy
> > +91 9910669700
> > wi...@kawapeople.com
> >
> > Sent from my iPad
>
> Salut Monsieur! Au fait j'ai un problème au niveau de mon projet Django
> 2.2.5 : j'ai crée mon projet Django en ayant des applications(blog,
> services, à propos ... ) ma question : est-ce que si je crée un modèle dans
> l'une des applications est-ce que les autres applications hériteront ce
> model ? Ou bien c'est la seule application qui héritera de son modèle ?
> Aide moi je suis confus.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e1fcfa73-5d44-45cb-9da4-221c554dcc6a%40googlegroups.com
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SBZQA1M%2BqMdwLAE86nv%3DQHoNWfWUrwdsoN3_vG%3DMj3mg%40mail.gmail.com.


Re: Project available

2020-05-11 Thread maninder singh Kumar
Are you based in India ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Mon, May 11, 2020 at 7:14 PM ekong, emmanuel 
wrote:

> I am interested too... I can receive a mail here  for acceptance
>
> On Mon, 11 May 2020 at 2:37 PM, sachin chaurasiya <
> sachinchaurasiyachote...@gmail.com> wrote:
>
>> I am interested 
>>
>> On Mon, May 11, 2020, 6:59 PM Akshat Zala  wrote:
>>
>>> I am interested. Do let me know what is to be done.
>>>
>>> Regards.
>>> Akshat
>>>
>>> On Monday, 11 May 2020 11:36:23 UTC+5:30, maninder singh Kumar wrote:
>>>>
>>>> Dear group members,
>>>>
>>>> I have a django project available the flowcharts of which will be up in
>>>> 1 week.  Write or call if interested ?
>>>>
>>>> Willy
>>>> +91 9910669700
>>>> wi...@kawapeople.com
>>>>
>>>> Sent from my iPad
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/5c8a86af-12b6-458f-b496-dacada4782c6%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/5c8a86af-12b6-458f-b496-dacada4782c6%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAD_X%3DJqdd_mfpDrgKYbpRrArfVj8F_d1HuaMgpDRkH4dpwnpHA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAD_X%3DJqdd_mfpDrgKYbpRrArfVj8F_d1HuaMgpDRkH4dpwnpHA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
> *Disclaimer*
> This e-mail is intended solely for the named recipient. The information
> contained in this message is strictly confidential.
>
>- If you are not the named recipient, you are hereby notified that any
>use, dissemination or reproduction of this document and or its content is
>prohibited and may be deemed unlawful.
>- If you are not the named recipient of this e-mail, please notify the
>sender by a return e-mail and delete all copies of it from your computer
>and mail.
>
> Any views expressed in this e-mail are those of the individual sender,
> except where the sender specifically states them to be those of Landmark
> University <http://lmu.edu.ng>, to whom no liability shall be attached
> whatsoever.
>
> Thank you
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAP9wcwXTWQMMfBG0NLfU0HK8du9EUz-M7zuusaARcb38iMPgQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAAP9wcwXTWQMMfBG0NLfU0HK8du9EUz-M7zuusaARcb38iMPgQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Q5o-NoabOJFuT3wmG9g8ypc8Q_UV6s-U-db8tMK%2BtU3w%40mail.gmail.com.


Re: Project available

2020-05-11 Thread maninder singh Kumar
Are you in India ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Mon, May 11, 2020 at 6:59 PM Akshat Zala  wrote:

> I am interested. Do let me know what is to be done.
>
> Regards.
> Akshat
>
> On Monday, 11 May 2020 11:36:23 UTC+5:30, maninder singh Kumar wrote:
>>
>> Dear group members,
>>
>> I have a django project available the flowcharts of which will be up in 1
>> week.  Write or call if interested ?
>>
>> Willy
>> +91 9910669700
>> wi...@kawapeople.com
>>
>> Sent from my iPad
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5c8a86af-12b6-458f-b496-dacada4782c6%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5c8a86af-12b6-458f-b496-dacada4782c6%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QS7K0%2BVdkiFCzKjamf8X_q%3Dp1DcyzKFKR_366673yYZg%40mail.gmail.com.


Re: Project available

2020-05-11 Thread maninder singh Kumar
sending a mail to kesari...@gmail.com.
I suppose this is an Indian.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Mon, May 11, 2020 at 6:30 PM S K  wrote:

> It's 7026210649
>
> On Mon, 11 May, 2020, 6:27 pm Adedotun Richard, 
> wrote:
>
>> I'm interested
>> You can send a zoom invite and let's talk.
>>
>> On Mon, May 11, 2020, 11:05 AM maninder singh Kumar <
>> maninder.s.ku...@gmail.com> wrote:
>>
>>> S.K thanks for the response.
>>> Is there phone number I can get in touch with you?
>>>
>>> Regs
>>> Willy
>>>
>>> Sent from my iPad
>>>
>>> On 11-May-2020, at 11:44 AM, S K  wrote:
>>>
>>> I am interested. Would like to collaborate with you.
>>>
>>> On Mon, 11 May, 2020, 11:35 am maninder singh Kumar, <
>>> maninder.s.ku...@gmail.com> wrote:
>>>
>>>> Dear group members,
>>>>
>>>> I have a django project available the flowcharts of which will be up in
>>>> 1 week.  Write or call if interested ?
>>>>
>>>> Willy
>>>> +91 9910669700
>>>> wi...@kawapeople.com
>>>>
>>>> Sent from my iPad
>>>>
>>>> --
>>>> 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 discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/58FEE8F5-5336-43BA-B65D-ECDA1C8303EA%40gmail.com
>>>> .
>>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAL17tVCy7Nmg%3DBbcGBGesD2KML2ksdJyMzLX0Hc6c%3DtP9aj_ug%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAL17tVCy7Nmg%3DBbcGBGesD2KML2ksdJyMzLX0Hc6c%3DtP9aj_ug%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/6B6B741C-A5A8-4C92-AAD1-4566842ABD03%40gmail.com
>>> <https://groups.google.com/d/msgid/django-users/6B6B741C-A5A8-4C92-AAD1-4566842ABD03%40gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CA%2BndhONt2Ut0Xs3yQtbor5PYbyG4%3DThL%2B7WAJSgQg7-hpD2Gug%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2BndhONt2Ut0Xs3yQtbor5PYbyG4%3DThL%2B7WAJSgQg7-hpD2Gug%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL17tVDBYXo%2B092%3D%2B81guVJRMbs8mB7n8G-gidDBVopBCV1PkA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAL17tVDBYXo%2B092%3D%2B81guVJRMbs8mB7n8G-gidDBVopBCV1PkA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QxZQeCXPKo7XZsa4JY69OU3SLGO7WswoJp5%3DeGecTGyw%40mail.gmail.com.


Re: Project available

2020-05-11 Thread maninder singh Kumar
S.K thanks for the response.
Is there phone number I can get in touch with you?

Regs
Willy

Sent from my iPad

> On 11-May-2020, at 11:44 AM, S K  wrote:
> 
> I am interested. Would like to collaborate with you. 
> 
>> On Mon, 11 May, 2020, 11:35 am maninder singh Kumar, 
>>  wrote:
>> Dear group members,
>> 
>> I have a django project available the flowcharts of which will be up in 1 
>> week.  Write or call if interested ?
>> 
>> Willy
>> +91 9910669700
>> wi...@kawapeople.com
>> 
>> Sent from my iPad
>> 
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/58FEE8F5-5336-43BA-B65D-ECDA1C8303EA%40gmail.com.
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAL17tVCy7Nmg%3DBbcGBGesD2KML2ksdJyMzLX0Hc6c%3DtP9aj_ug%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6B6B741C-A5A8-4C92-AAD1-4566842ABD03%40gmail.com.


Project available

2020-05-11 Thread maninder singh Kumar
Dear group members,

I have a django project available the flowcharts of which will be up in 1 week. 
 Write or call if interested ?

Willy
+91 9910669700
wi...@kawapeople.com

Sent from my iPad

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/58FEE8F5-5336-43BA-B65D-ECDA1C8303EA%40gmail.com.


Re: Tutorial Part 1

2020-05-10 Thread maninder singh Kumar
the polls URL needs to be added to urls.py.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, May 10, 2020 at 1:15 AM Randy Zeitvogel 
wrote:

> This is from my mysite/settings.py file:
>
> # Application definition
>
> INSTALLED_APPS = [
> 'polls.apps.PollsConfig',
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> ]
>
> This is from my polls/urls.py
>
> from django.urls import path
>
> from . import views
>
> urlpatterns = [
> path('', views.index, name='index'),
> path('', views.details, name='detail'),
> path('/results/', views.results, name='results'),
> path('/vote/', views.vote, name='vote'),
> ]
>
> This is from polls/apps.py
>
> from django.apps import AppConfig
>
>
> class PollsConfig(AppConfig):
> name = 'polls'
>
>
>
> On Sat, May 9, 2020 at 9:41 AM Nagaraju Singothu <
> nagarajusingoth...@gmail.com> wrote:
>
>> Dear Sir,
>>
>>First add your app in settings.py,then after
>> URLs.py
>>  from django.urls import path,include
>>  from ur(appname) import views
>>
>> On Sat 9 May, 2020, 5:42 AM Randy Zeitvogel, 
>> wrote:
>>
>>> I just started working with Django in the last couple of days.
>>> First environment is Ubuntu 19.10, python 3.7.5 and Django 3.1.  Second
>>> environment is Fedora 31, python 3.7.5, and Django 3.0.6.
>>> In both cases after I create the polls app and try it out, I get this:
>>>
>>> Page not found (404)
>>> Request Method: GET
>>> Request URL: http://localhost:8000/polls/
>>>
>>> Using the URLconf defined in mysite.urls, Django tried these URL
>>> patterns, in this order:
>>>
>>>1. admin/
>>>
>>> The current path, polls/, didn't match any of these.
>>>
>>> You're seeing this error because you have DEBUG = True in your Django
>>> settings file. Change that to False, and Django will display a standard
>>> 404 page.
>>>
>>>
>>> The feedback from the development web server (python manage.py
>>> runserver) is:
>>>
>>>
>>> jango version 3.0.6, using settings 'mysite.settings'
>>> Starting development server at http://127.0.0.1:8000/
>>> Quit the server with CONTROL-C.
>>> Not Found: /polls/
>>> [08/May/2020 17:28:16] "GET /polls/ HTTP/1.1" 404 1957
>>>
>>> My mysite/urls.py looks like this:
>>>
>>>
>>> from django.contrib import admin
>>> from django.urls import include, path
>>>
>>> urlpatterns = [
>>> path('polls/', include('polls.urls')),
>>> path('admin/', admin.site.urls),
>>> ]
>>>
>>>
>>> Any help would be appreciated.
>>>
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/b7b3b071-7255-4fc1-84c8-db7d1766e5dd%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMyGuAYu%2BpcZcgv9ciiiz9fpYQLWJSuMOa9ZE5V02V7r0UASZA%40mail.gmail.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALzWbqwm7A9SiaPfJVcYhMPPxFQe999nairQ0z1AqJwgxwkXxg%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3R9J1rHpa_M86-m70eaBkDLS0odU5R6T4JyLRTOLEO%3D3A%40mail.gmail.com.


Re: Need Help In My Project (URGENT)

2020-04-25 Thread maninder singh Kumar
The lockdown has affected all of us. I find it hard to believe that, Raghav, 
you haven't found a way out.  We must all work hard to get to something 
valuable.every day.  The way around this problem you face is to talk on the 
phone.  Remember isolation can lead to depression and we must still communicate.
The way if I may suggest is to call a call centre of your old computer and talk 
to them about its utility and you will find all of us are indispensable to our 
god.  Imagine that coming from a call centre, call dell if you must, they 
always wanna help you through your bad times.

Regs
Willy

Sent from my iPad

> On 25-Apr-2020, at 3:38 PM, Madhav Nandan  wrote:
> 
> Can you please elaborate raghav where you need help? Where you are stuck. I'm 
> willing to help you. We can share code on github and make changes but for 
> that I atleast need to know where you are stuck.
> 
> 
> 
>> On Fri, Apr 24, 2020 at 9:24 PM Shivansh Sen  wrote:
>> I think what he wants to say is if anybody got a complete project, share 
>> with him
>> 
>>> On Thursday, April 23, 2020 at 5:36:35 AM UTC+5:30, raghav wrote:
>>> 
>>> My name is Raghav and I am a final year student.
>>> I want a project for my final semester, the subject of which is the 
>>> "Courier Management System", 
>>> I am not able to complete my project on time due to any problem. The 
>>> problem is that I can no longer go to the institution where I was training. 
>>> Due to lockdown.
>>> My computer is too old which is causing the problem.
>>> This community is a family that keeps on helping each other
>>> I hope someone helps me.
>>> 
>>> Contact - shubhamna...@gmail.com()
>>> Email me if anyone wants to help me
>>> 
>>> If anyone has a project that works like a courier management service, 
>>> contact me its urgent.
>>> 
>>> - Thank you
>> 
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/05a52998-c5f1-4328-8f03-eb8815e0a950%40googlegroups.com.
> 
> 
> -- 
> Madhav Nandan
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAGXYL6Ld%3D5Cnc5YfnCqrzq94bCE-5yte12OPVPWWJNN5SaqOPg%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8E40B060-C863-44A4-A33B-FDF55E3C9E80%40gmail.com.


Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-25 Thread maninder singh Kumar
A URL.py problem
Reg
Willy

Sent from my iPad

> On 25-Apr-2020, at 10:04 AM, Ahmed Khairy  wrote:
> 
> yes 
> 
> INSTALLED_APPS = [
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'django.contrib.sites',
> 'allauth',
> 'allauth.account',
> 'users.apps.UsersConfig',
> 'core',
> 'crispy_forms',
> 'django_filters',
> 'score'
> ]
> 
> 
>> On Saturday, April 25, 2020 at 12:31:30 AM UTC-4, Motaz Hejaze wrote:
>> did you add your new app to installed apps in settings.py
>> 
>>> On Sat, Apr 25, 2020 at 6:29 AM Motaz Hejaze  wrote:
>>> you don't need the include part because you already copied the class to the 
>>> new app
>>> 
 On Sat, Apr 25, 2020 at 6:16 AM Ahmed Khairy  wrote:
 I tried to include the urls 
 
 originally it was 
 
 path('score/new/', PostCreateView.as_view(), name='post-create'),
 
 but both didn't work 
 
> On Friday, April 24, 2020 at 11:29:41 PM UTC-4, Ahmed Khairy wrote:
> I have created a new app in a project and moved one of the classes from 
> one app to the new app 
> 
> I checked every step but I keep getting No Reverse match I wrote the name 
> of the app before the namespace but still 
> 
> 
> HTML : 
>  
>   
> Upload Designs 
> 
> 
> 
> URLS 
> from django.urls import include, path
> 
> from . import views
> from .views import (PostCreateView, PostDeleteView, PostDetailView,
> PostListView, PostUpdateView, UserPostListView)
> 
> app_name = 'score'
> 
> urlpatterns = [
> path('user/', UserPostListView.as_view(), 
> name='user-posts'),
> path('score/', PostListView.as_view(), name='score'),
> path('score//', PostDetailView.as_view(), name='post-detail'),
> path('score/new/', include(('post-create.urls', 'post-create'), 
> PostCreateView.as_view(), name='post-create'),
> path('score//update/', PostUpdateView.as_view(), 
> name='post-update'),
> path('score//delete/', PostDeleteView.as_view(), 
> name='post-delete')
> ]
> 
> 
> settings:
> from django.conf import settings
> from django.conf.urls.static import static
> from django.contrib import admin
> from django.contrib.auth import views as auth_views
> from django.contrib.staticfiles.urls import staticfiles_urlpatterns
> from django.urls import include, path
> 
> from users import views as user_views
> 
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('accounts/', include('allauth.urls')),
> path('', include('core.urls', namespace='core')),
> path('register/', user_views.register, name='register'),
> path('profile/', user_views.profile, name='profile'),
> 
> views
> from django.contrib import messages
> from django.contrib.auth.mixins import LoginRequiredMixin, 
> UserPassesTestMixin
> from django.contrib.auth.models import User
> from django.contrib.messages.views import SuccessMessageMixin
> from django.http import HttpResponse
> from django.shortcuts import get_object_or_404, redirect, render
> from django.utils import timezone
> from django.views.generic import (
> CreateView, DeleteView, DetailView, ListView, UpdateView)
> 
> from .models import Post
> 
> 
> 
> class PostListView(ListView):
> model = Post
> template_name = "score.html"
> context_object_name = 'posts'
> 
> class PostCreateView(LoginRequiredMixin, SuccessMessageMixin, CreateView):
> model = Post
> fields = ['caption', 'design']
> template_name = "score/post_form.html"
> 
> def form_valid(self, form):
> form.instance.author = self.request.user
> return super().form_valid(form)
> 
> models
> 
> from django.conf import settings
> from django.contrib.auth.models import User
> from django.db import models
> from django.shortcuts import reverse
> from django.utils import timezone
> 
> 
> # Create your models here.
> class Post(models.Model):
> author = models.ForeignKey(User, on_delete=models.CASCADE)
> design = models.ImageField(
> blank=False, null=True, upload_to='new designs')
> 
> def __str__(self):
> return self.caption
> 
> def get_absolute_url(self):
> return reverse("score:post-detail", kwargs={"pk": self.pk})
> 
> 
> 
> 
 
 -- 
 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 

Re: I AM getting this error plss help me

2020-03-15 Thread maninder singh Kumar
The object is empty


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sat, Mar 14, 2020 at 5:56 PM surendra ediga 
wrote:

> Traceback (most recent call last):
>   File "C:\Users\Asus\projects\manage.py", line 21, in 
> main()
>   File "C:\Users\Asus\projects\manage.py", line 17, in main
> execute_from_command_line(sys.argv)
>   File
> "C:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py",
> line 401, in execute_from_command_line
> utility.execute()
>   File
> "C:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py",
> line 395, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "C:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py",
> line 244, in fetch_command
> klass = load_command_class(app_name, subcommand)
>   File
> "C:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py",
> line 38, in load_command_class
> return module.Command()
> AttributeError: 'NoneType' object has no attribute 'Command'
> PS C:\Users\Asus\projects>
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/df235239-985c-413b-a5d4-1ab5a3c5e69f%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TDq6AfmtD%2B9GfmhQKAGayXq9MkGaLb%2Bjs%3Dp9zjVFhuGQ%40mail.gmail.com.


Re: Active Open Source Project to contribute to

2020-03-12 Thread maninder singh Kumar
My skills include databases


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Thu, Mar 12, 2020 at 3:25 PM Jayabal  wrote:

> Hi Ranjan,
>
> I'm interested as well.
>
>
>
> On Thursday, 12 March 2020 09:55:35 UTC+5:30, ranjan jha wrote:
>>
>> Really Glad and Thanks for the overwhelming response!
>>
>> I'm planning to cleanup the code a bit and put it up on Github by this
>> weekend.
>>
>> Stay tuned, I will be posting updates here.
>>
>>
>>
>>
>> On Wednesday, March 11, 2020 at 4:58:43 AM UTC+5:30, Johnson wrote:
>>>
>>> Hi friends, I'm a django/vue js junior developer, does anyone has or
>>> knows beginner friendly open source projects I can start contributing to.
>>>
>>> Thanks.
>>>
>> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3af9f0c4-284a-480b-9bf1-9442dbe8201b%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TQi6tSaoYn7AOtkBpe9P7UKqCY%2B3Rxm8g0pS56t2E0mw%40mail.gmail.com.


Re: Active Open Source Project to contribute to

2020-03-11 Thread maninder singh Kumar
Django projects require patience and perseverance, I suggest we develop a
skill evaluation matrix and then divide the project into relevant parts.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Wed, Mar 11, 2020 at 4:58 AM Johnson  wrote:

> Hi friends, I'm a django/vue js junior developer, does anyone has or knows
> beginner friendly open source projects I can start contributing to.
>
> Thanks.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/bc51f698-01a4-4f85-acd7-9c92fee7ae47%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TqT4fgei6E2z9Q%3DUgHt6AeVQQu_fJ0pGNDoXRnVy015A%40mail.gmail.com.


Re: How to create entire basic of website design without using django-admin panel

2020-03-09 Thread maninder singh Kumar
You could go to django docs


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Feb 28, 2020 at 12:21 PM nrupesh08  wrote:

>
>
> login page based on roles (user, admin). insert data, update data, delete
> data in (entire rows). only particular update data in table
> display forms in css class.  the entire page without using django
> admin. only access front-end.
> any reference complete project for learning. please help me. i am
> intersted to earn django
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c8d610c0-9386-424c-ad42-45849c519ab9%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Q9HCmHp_oPtOoXszSXA7DZN5ZwwxmnT2JBF3-C5heS5A%40mail.gmail.com.


Re: Database connection not pointing to the correct database backend

2020-03-01 Thread maninder singh Kumar
Try using another user and password and not 'root'


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Mar 1, 2020 at 1:51 AM Cam  wrote:

> I'm running Ubuntu and I'm trying to create a small web-app connecting to
> a mysql database. (I've also tried sql-server database and had the same
> issue)
>
> It took me awhile the first time I did this but I was able to get it to
> work using
>  'ENGINE': 'mysql.connector.django',
>
>
> This time around I'm doing the same thing with the same database but I
> want to use
> 'ENGINE': 'django.db.backends.mysql',
>
>
> Here are the packages I've installed
> pip freeze
> asgiref==3.2.3
> Django==3.0
> django-mysql==3.3.0
> dnspython==1.16.0
> mysqlclient==1.4.6
> protobuf==3.6.1
> PyMySQL==0.9.3
> pyodbc==4.0.28
> pytz==2019.3
> six==1.14.0
> sqlparse==0.3.0
>
>
> settings.py:
>
> DATABASES = {
> 'default': {
> 'NAME': 'inventory',
> 'ENGINE': 'django.db.backends.mysql',
> 'HOST': 'localhost',
> 'USER': 'root',
> 'PASSWORD': '',
> 'PORT': '3306',
>
> }
> }
>
>
>
>
> However I'm still getting this error when trying to run migrate:
> Traceback (most recent call last):
>   File "/home/cam
> /.local/share/virtualenvs/Parts_Project-YIqPqjtZ/lib/python3.6/site-packages/django/db/utils.py"
> , line 111, in load_backend
> return import_module('%s.base' % backend_name)
> 
> django.core.exceptions.ImproperlyConfigured: 'django.db.backends.mysql'
> isn't an available database backend.
> Try using 'django.db.backends.XXX', where XXX is one of:
> 'oracle', 'postgresql', 'sqlite3'
>
>
>
>
> I've searched this problem over and over again online,
>
> none of these solutions have worked for me.
>
> I've obviously not pointing to the correct database backend.
>
>
>
> Any ideas?
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3ecf8944-b73d-480a-9875-ffe12a71224c%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Tu3Hj3S-bSKdoeWu%3DQogF%2BVCT4XYpbTMzys419Y-RDtg%40mail.gmail.com.


Re: Selecting all and posting

2020-02-23 Thread maninder singh Kumar
There is a doubt about the model


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Feb 24, 2020 at 4:37 AM Rishabh Gupta 
wrote:

> I can help give me checkout . You need to use of javascript .You can
> take id from input field and place in value
>
> On Sun, Feb 23, 2020 at 9:12 PM Isaac Ndutumo 
> wrote:
> >
> > Am working on a hospital system where the billing model requires users
> to select varies items from the bill list and post them by creating a
> receipt or an invoice. Am new in JavaScript programming combined with
> Django.
> >
> > Any help on below tasks will be highly appreciated
> >
> > Select all or few and post either as a receipt or invoice.
> > Show total of selected items dynamically
> >
> >
> >   Find attached capture for bill view.
> >
> > --
> > 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1b59fa26-910c-4fb6-81c4-a7b38291abf7%40googlegroups.com
> .
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACpDem3efVDbusZHhJGWvLh_F1epgK4nEO2hNxe5%2BdnO5ObJDw%40mail.gmail.com
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3R71Jjz6TyB566ExsuA7bNk0FBEcYLf0vMoFuNV8TZwag%40mail.gmail.com.


Re: Struggling on how to divide our ERP according to the Compary regional offices may someone help.

2020-02-23 Thread maninder singh Kumar
The branch offices could be a separate organization unit


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Feb 23, 2020 at 4:58 PM dumbaclassics 
wrote:

>
> Hello Family.
>
> We have been developing in django for 2years now. Our company recently
> migrated from a manual system to an ERP and we opted for Django. We have a
> nice working ERP  with accounting, inventory, hr, crm and scheduling
> modules.
>
>
> The problem is that the Company has got regional branches and now they
> would want us to come with a solution where the Head Office has access to
> summary data an all its branches, branches managing their own affairs
> without them stumbling on one another. We have been researching on
> solutions and django_tenants did come up when it comes to seperation of
> databases by schemas but still we dont see how then the Company head office
> can have an overall access to its branches at the same time offer service
> based on utilising the System Modules.
>
> Any suggestion would be much appreciated
>
>
> Thanks
>
>
> Sent from my Samsung Galaxy smartphone.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/i80aomak4baf6ivi8choq8xy.1582455839916%40email.android.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QaX_G-60VwAXTc9Ee_h-ucA%2B6QyY3395TPHbWiq%3Dd37g%40mail.gmail.com.


Re: Django - CreateView not saving form with nested formset

2020-02-23 Thread maninder singh Kumar
Great thought


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Feb 24, 2020 at 7:00 AM bnmng  wrote:

> One thing you can try for troubleshooting is an else clause to go with
> your is_valid
>
> if education.is_valid():
> education.save(commit=False)
> education.instance = self.object
> education.save()
> else:
> print('There was an error')
> for err in education.errors:
>   print(err)
>
>
> On Sunday, February 23, 2020 at 2:01:37 AM UTC-5, Shazia Nusrat wrote:
>>
>> Hi,
>>
>> Can someone help to answer the question in link?
>> Also I've been trying to get CreateView working with 5 inline formsets
>> but couldn't make it work.
>>
>> Will really appreciate your help if someone can help me with working
>> example.
>>
>> Question:
>> https://stackoverflow.com/questions/60354976/django-createview-not-saving-form-with-nested-formset
>>
>> Regards,
>>
>> Shazia
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/86c26d31-485c-4e80-8c82-18eb4b602deb%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3RgNPJkQc7Ro3%2BBMNuKzoAnCeXi20wEJUfsuAqhHe85tA%40mail.gmail.com.


Re: ANN: django-yamlconf v1.2.0 is available

2020-02-23 Thread maninder singh Kumar
Thanks for the info.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Feb 24, 2020 at 7:27 AM Michael Rohan  wrote:

> Hi Folks,
>
> Have release v1.2.0 for django-yamlconf, a module supporting Django
> settings via YAML files (searching up the directory hierarchy, e.g., in a
> K8s environment, adding a "final" set of settings via "/APPLICATION.yaml",
> see the documentation a https://django-yamlconf.readthedocs.io/en/latest/
> for more detailed info.
>
> The updates for the this release are:
>
> - Tagged with ``v1.2.0``.
> - Updates to support Django 3.0: Simply use "`six`" instead of the
>   support "`django.utils.six`" package and use "`render`" instead of
>   "`render_to_response`".
> - `ycsysfiles` should generate executable files if the source template
>   file is executable.
> - Ensure the absolute path is used when searching for YAML control
>   files.  This issue is seen when running Django apps under uWSGI
>   control.
> - Added the built-in attribute ``CPU_COUNT`` (primarily for use in uWSGI
>   ini files) giving the number of available CPUs.
>
> Take care,
> Michael.
>
> --
> Michael Rohan
> mro...@acm.org
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOCsNFhTf1Ar3paJ-3tJdVVZ1qO%2B-FWEzDOkiDtQwOBHJwiKRw%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TJWM4t%3DVDzbcQszHTF9tK2Rze3jT-%3DOFypieqxpuy2Hw%40mail.gmail.com.


Re: Bulk SMS website using django

2020-02-23 Thread maninder singh Kumar
We could work out the website.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Feb 21, 2020 at 1:22 PM Isaac Imafidon 
wrote:

> I have a project to develop a bulk sms website using django, but i have
> not develop this kind of website before. Also the client want to be able to
> have users that log in and buy credit that they will use to send sms to any
> part of the world. Also i don't know any recommended company to buy the
> reseller at an affordable price that will make my client be able to make
> profit from he's business. I really need you guys support on this, also if
> anyone have develop this kind of website before and just brief me on how to
> go about it.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1707833a-44c2-43f9-8f66-c7fca1a2540d%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QPuW5dOBohTzWFC-zTU%3DERAp-Y3aigDaraEM%3DWU7Ub2Q%40mail.gmail.com.


Re: Ui/Ux to Django

2020-02-23 Thread maninder singh Kumar
How about the following list :
1. HTML 5
HTML 5 is about where most templates would require you to be on.  A
basic idea of forms, buttons and other tags will help
2. CSS 4 preferably bootstrap
This is one of the most important things for UI and will require more
than workable knowledge
3. Javascript coding
javascript is an essential too.
4.  Django templating engine

regards




[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Feb 23, 2020 at 4:31 AM nawal benmohamed <
nawoulabenmoham...@gmail.com> wrote:

> *how to work with Ui/Ux to Django plz i need help *
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f69fe9f6-2119-4e44-b919-852665b7fb66%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QKF_fCEoQ%2B1s14FmZejKR8QjwOv5GNEjiCVp0oH5CrbQ%40mail.gmail.com.


Re: Django Migration gives an error with OneToOneField

2020-02-23 Thread maninder singh Kumar
Here's something else I found, the second time around I run django
migrations, the model does get created in the mysql db.  Once it has popped
in the error I guess it has already created a database table with the
unique field constraint.
However I then have to fake initial to get the django_migrations to tick
the migration as done.

regards


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Mon, Feb 24, 2020 at 12:20 AM Integr@te System 
wrote:

> Hi,
>
> Would u consider any relative details with result!?
>
> Or try some cmd to more status:
> https://docs.djangoproject.com/en/2.2/topics/migrations/
>
> On Mon, Feb 24, 2020, 00:43 maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
>> I am working on an application with two databases and two different
>> dbRouters.  On migrating a model with a OneToOneField I get the following
>> error :
>>
>> django.db.utils.OperationalError: (1824, "Failed to open the referenced
>> table 'auth_user'")
>>
>>
>> The auth dbRouter is for the [auth, sessions, contenttypes, admin] apps
>> while the Redford dbRouter is for the main app.
>>
>> Below is the code for the routers :
>>
>>
>> *auth dbRouter*
>>
>>
>> class AuthRouter:
>> """
>> A router to control all database operations on models in the
>> auth and contenttypes applications.
>> """
>> route_app_labels = ('auth', 'contenttypes', 'sessions', 'admin')
>>
>> def db_for_read(self, model, **hints):
>> """
>> Attempts to read auth and contenttypes models go to auth_db.
>> """
>> if model._meta.app_label in self.route_app_labels:
>> return "default"
>> return False
>>
>> def db_for_write(self, model, **hints):
>> """
>> Attempts to write auth and contenttypes models go to auth_db.
>> """
>> if model._meta.app_label in self.route_app_labels:
>> return "default"
>> return False
>>
>> def allow_relation(self, obj1, obj2, **hints):
>> """
>> Allow relations if a model in the auth or contenttypes apps is
>> involved.
>> """
>>
>> if (obj1._meta.app_label in self.route_app_labels or
>> obj2._meta.app_label == 'julia' or 'redford'
>> ):
>> return True
>> return None
>>
>> def allow_migrate(self, db, app_label, model_name=None, **hints):
>> """
>> Make sure the auth and contenttypes apps only appear in the
>> 'auth_db' database.
>> """
>>
>>
>> if db == 'default':
>> # Migrate Django core app models if current database is home
>> if app_label in ('auth','admin','sessions','contenttypes'):
>> return True
>>
>> else:
>> return False
>>
>> # Non Django core app models should not be migrated if
>> database is home
>> # Other database should not migrate Django core app models
>>
>>
>> elif app_label in ['auth','admin','sessions','contenttypes']:
>> return False
>> # Otherwise no opinion, defer to other routers or default database
>> return None
>>
>>
>>
>> *Redford dbRouter*
>>
>>
>> class RedfordRouter(object):
>>
>> route_app_labels = ('auth', 'contenttypes', 'sessions', 'admin')
>>
>> def db_for_read(self, model, **hints):
>> if model._meta.app_label == 'redford':
>>   return 'redford_db'
>> return False
>>
>> def db_for_write(self, model, **hints):
>> if model._meta.app_label == 'redford':
>>   return 'redford_db'
>> return False
>>
>> def allow_relation(self, obj1, obj2, **hints):
>> if obj1._meta.app_label == 'redford' or obj2._meta.app_label ==
>> 'auth':
>> return True
>> return None
>>
>> def allow_migrate(self, db, app_label, model_name=None, **hints):
>>
>> if db == 'default' or app_label in self.route_app_labels:
>> print(db, app_label)
>> return None
>>

Re: My newly added model doesn't appear on the user's side of the site

2020-02-23 Thread maninder singh Kumar
If it is appearing on the admin site then it has been updated on the
database.  It is possible that two things could cause the problem :
1.  The right query is not being used to generate a result.
2.  The right templating is not been used.

regards


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Feb 23, 2020 at 9:08 PM fred rick  wrote:

> The new model appears on the admin site but doesn't appear on the user's
> side. I set the rules to (null=True, blank=False).
>
> What could be the possible solution
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/-g249uq-19q12jkbcyjaxcwkix921d6kxcinyqw57cxd6kxoix-nk5qfb2ty049-867p86-vj4qqh-la3ooj8m7zyw-pk1q6k-bcpesh6gy2s2-nxe52ndnug9xb4q1nqgzlhj-44h9b-ppoyzefo4e4p.1582472048465%40email.android.com
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QCiLOc3ZQsMLfWzUMNUWsq0_m%3Di%2Br6iRvju6KRWbeVHw%40mail.gmail.com.


Django Migration gives an error with OneToOneField

2020-02-23 Thread maninder singh Kumar
I am working on an application with two databases and two different
dbRouters.  On migrating a model with a OneToOneField I get the following
error :

django.db.utils.OperationalError: (1824, "Failed to open the referenced
table 'auth_user'")


The auth dbRouter is for the [auth, sessions, contenttypes, admin] apps
while the Redford dbRouter is for the main app.

Below is the code for the routers :


*auth dbRouter*


class AuthRouter:
"""
A router to control all database operations on models in the
auth and contenttypes applications.
"""
route_app_labels = ('auth', 'contenttypes', 'sessions', 'admin')

def db_for_read(self, model, **hints):
"""
Attempts to read auth and contenttypes models go to auth_db.
"""
if model._meta.app_label in self.route_app_labels:
return "default"
return False

def db_for_write(self, model, **hints):
"""
Attempts to write auth and contenttypes models go to auth_db.
"""
if model._meta.app_label in self.route_app_labels:
return "default"
return False

def allow_relation(self, obj1, obj2, **hints):
"""
Allow relations if a model in the auth or contenttypes apps is
involved.
"""

if (obj1._meta.app_label in self.route_app_labels or
obj2._meta.app_label == 'julia' or 'redford'
):
return True
return None

def allow_migrate(self, db, app_label, model_name=None, **hints):
"""
Make sure the auth and contenttypes apps only appear in the
'auth_db' database.
"""


if db == 'default':
# Migrate Django core app models if current database is home
if app_label in ('auth','admin','sessions','contenttypes'):
return True

else:
return False

# Non Django core app models should not be migrated if
database is home
# Other database should not migrate Django core app models


elif app_label in ['auth','admin','sessions','contenttypes']:
return False
# Otherwise no opinion, defer to other routers or default database
return None



*Redford dbRouter*


class RedfordRouter(object):

route_app_labels = ('auth', 'contenttypes', 'sessions', 'admin')

def db_for_read(self, model, **hints):
if model._meta.app_label == 'redford':
  return 'redford_db'
return False

def db_for_write(self, model, **hints):
if model._meta.app_label == 'redford':
  return 'redford_db'
return False

def allow_relation(self, obj1, obj2, **hints):
if obj1._meta.app_label == 'redford' or obj2._meta.app_label ==
'auth':
return True
return None

def allow_migrate(self, db, app_label, model_name=None, **hints):

if db == 'default' or app_label in self.route_app_labels:
print(db, app_label)
return None
elif db == 'redford_db':
if app_label == 'redford':
return True
return False
return None


The code for the models is as below :


class Employer(models.Model):
 emp_Name = models.OneToOneField(User, on_delete=models.CASCADE,
 null=True)
 emp_Company = models.CharField(max_length=100)
 emp_Address = models.CharField(max_length=500)
 emp_Tel = models.CharField(max_length=100)
 emp_JobTitle = models.CharField(max_length=200, null=True)
 emp_JobDesc = models.CharField(max_length=600, null=False)

 def __str__(self):
 return self.emp_Name


Hope we can work it out


regards


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar


-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QsWztSogPx_RzbYcZ46WyK0cHV8JxXBuRSbr2epeQKhg%40mail.gmail.com.


Re: Study and project partner(s) needed

2020-02-18 Thread maninder singh Kumar
Medium to average programming skills looking to improve


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Tue, Feb 18, 2020 at 3:43 AM Maqdum Adewale  wrote:

> Hi I'm in
>
> On Fri, Feb 14, 2020, 5:15 PM Akorede Habeebullah 
> wrote:
>
>> Hi guys,
>>
>> I've been learning Django on a solo for a while now and I'm really in
>> need of a Programmer friend/partner who we can always learn together, build
>> projects together. This will really benefit both sides greatly.
>> I am a person you'll really love to make friend with. Interested
>> individuals should pls signify.
>>
>> Thanks.
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/6d4ed94c-3864-4c5b-9f9e-5df7b6a77cdd%40googlegroups.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2B48qrECkKiFQ-Pm4VXJtn%2BvNebxORNf0zyh3sLY%2BObYBSNCrQ%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TtgwhGFrT5AQL%3DPyPR%3Do_-z3fbm8TK2U%2BBUsfnh%3DFnaA%40mail.gmail.com.


Re: Multiple calls

2020-02-17 Thread maninder singh Kumar
Hi Soumen,
Where is the Csv file loading ?
You could try return redirect also if the problem is due to continued 
resubmission.

Sent from my iPad

> On 17-Feb-2020, at 7:14 PM, Kasper Laudrup  wrote:
> 
> Hi Soumen,
> 
>> On 17/02/2020 14.31, Soumen Khatua wrote:
>> Hi Folks,
>> Actually I want to load the csv file for first time only afterwards I don't 
>> want to load the csv files,but everytime when i'm calling the url the same 
>> csv fie is loading for the same operation.How I can restrict it for multiple 
>> loadings?
> 
> As a quick and dirty solution, you could probably use a class variable:
> 
> https://docs.python.org/3/tutorial/classes.html#class-and-instance-variables
> 
> But a nicer way would be to have some kind of service or similar that the 
> view could call or perhaps abstract the CSV file as a Django model.
> 
> Kind regards,
> 
> Kasper Laudrup
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/cdb81c92-9cd9-7401-ef86-67c9fc643000%40stacktrace.dk.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AF0E6004-98F9-4691-B5D8-A4601D42F91D%40gmail.com.


Re: Attribute Error

2020-02-17 Thread maninder singh Kumar
Have you tried putting a print statement in views.py RegisterStudent to get to 
an output in the server.
Perhaps the problem is in the template and the get isn't even coming to the view

Sent from my iPad

> On 17-Feb-2020, at 6:30 PM, Adam Mičuda  wrote:
> 
> Hi,
> you have to return instance of `django.http.HttpResponse` class from you view 
> `RegisterStudent` instead of string: line 98 and line 99.
> 
> see 
> https://docs.djangoproject.com/en/3.0/ref/request-response/#django.http.HttpResponse
> 
> Regards.
> 
> Adam
> 
> 
> po 17. 2. 2020 v 13:49 odesílatel Ernest Thuku  napsal:
>> Hello guys please help on the error. I have been stuck for days now.
>> I am Ernest from Kenya.
>> please look into these files below
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAPsfuofNxRkkcP4WtnG7cF-mbrN-GvgD4ene%3D0i_ChK6N8VVcw%40mail.gmail.com.
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAB9%3DGXYFq4HcbGM3vPj8aKYAZd3LWc6mJZ19eKuR7v1xjTHM4Q%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/597EBAE3-0491-4B0A-A59C-791804ED56D4%40gmail.com.


Re: Bootstrap not found

2020-02-16 Thread maninder singh Kumar
Static file location in settings.py


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Feb 16, 2020 at 8:36 PM Alessandro D' Oronzo 
wrote:

> Hi everyone,
> I have a problem with load bootstrap on my generic_template.
>
> This is error output:
> [16/Feb/2020 14:57:37] "GET / HTTP/1.1" 200 2239
> [16/Feb/2020 14:57:37] "GET
> /static/vendor/bootstrap/css/bootstrap.min.css HTTP/1.1" 404 1740
> [16/Feb/2020 14:57:37] "GET
> /static/vendor/bootstrap/js/bootstrap.bundle.min.js HTTP/1.1" 404 1755
> [16/Feb/2020 14:57:37] "GET /static/css/the-big-picture.css HTTP/1.1" 404
> 1695
> [16/Feb/2020 14:57:37] "GET /static/vendor/jquery/jquery.min.js HTTP/1.1"
> 404 1707
> [16/Feb/2020 14:57:37] "GET
> /static/vendor/bootstrap/js/bootstrap.bundle.min.js HTTP/1.1" 404 1755
>
> Can someone help me?
> Thanks you!
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2F896088-95FB-4906-A2D5-0F8421907AE2%40gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Qr7kVHS2mV4n9Rbi47-yAhbw8nakPKYz3_3Ci2NffO2w%40mail.gmail.com.


Re: Study and project partner(s) needed

2020-02-16 Thread maninder singh Kumar
What is the project about

Sent from my iPad

> On 16-Feb-2020, at 6:58 PM, Jubel Ahmed  wrote:
> 
> let's create a group in skype.
> skype id : jubel4926
> 
> 
>> On Sun, Feb 16, 2020 at 4:51 PM sagar ninave  wrote:
>> I have created whats app group whoever interested please join the group
>> 
>> https://chat.whatsapp.com/GYefegJi1cxAJCfmP1o90R
>> 
>> 
>> 
>>> On Sun, 16 Feb 2020 at 3:58 PM, Jack Lin  wrote:
>>> Since no one is gathering everyone, I created a Django Learning Group on 
>>> Telegram
>>> If anyone is interested, just click the link and join us.
>>> 
>>> Akorede Habeebullah於 2020年2月15日星期六 UTC+8上午12時16分13秒寫道:
 
 Hi guys, 
 
 I've been learning Django on a solo for a while now and I'm really in need 
 of a Programmer friend/partner who we can always learn together, build 
 projects together. This will really benefit both sides greatly. 
 I am a person you'll really love to make friend with. Interested 
 individuals should pls signify. 
 
 Thanks.
>>> 
>>> -- 
>>> 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 discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/19bdc232-e608-4027-9066-2e7479772e26%40googlegroups.com.
>> -- 
>>  
>> sagar ninave
>> about.me/sagarninave
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAA6pdZ_jagNb8zhErMK6XYH0pscGa7tTnZaw%2BJRwgtp_e5AJPw%40mail.gmail.com.
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAEpJGYmZRawxki98A%3D8pi7GqzewrYfTb2-A%3DRjwSoM9KvQHgTg%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9E32623D-7C71-4D4A-BEC6-95AC2F5B0740%40gmail.com.


Re: Retaining text in search input boxes

2020-02-15 Thread maninder singh Kumar
Wouldn't the value field make it fixed ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Feb 16, 2020 at 12:22 AM Dick Arnold  wrote:

> I have a personnel database which has to be edited to keep it current.
> I have created search parameters to find the person to edit.
> The exact name of the person is not always known, therefore the name field
> for searching can contain only a few of the characters.  This can create a
> list of several people.
> After the search parameters are entered a "Search" button is clicked and
> the output, if any, is displayed in a table.
> If the search parameters need to be improved, I want the original
> (current) search argument to be retained in the argument field so I do not
> need to re-type ALL the search parameters, just the ones I want to change.
>
> I have not been able to find a way to retain the value in the search input
> box,
>
> Does anyone know how to accomplish this?
>
> Here's the input for one of the input boxes.
>
> 
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/92cfccd1-5916-4817-ae46-c612aa462610%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SPDFdvajS9GyqhxHSvXw5eEQpHU9ax7NOtFhsM4W_wyg%40mail.gmail.com.


Re: Study and project partner(s) needed

2020-02-15 Thread maninder singh Kumar
The projects need to be specified !


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Feb 14, 2020 at 9:46 PM Akorede Habeebullah 
wrote:

> Hi guys,
>
> I've been learning Django on a solo for a while now and I'm really in need
> of a Programmer friend/partner who we can always learn together, build
> projects together. This will really benefit both sides greatly.
> I am a person you'll really love to make friend with. Interested
> individuals should pls signify.
>
> Thanks.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6d4ed94c-3864-4c5b-9f9e-5df7b6a77cdd%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TFJUFVqW3cbj%2BYtZok10GgYUoeR4F_xZVh7yAD0vkjOg%40mail.gmail.com.


Re: Study and project partner(s) needed

2020-02-14 Thread maninder singh Kumar
I have a project.  Let me know if someone is interested 

Sent from my iPad

> On 15-Feb-2020, at 6:51 AM, nainiket desai  wrote:
> 
> 
> Interested, let me know if someone has interesting project to work on!
> 
>> On Fri, Feb 14, 2020 at 6:01 PM paarull shukla  
>> wrote:
>> Heloo I m also intrested to learn something from you
>> 
>>> On Fri, 14 Feb, 2020, 9:45 PM Akorede Habeebullah,  
>>> wrote:
>>> Hi guys, 
>>> 
>>> I've been learning Django on a solo for a while now and I'm really in need 
>>> of a Programmer friend/partner who we can always learn together, build 
>>> projects together. This will really benefit both sides greatly. 
>>> I am a person you'll really love to make friend with. Interested 
>>> individuals should pls signify. 
>>> 
>>> Thanks.
>>> -- 
>>> 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 discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/6d4ed94c-3864-4c5b-9f9e-5df7b6a77cdd%40googlegroups.com.
>> 
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CACLQzsfwWxtRZAGDCLoJTkX47iQPEKiKnkpM9ABEHowf1dusbQ%40mail.gmail.com.
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAATwwFev2Y3mVBJ%3DRNXY5xd5znSK7wzjRn6ranc9Qh2o4DjkjA%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4605FA8A-3A0D-4492-A0BE-DF29A8BD6AC4%40gmail.com.


Re: Is a Custom User Model worth the headache?

2020-02-14 Thread maninder singh Kumar
It really depends on what you want to do with your user authentication

Sent from my iPad

> On 14-Feb-2020, at 2:02 PM, Carsten Fuchs  wrote:
> 
>> Am 14.02.20 um 09:03 schrieb Mike Dewhirst:
>> Definitely start a new project with a custom user and I would consider 
>> aborting an existing project to restart with a custom user if it was started 
>> with the standard user.
> 
> Which may not be possible for large, existing projects.
> 
> Switching to a custom user model in mid-project is possible. Based on the 
> work of other's, I've tried to summarize the required steps, see 
> https://code.djangoproject.com/ticket/25313#comment:18 for details.
> 
> For new projects, consider 
> https://django-improved-user.readthedocs.io/en/latest/ (rationale: 
> https://django-improved-user.readthedocs.io/en/latest/rationale.html )
> 
> Best regards
> Carsten
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/5aabf51c-aa69-5210-d2c1-252173f012d6%40cafu.de.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2A457431-AE3C-4274-B3E0-3CE778A4A96B%40gmail.com.


Re: Manually running a script that imports a Django model

2020-02-13 Thread maninder singh Kumar
Could it be an improperly configured database ?
Also check installed apps.  
It is most likely a syntax error in settings like a comma, colon or apostrophe

Sent from my iPad

> On 13-Feb-2020, at 7:34 PM, onlinejudge95  wrote:
> 
>> On Thu, Feb 13, 2020 at 6:34 PM Sourish Kundu  
>> wrote:
> 
>> So I am trying to access one of my models created in views.py in another 
>> script. This second script is the one I would like manually run. It imports 
>> the model without any errors; however, when I try to run it using PyCharm, I 
>> get this error:
> 
> Firstly, what are your models doing in views.py? I am assuming it was a typo.
>  
>> 
>> django.core.exceptions.ImproperlyConfigured: Requested setting 
>> INSTALLED_APPS, but settings are not configured. You must either define the 
>> environment variable DJANGO_SETTINGS_MODULE or call settings.configure() 
>> before accessing settings.
>> 
>> Any help on resolving this issue would be very much appreciated.
> 
> For scripts like these that are not part of your web server or that do not 
> take part in the request-response cycle, I like to implement them as custom 
> Django commands. You can read more about them here.
>  
>> 
>> 
>> Thanks,
>> Sourish
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/2c9b2d34-a9ab-4a2f-a1e4-e2694c265ea0%40googlegroups.com.
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAD%3DM5eSBrbLvnFBzoGfOaJk3NnWG8t1N2aOQTmHR6TDsup3F%2BA%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/824DE3AE-7DEE-4A00-8AF2-F709F371E06A%40gmail.com.


Re: Is a Custom User Model worth the headache?

2020-02-13 Thread maninder singh Kumar
Here's my opinion on this :
1. It requires the.user model to be the first migration
2.  You could either want to extend or customise the User model
3.  If extending is all you want then use the default authentication

I tried customising it didn't find it worth my time

Willy

Sent from my iPad

> On 13-Feb-2020, at 9:00 PM, bnmng  wrote:
> 
> Thanks for the reply.  That is a good post and I'll go along with the 
> recommendation, though I still don't completely understand why adding a 
> profile isn't as good as creating a custom user, and I wish I could figure 
> out how to group custom users and auth groups together in the same admin 
> section
> 
> Ben 
> 
>> On Thursday, February 13, 2020 at 8:04:18 AM UTC-5, SikoraD wrote:
>> Hi Ben,
>> 
>> I'll highly recommended to read fantastic post on Will Vincent blog -> 
>> https://wsvincent.com/django-tips-custom-user-model/
>> His approach is much easier than one on django website and it is worth to 
>> have look.
>> 
>> Also his djangox repo on github is very useful.
>> 
>> Best Regards
>> Damian
>> 
>> 
>>> Hi.  
>>> 
>>> I read the part where it's "highly recommended" to create a custom user 
>>> model, but I don't see why it's worth the headache.  I found these problems:
>>> 
>>> 1 In the admin panel, my auth groups are in a separate app from my users
>>> 2 There is some disagreement out there about how apps should refer to a 
>>> user model now that the user model might be custom
>>> 3 A lot of features that I would add are app specific, and therefore would 
>>> be better handled by app specific profiles
>>> 4 There's a new entry point for possible errors and glitches
>>> 
>>> So why do this? 
>>> 
>>> Thanks,
>>> Ben 
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/3210d917-e796-4b26-a316-fc3974bcfc0b%40googlegroups.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/F667FDD1-50AE-4E7B-A129-B12B363DB5C7%40gmail.com.


Re: makemessages fails

2020-02-13 Thread maninder singh Kumar
Is the app installed in settings.py

Sent from my iPad

> On 13-Feb-2020, at 10:49 AM, Yash Garg  wrote:
> 
> Go through i18n official documentation and specify path according to that.
> 
>> On Thu 13 Feb, 2020, 10:25 AM Yves de Champlain,  wrote:
>> Hi
>> 
>> I have
>> 
>> ROOT_DIR = environ.Path(__file__) - 3  # (base_dir/config/settings/common.py 
>> - 3 = base_dir/)
>> PROJ_DIR = ROOT_DIR
>> 
>> LOCALE_PATHS = [
>> PROJ_DIR('locale'),
>> ]
>> 
>> Could it be the source of the problem ?
>> 
>> Thanks !
>> 
>> 
>> 
>> Le mercredi 12 février 2020 12:53:06 UTC-5, Yash Garg a écrit :
>>> 
>>> Have you specified path to Locale directory in settings.py?
>>> 
>>> On Wednesday, February 12, 2020 at 7:51:53 PM UTC+5:30, Yves de Champlain 
>>> wrote:
 
 Hi
 
 When I run 
 
 django-admin makemessages -l fr
 
 I get 
 
 Traceback (most recent call last): 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py",
  line 323, in run_from_argv 
 
  self.execute(*args, **cmd_options) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py",
  line 364, in execute 
 
  output = self.handle(*args, **options) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py",
  line 353, in handle 
 
  if self.settings_available: 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py",
  line 80, in __get__ 
 
  res = instance.__dict__[self.name] = self.func(instance) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/commands/makemessages.py",
  line 413, in settings_available 
 
  settings.LOCALE_PATHS 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py",
  line 79, in __getattr__ 
 
  self._setup(name) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py",
  line 66, in _setup 
 
  self._wrapped = Settings(settings_module) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/conf/__init__.py",
  line 157, in __init__ 
 
  mod = importlib.import_module(self.SETTINGS_MODULE) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/importlib/__init__.py", line 
 127, in import_module 
 
  return _bootstrap._gcd_import(name[level:], package, level) 
 
  File "", line 1006, in _gcd_import 
 
  File "", line 983, in _find_and_load 
 
  File "", line 953, in 
 _find_and_load_unlocked 
 
  File "", line 219, in 
 _call_with_frames_removed 
 
  File "", line 1006, in _gcd_import 
 
  File "", line 983, in _find_and_load 
 
  File "", line 953, in 
 _find_and_load_unlocked 
 
  File "", line 219, in 
 _call_with_frames_removed 
 
  File "", line 1006, in _gcd_import 
 
  File "", line 983, in _find_and_load 
 
  File "", line 965, in 
 _find_and_load_unlocked 
 
 ModuleNotFoundError: No module named 'config' 
 
 
 During handling of the above exception, another exception occurred: 
 
 
 Traceback (most recent call last): 
 
  File "/opt/miniconda3/envs/cert_tool/bin/django-admin", line 10, in 
  
 
  sys.exit(execute_from_command_line()) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py",
  line 381, in execute_from_command_line 
 
  utility.execute() 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/__init__.py",
  line 375, in execute 
 
  self.fetch_command(subcommand).run_from_argv(self.argv) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/core/management/base.py",
  line 336, in run_from_argv 
 
  connections.close_all() 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py",
  line 219, in close_all 
 
  for alias in self: 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py",
  line 213, in __iter__ 
 
  return iter(self.databases) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/utils/functional.py",
  line 80, in __get__ 
 
  res = instance.__dict__[self.name] = self.func(instance) 
 
  File 
 "/opt/miniconda3/envs/cert_tool/lib/python3.7/site-packages/django/db/utils.py",
  line 147, in databases 
 
  self._databases = settings.DATABASES 
 
  File 
 

Re: filter objects dynamically on page render based on button click (beginner question)

2020-02-13 Thread maninder singh Kumar
Have you looked at permissions ?

Sent from my iPad

> On 13-Feb-2020, at 6:06 PM, Phil Kauffman  wrote:
> 
> Bill,
> 
> Thank You for taking the time to respond. I will definitely need to read up 
> on the options you presented. My first inclination was to get familiar with 
> the first option as it seems easiest. However, now that you mention VueJS I 
> will look into that as well.
> 
>> On Wednesday, February 12, 2020 at 6:46:42 PM UTC-5, ke1g wrote:
>> What happens in the browser stays in the browser, unless you do something 
>> about it.
>> 
>> Forgive me if I'm being too basic below:
>> 
>> There are three approaches to click and see a filtering change, with trade 
>> offs in performance, complexity, and the impact if the user's browser is on 
>> a humble box.
>> When the user clicks, it's on a link, and you reload the page with the 
>> filter applied.  No JavaScript required.  Pretty slow.  more network load, 
>> more browser load, and more load on the server.  (I'm not going into the old 
>> approach of having an iframe and the link reloads the iframe because iframes 
>> are tricky, and if you're showing a big table, it's most of the page 
>> anyway.)  Do be sure that your images, CSS files, and JavaScript files are 
>> set to encourage the browser and/or the network to cache them, but the HTML 
>> will load every time, and the URL will likely show the filter settings 
>> (though you can do things with cookies and/or session store, but you will 
>> surprise your users someday.
>> Load all the data in the first place, and use JavaScript in combination with 
>> CSS to hide the stuff that's filtered out.  If you go this way, do arrange 
>> to use CSS controlled by a class on a single containing element to control 
>> visibility, because doing big DOM modifications in JavaScript performs 
>> poorly.  This is the snappiest approach, but you have to have loaded 
>> everything, at cost of network and server load, even if you expect the user 
>> to filter later, and at the cost of RAM in the browser.  If the data's not 
>> that big, this is fine.  But if it's the catalog of a hardware chain or 
>> something else huge, you probably be doing it in pages.  Sometimes it's 
>> natural.  For example, I once did and event calendar for a school system.  I 
>> loaded a month at a time, and filtering within the month was peppy, but to 
>> go to a different month required a reload, and you couldn't show stuff from 
>> multiple months at one time.
>> Use an AJAX request to replace part of the DOM with filtered data.  (The 
>> iframe hack is very much like this.)  If the data is most of your page, this 
>> isn't much more light weight than option 1, but the user doesn't see the 
>> page reload, which seems to count for style points.
>> There are JavaScript "frameworks" (e.g. VueJS) that will help you with 2 and 
>> especially 3, but you have to learn how to use the framework, and how to 
>> connect it to Django.  Those are useful things to learn, but they're not 
>> overnight reads, and can have performance pitfalls.
>> 
>> Good luck, Bill
>> 
>>> On Wed, Feb 12, 2020 at 3:17 PM Phil Kauffman  wrote:
>>> Hello, I am struggling with trying to filter child objects based on parent 
>>> object selection on index.html (sites.html in example). On my sites.html, I 
>>> list the office sites and a button to click for each, upon clicking I want 
>>> to load the profile list for users only at that site, presently it's 
>>> loading all profiles for all sites, which I assume is because the profiles 
>>> are loaded statically no matter which button is clicked on sites.html.
>>> 
>>> I'm thinking I need a JS onclick event?
>>> 
>>> models.py:
>>> class Site(models.Model):
>>> 
>>> name = models.CharField(max_length=50)
>>> date = models.DateField()
>>> manager = models.CharField(max_length=50)
>>> 
>>> def save(self, *args, **kwargs):
>>> super(Site, self).save(*args, **kwargs)
>>>  
>>> class Profile(models.Model):
>>> Days = '1st'
>>> Mids = '2nd'
>>> Nights = '3rd'
>>> Work_Schedule_Choices = [
>>>   (Days, 'Day Shift'),
>>>   (Mids, 'Mid Shift'),
>>>   (Nights, 'Night Shift'),
>>> ]   
>>> sitename = models.ForeignKey(Site, on_delete=models.CASCADE)
>>> title = models.CharField(max_length=100)
>>> schedule = 
>>> models.CharField(max_length=3,choices=Work_Schedule_Choices,default=Days)
>>> totalusers = models.PositiveSmallIntegerField(default=1, 
>>> validators=[MinValueValidator(1), MaxValueValidator(50)])
>>> 
>>> 
>>> 
>>> views.py:
>>> def sites(request):
>>> sitelist = Site.objects.all()
>>> return render (request, 'App/sites.html', {'sitelist' : sitelist})
>>> 
>>> def sitedetail(request):
>>> site = Site.objects.filter()
>>> if request.method == 'GET':
>>> return render(request, 'App/site-detail.html', {'site': site, 
>>> 'profile_set': Profile.objects.all()})
>>> 
>>> 
>>> sites.html (index)
>>> {% extends 

Re: Django: how to make queries between 2 tables that are not related in the model?

2020-02-13 Thread maninder singh Kumar
You of course mean, no foreign key ?
Are the models pre written so no change can be made to them.

Sent from my iPad

> On 13-Feb-2020, at 2:58 PM, Jérôme Le Carrou  wrote:
> 
> Hi,
> 
> I have 2 models that are not related (maybe it should...)
> 
> I need to make a query that select all records of my table Stock WITH related 
> rows in Parametrage based on asp_sto_loc=asp_par_loc
> 
> Something like SQL: select * from pha_asp_sto left join pha_asp_par on 
> pha_asp_par.asp_par_loc=asp_sto_loc;
> 
> How can I make such a query in Django?
> I have see extra() but seems to be deprecated...
> Another option would be to use raw() but not recommended...
> 
> class Stock(models.Model):
> 
> asp_sto_cle = models.AutoField(primary_key=True)
> asp_sto_loc = models.CharField("Site concerned", max_length=10, 
> null=True, blank=True)
> asp_sto_pla = models.IntegerField("Quantity of placebos available", 
> null=True, blank=True,)
> asp_sto_asp = models.IntegerField("Quantity of aspirin available", 
> null=True, blank=True)
> 
> class Parametrage(models.Model):
> 
> asp_par_cle = models.AutoField(primary_key=True)
> asp_par_loc = models.CharField("Site concerned by settings", 
> max_length=10, null=True, blank=True)
> asp_par_ale = models.IntegerField("Site alert value for the site", 
> null=True, blank=True,)
> asp_par_con = models.IntegerField("Site confort value for the site", 
> null=True, blank=True,)
> 
> thanks for your help 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/029c93e0-4093-4a4f-bc99-b3af000c3c31%40googlegroups.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/90F33E3C-4554-44C9-BDBE-0AFCD8E46FD9%40gmail.com.


Re: Memcache

2020-02-12 Thread maninder singh Kumar
So memcache for caching is the advised way to go for it.
It involves setting up setting.py for memcache, you would have to work out
locations on the computer where it would be stored.  Also strongly
advisable, don't cache all your site, just the : difficult parts,
reusable parts.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Tue, Feb 11, 2020 at 10:38 PM Soumen Khatua 
wrote:

> Hi Folks,
> Actually I want to implement memcache service into my project but I don't
> know How to implement it with proper scalability. If anyone have any idea
> or code snippet, please share with me.
>
> Thank you
>
> Regards,
> Soumen
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPUw6WbsnhpajNaOFs1xd2f5%3DQ3wzqcRP2vXzrZxNShHPjY7bQ%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QzaL4mo_nYUEiL78wWfpKOCXf6K1jDSq--sxsRJfJPyA%40mail.gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
I had the same problem on apache after running collect static

Sent from my iPad

> On 11-Feb-2020, at 1:01 AM, Alessandro D' Oronzo  wrote:
> 
> Hi, it is a default admin page.
> 
> Il giorno lun 10 feb 2020 alle 20:26 maninder singh Kumar 
>  ha scritto:
>> Is it just one css or all css ?
>> 
>>  
>> 
>> 
>>  
>> Maninder Kumar
>> about.me/maninder.s.kumar
>> 
>>
>>  
>> 
>> 
>>> On Mon, Feb 10, 2020 at 7:08 PM Rishabh Gupta  
>>> wrote:
>>> I have problem with CSS .CSS is not loading from static folder >
>>> Help me So i help others for same
>>> 
>>> Thanks
>>> Rishabh
>>> 
>>>> On Mon, Feb 10, 2020 at 4:58 PM maninder singh Kumar 
>>>>  wrote:
>>>> Couldn't be anything in the tracebacks !
>>>>  
>>>> 
>>>> 
>>>>
>>>> Maninder Kumar
>>>> about.me/maninder.s.kumar
>>>> 
>>>>
>>>>  
>>>> 
>>>> 
>>>>> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95  
>>>>> wrote:
>>>>> Also, traceback would be awesome
>>>>> 
>>>>>> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo 
>>>>>>  wrote:
>>>>>> Hi everyone,
>>>>>> I have a problem with local web server and admin page.
>>>>>> When I try to connect to admin page the web server of Django close 
>>>>>> without errors.
>>>>>> Do you have any ideas?
>>>>>> 
>>>>>> Thanks so much!
>>>>>> 
>>>>>> -- 
>>>>>> 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 discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/django-users/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.com.
>>>>> 
>>>>> -- 
>>>>> 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 discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/django-users/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%40mail.gmail.com.
>>>> 
>>>> -- 
>>>> 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 discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-users/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%40mail.gmail.com.
>>> 
>>> -- 
>>> 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 discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CACpDem0APGUuPJ_GhPkkqCvapH_2%2BiVDDacVK5W-wrbPEvj9Hg%40mail.gmail.com.
>> 
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CABOHK3T_Dmr%2BeAQ0vEg4LeTXJuFHuJsSSWQ6RQATw7Sdb3sF9A%40mail.gmail.com.
> -- 
> Alessandro D' Oronzo.
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAJUwmOtSra4OAnHcyE%3D1yekCQ2%3DHfZjpQG5yG%2BNtfT_EQwg5kA%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/36634F0A-A5B0-4C57-B63B-7D335C825705%40gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
Is it just one css or all css ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Mon, Feb 10, 2020 at 7:08 PM Rishabh Gupta 
wrote:

> I have problem with CSS .CSS is not loading from static folder >
> Help me So i help others for same
>
> Thanks
> Rishabh
>
> On Mon, Feb 10, 2020 at 4:58 PM maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
>> Couldn't be anything in the tracebacks !
>>
>>
>> [image: --]
>>
>> Maninder Kumar
>> [image: http://]about.me/maninder.s.kumar
>> <http://about.me/maninder.s.kumar?promo=email_sig>
>>
>>
>>
>>
>> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 
>> wrote:
>>
>>> Also, traceback would be awesome
>>>
>>> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo <
>>> doronz...@gmail.com> wrote:
>>>
>>>> Hi everyone,
>>>> I have a problem with local web server and admin page.
>>>> When I try to connect to admin page the web server of Django close
>>>> without errors.
>>>> Do you have any ideas?
>>>>
>>>> Thanks so much!
>>>>
>>>> --
>>>> 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 discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.com
>>>> .
>>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACpDem0APGUuPJ_GhPkkqCvapH_2%2BiVDDacVK5W-wrbPEvj9Hg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACpDem0APGUuPJ_GhPkkqCvapH_2%2BiVDDacVK5W-wrbPEvj9Hg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3T_Dmr%2BeAQ0vEg4LeTXJuFHuJsSSWQ6RQATw7Sdb3sF9A%40mail.gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
Good job then I was wrong


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Mon, Feb 10, 2020 at 6:14 PM Alessandro D' Oronzo 
wrote:

> I have resolve it. The problem is version of python. Upgrade to 3.8 and I
> have fix the problem
>
> Il giorno lun 10 feb 2020 alle 12:28 maninder singh Kumar <
> maninder.s.ku...@gmail.com> ha scritto:
>
>> Couldn't be anything in the tracebacks !
>>
>>
>> [image: --]
>>
>> Maninder Kumar
>> [image: http://]about.me/maninder.s.kumar
>> <http://about.me/maninder.s.kumar?promo=email_sig>
>>
>>
>>
>>
>> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 
>> wrote:
>>
>>> Also, traceback would be awesome
>>>
>>> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo <
>>> doronz...@gmail.com> wrote:
>>>
>>>> Hi everyone,
>>>> I have a problem with local web server and admin page.
>>>> When I try to connect to admin page the web server of Django close
>>>> without errors.
>>>> Do you have any ideas?
>>>>
>>>> Thanks so much!
>>>>
>>>> --
>>>> 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 discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.com
>>>> .
>>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> Alessandro D' Oronzo.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJUwmOtoe5FAE7keW5n7-Z%3DSuj6xG-tVOLVZerJBfchaFc1BqA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJUwmOtoe5FAE7keW5n7-Z%3DSuj6xG-tVOLVZerJBfchaFc1BqA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Qeb%2Bu3DUYPGUx%2BgTTRWL_SO1JB1pTUPSu72qPCMeGT6g%40mail.gmail.com.


Re: not inserted registeration form.

2020-02-10 Thread maninder singh Kumar
Your views.py needs to be thus :

if request.method = POST:
"Do something"
else:
form = CreateUserForm()


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Feb 7, 2020 at 12:34 PM nrupesh08  wrote:

> hi,
> why not inserted registration. their is no error shows. plese tell how to
> see any error? once check my screeshots
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e74c4439-9b17-49fd-a888-cd2abfbcdfd6%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Q52PZRxpwDZ6m%3D%2BMeE83SOqLYr7g5MPR7jfre8g35wWQ%40mail.gmail.com.


Re: Key Error :access_token While requesting access token using windows Outlook api token url

2020-02-10 Thread maninder singh Kumar
Perhaps urls.py


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sat, Feb 8, 2020 at 12:31 AM onlinejudge95 
wrote:

> Firstly, do not ever share any of your personal information over a mailing
> list. You just exposed your token and auth_code to the public domain.
>
> Secondly, you need to provide more context, you said an error came up but
> did not provide any insight into the code you are executing.
>
> On Fri, Feb 7, 2020 at 7:15 PM Aakash Verma <4k45hr0ck5...@gmail.com>
> wrote:
>
>> Below is the Traceback
>>
>> [07/Feb/2020 13:15:44] "GET
>> /tutorial/gettoken?code=M75b5bb08-f43a-3749-bcd6-bdc1595306d9 HTTP/1.1"
>> 301 0
>> Internal Server Error: /tutorial/gettoken/
>> Traceback (most recent call last):
>>   File
>> "C:\Users\lenovo\Desktop\myapi\v\lib\site-packages\django\core\handlers\exception.py"
>> , line 34, in inner
>> response = get_response(request)
>>   File
>> "C:\Users\lenovo\Desktop\myapi\v\lib\site-packages\django\core\handlers\base.py"
>> , line 115, in _get_response
>> response = self.process_exception_by_middleware(e, request)
>>   File
>> "C:\Users\lenovo\Desktop\myapi\v\lib\site-packages\django\core\handlers\base.py"
>> , line 113, in _get_response
>> response = wrapped_callback(request, *callback_args, **
>> callback_kwargs)
>>   File "C:\Users\lenovo\Desktop\myapi\python_tutorial\tutorial\views.py",
>> line 17, in gettoken
>> access_token = token['access_token']Below is th Trace back
>> KeyError: 'access_token'
>>
>>
>> I  was Following this tutorial
>> https://docs.microsoft.com/en-us/outlook/rest/python-tutorial  and had
>> an issue of acces_token , Can anyone  help me how to solve that ?
>> I have double checked for every line of my code and done with checking
>> redirect_uri also , It would be grateful of you if you can help .Thanks .
>> Checked StackOverFlow also ,it seems like there is no relevant answer for
>> this is the response error i am getting while requesting for acces_token
>>
>> auth_code
>>
>> 'M75b5bb08-f43a-3749-bcd6-bdc1595306d9'
>>
>> redirect_uri
>>
>> 'http://localhost:8000/tutorial/gettoken/'
>>
>> request
>>
>> > '/tutorial/gettoken/?code=M75b5bb08-f43a-3749-bcd6-bdc1595306d9'>
>>
>> token
>>
>> {'correlation_id': 'b7bbadc7-9031-419c-8e5e-2be3fddfbf22',
>>  'error': 'invalid_client',
>>  'error_codes': [50011],
>>  'error_description': 'AADSTS50011: The reply URL specified in the request '
>>   'does not match the reply URLs configured for the '
>>   "application: '38ae3415-e1fb-4829-8381-396fbeee2230'. "
>>   'More details: Reply address did not match because '
>>   'requested address did not have a trailing slash.\r\n'
>>   'Trace ID: 48237da8-3830-488c-bd49-e081435a6700\r\n'
>>   'Correlation ID: 
>> b7bbadc7-9031-419c-8e5e-2be3fddfbf22\r\n'
>>   'Timestamp: 2020-02-07 07:45:44Z',
>>  'error_uri': 'https://login.microsoftonline.com/error?code=50011',
>>  'timestamp': '2020-02-07 07:45:44Z',
>>  'trace_id': '48237da8-3830-488c-bd49-e081435a6700'}
>>
>>
>> But the thing is I have thoroughly checked my code and ithere seems no
>> error . I have been getting this error since last night ..Please HELP if
>> possible
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/d7e0ca1b-9c37-4c52-999a-548454caaf20%40googlegroups.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAD%3DM5eQMEYNapt%2BzXgT%3DSEY2qqq9af_5bnZvAfBq0YdFAeNmXg%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SNOKqrZcBJ596tvEZOjihNU79%3DPTKWDyiFwNg%2BYjrVqg%40mail.gmail.com.


Re: Regarding Summer internship opportunities

2020-02-10 Thread maninder singh Kumar
We could start a group of programmers joining to create separate modules.
Right now I am working on one module


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Mon, Feb 10, 2020 at 5:09 PM N Rupesh  wrote:

> i am interested to join. actually, present i am learning django. and some
> confusion in forms. so, please accept my invitation.
> thank you
>
>
> On Mon, Feb 10, 2020 at 5:03 PM maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
>> Hi ankit,
>>
>> I wonder if you would be interested in a django project involving :
>> 1.  AI CV makers
>> 2.  Other HR related products.
>>
>>
>> [image: --]
>>
>> Maninder Kumar
>> [image: http://]about.me/maninder.s.kumar
>> <http://about.me/maninder.s.kumar?promo=email_sig>
>>
>>
>>
>>
>> On Mon, Feb 10, 2020 at 2:43 AM Anupriya Nishad 
>> wrote:
>>
>>> My name is Anupriya Nishad and I’m a third-year B.Tech student at the
>>> Madan Mohan Malaviya University of Technology, Gorakhpur.
>>> I am extremely interested in doing an internship in the following fields-
>>> 1.Web Development using Django
>>> 2. Machine Learning
>>> 3.Python
>>>
>>> Please let me know if there is any internship opportunity.
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAGcPrqSj4pg46b4VdHm7Lu7Z1gbQSNJ1G2q5R2B0kb3eSFcTMA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAGcPrqSj4pg46b4VdHm7Lu7Z1gbQSNJ1G2q5R2B0kb3eSFcTMA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABOHK3SJdGAMR7s_dKoixQjJBT5xGeiAoj_6_7gUqLFDeuZ-dQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CABOHK3SJdGAMR7s_dKoixQjJBT5xGeiAoj_6_7gUqLFDeuZ-dQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJTpUz%3DHbaspJEYgLYoLYZv%3DEFFnzVXVYwreXPSByDrfMwpEwg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJTpUz%3DHbaspJEYgLYoLYZv%3DEFFnzVXVYwreXPSByDrfMwpEwg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TwxtwfgiiyzzKFtNbz2x78NJTpoNiSC1NELHuYV28pXw%40mail.gmail.com.


Re: Regarding Summer internship opportunities

2020-02-10 Thread maninder singh Kumar
Hi ankit,

I wonder if you would be interested in a django project involving :
1.  AI CV makers
2.  Other HR related products.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Feb 10, 2020 at 2:43 AM Anupriya Nishad 
wrote:

> My name is Anupriya Nishad and I’m a third-year B.Tech student at the
> Madan Mohan Malaviya University of Technology, Gorakhpur.
> I am extremely interested in doing an internship in the following fields-
> 1.Web Development using Django
> 2. Machine Learning
> 3.Python
>
> Please let me know if there is any internship opportunity.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGcPrqSj4pg46b4VdHm7Lu7Z1gbQSNJ1G2q5R2B0kb3eSFcTMA%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SJdGAMR7s_dKoixQjJBT5xGeiAoj_6_7gUqLFDeuZ-dQ%40mail.gmail.com.


Re: to add counter to an object of a table

2020-02-10 Thread maninder singh Kumar
You would obviously want a counter to use in the template.  And I presume a
for loop will not do ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Feb 10, 2020 at 2:33 PM Bruckner de Villiers <
bruckner.devilli...@gmail.com> wrote:

> Brajesh,
>
> I presume that you want the counter to auto-increment.  The gurus are
> recommending AutoField, but I can’t get it to work yet and the Django docs
> are a bit vague on the subect.
>
> Good luck.
>
>
>
> Bruckner de Villiers
>
> 083 625 1086
>
>
>
> *From: * on behalf of BRAJESH KUMAR <
> brajesh.cal...@gmail.com>
> *Reply to: *
> *Date: *Sunday, 09 February 2020 at 20:45
> *To: *"django-users@googlegroups.com" 
> *Subject: *to add counter to an object of a table
>
>
>
> Hi ,
>
> I have a product details db class with few details for each object of that
> class, need help to add a counter.
>
>
>
> Thanks,
>
> Brajesh
>
>
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5e405315.1c69fb81.6e215.a4ec%40mx.google.com
> 
> .
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3467A551-64FD-4D20-9174-3C4667A1224B%40gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3RmmiGw5aey4CAdvsoj8d2iqoj%3DED2RxZa8WD%3Dyq7mRpQ%40mail.gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
Couldn't be anything in the tracebacks !


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 
wrote:

> Also, traceback would be awesome
>
> On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo 
> wrote:
>
>> Hi everyone,
>> I have a problem with local web server and admin page.
>> When I try to connect to admin page the web server of Django close
>> without errors.
>> Do you have any ideas?
>>
>> Thanks so much!
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.com
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAD%3DM5eQZY5oOp-9p7oxSOG_Y8fVEiZDEaDHBqpzQfo8%2BfpfwxQ%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3S37RwQtXQijVzsj_c7iwqEobKonNnCddFWVeJ%2BDMzkXQ%40mail.gmail.com.


Re: Problem with Admin Page

2020-02-10 Thread maninder singh Kumar
My guess is you have a problem with your browser !


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Feb 10, 2020 at 12:09 AM Alessandro D' Oronzo 
wrote:

> Hi everyone,
> I have a problem with local web server and admin page.
> When I try to connect to admin page the web server of Django close without
> errors.
> Do you have any ideas?
>
> Thanks so much!
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/DB0F065D-5D63-438D-B5AA-DBFB05B28A54%40gmail.com
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SXJV%2Bw-R70jf1PgiP%2BDztMTu%2BSxAOqTyrGVLtKE7CT8Q%40mail.gmail.com.


Re: Re: Error with filter queryset

2020-02-09 Thread maninder singh Kumar
have you tried "OneToOneField" ?
I am wondering about a many to one field to User


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Feb 10, 2020 at 12:01 AM BRAJESH KUMAR 
wrote:

> I have a local host website working with some page showing few details of
> one of many products with a data associated for usage like zoom car rental.
>
>
>
> Facing issues while trying to add a counter and have it updated by day.
>
>
>
> Eg: if I have a product a available 10 units for next 10 days and it gets
> booked for one day 3 units, the counter should update.
>
>
>
> Need help for the same.
>
>
>
> Thanks,
>
> Brajesh
>
>
>
> Sent from Mail  for
> Windows 10
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5e404fcb.1c69fb81.c5c43.951d%40mx.google.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QUBBah9f%2BoSRD2Ckw5J93EROExeyjjeweG3uQaQSVaGg%40mail.gmail.com.


Re: Lots of errors after deploying and going live

2020-02-06 Thread maninder singh Kumar
Great answer Mike !


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Wed, Feb 5, 2020 at 4:19 AM Mike Dewhirst  wrote:

> Dave
>
> You are absolutely right. Django does go smoothly on the local machine.
> However, if you relocate that exact smoothness to a different
> environment there will definitely be some jagged edges to contend with.
>
> I'm sure you remember tweaking things to achieve local smoothity. You
> will have to do precisely the same sorts of things for your production
> environment.
>
> The trick is to abstract everything which interfaces with the
> environment and (in my case) write little functions to fetch the
> required bits and pieces or adjust bits and pieces of the
> staging/production environment to suit.
>
> The most likely cause of your problems will be different locations for
> static files between here and there. Another cause might be different
> credentials for accessing the database here versus there. Maybe you have
> done the right thing and kept all secrets out of your repo and thus you
> need to find a way to use the correct secret in each location.
>
> Perhaps you are using different versions of Python or Django itself or
> one or more of your supporting apps/libraries is different in the other
> environment?
>
> There are ways and means of keeping things totally smooth in any
> combination of environments but you'll have to be a bit more specific
> with your questions and requests.
>
> Cheers
>
> Mike
>
>
> On 4/02/2020 9:36 pm, Dave Ko wrote:
> > Hi guys, so this is a very general post, I have been working on a
> > django blog following Corey Schafer's Django tutorial.
> >
> > Everything went smoothly on local machine, but once I deployed it, I
> > am having all kinds of troubles.
> > From password_reset (still not solved) to uploading image ran into
> > error of register_open() missing factory, all of the troubles didn't
> > occur on local machine.
> >
> > I had some experience with expressjs development, there were no
> > difference before and after deploy.
> > As for Django, there are so many errors I couldn't find the answer
> > including here and stackoverflow, have you guys face similar situation?
> >
> > here is my git repository, please have a look and point out the
> > problems i have https://github.com/koloyyee/roasitas
> > --
> > 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 discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-users/b0066211-a642-4e64-9728-55a824930b78%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/django-users/b0066211-a642-4e64-9728-55a824930b78%40googlegroups.com?utm_medium=email_source=footer
> >.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b9085dcc-296d-79c1-41ef-098d5ad8fa60%40dewhirst.com.au
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3RWL0Ft1rY3%2Bj_KL%3DYvp27qMmWp9spFZeyE5oS_tSD1Mw%40mail.gmail.com.


Re: contrib.sites Admin problem

2020-02-06 Thread maninder singh Kumar
I figure that since only one kind of users, namely super or admin exist in
django, it has got to be in the permissions.  As staff items are not
objects.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Wed, Feb 5, 2020 at 7:01 AM Mike Dewhirst  wrote:

> On 4/02/2020 7:00 pm, Mike Dewhirst wrote:
> > Tomorrow I'm going to examine contenttype permissions. Maybe that's
> > where to hide things.
>
> Yes indeed. Foot in mouth again. Removing view permissions to site
> models drops it from the Admin.
>
> Thank you Ori and  Maninder for taking time - sorry to bother you
>
> Mike
>
> >
> > Back in the am
> >
> > Cheers
> >
> > Mike
> >
> > On 4/02/2020 6:23 pm, Mike Dewhirst wrote:
> >> On 4/02/2020 5:47 pm,או רי wrote:
> >>> Did you try `django_admin.site.unregister(Site)` before you register
> >>> Site with your own admin?
> >>
> >> Yes.
> >>
> >> I have tried lots of things but I think I'm missing something very
> >> basic. It must begin in settings.INSTALLED_APPS somehow. This is how
> >> it is currently sitting:
> >>
> >> #settings.py
> >> INSTALLED_APPS = [
> >> ...
> >> #"django.contrib.sites",
> >> sites,
> >> ...
> >> ]
> >>
> >> #/sites/__init__.py
> >> from django.contrib.sites import *
> >>
> >> #/sites/admin.py
> >> from django.contrib import admin
> >> from .models import Site
> >>
> >> django.admin.site.unregister(Site)
> >>
> >> class SiteAdmin(admin.ModelAdmin):
> >> list_display = ('domain', 'name')
> >> search_fields = ('domain', 'name')
> >>
> >> def has_view_permission(self, request=None, obj=None):
> >> return False# request.user.is_superuser
> >>
> >> admin.site.register(Site, SiteAdmin)
> >>
> >> That "return False" line works properly when monkey-patching
> >> contrib/sites/admin.py
> >>
> >> Mike
> >>
> >>>
> >>> אורי
> >>> u...@speedy.net 
> >>>
> >>>
> >>> On Tue, Feb 4, 2020 at 7:56 AM Mike Dewhirst  >>> > wrote:
> >>>
> >>> How do I control contrib.sites in the Admin?
> >>>
> >>> I want to make it invisible to everyone except the superuser.
> >>>
> >>> I have tried - inexpertly - to hijack the sites app in my own
> >>> project
> >>> but it stubbornly insists on using its own admin.py
> >>>
> >>> Thanks for switching on any light bulbs
> >>>
> >>> Cheers
> >>>
> >>> Mike
> >>>
> >>> -- 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 discussion on the web visit
> >>>
> https://groups.google.com/d/msgid/django-users/9eee993a-98d0-fa77-9e92-a8bd447af37d%40dewhirst.com.au.
>
> >>>
> >>>
> >>> --
> >>> 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 discussion on the web visit
> >>>
> https://groups.google.com/d/msgid/django-users/CABD5YeHi-N1wmz5buJgUEMfqRET5U6ZuFnSsOFSWp7iUOQWgjg%40mail.gmail.com
> >>> <
> https://groups.google.com/d/msgid/django-users/CABD5YeHi-N1wmz5buJgUEMfqRET5U6ZuFnSsOFSWp7iUOQWgjg%40mail.gmail.com?utm_medium=email_source=footer>.
>
> >>>
> >>
> >
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b78e430d-23ec-c6bf-30b3-65dae9396bc5%40dewhirst.com.au
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3T1dtCWcZ2hffyzpq60Msc8D90HR2hcwrwTHmDtg9HnDw%40mail.gmail.com.


Re: Django local host connection aborted

2020-02-06 Thread maninder singh Kumar
This is straight of the home page ?
   Is the server running ?
   Do you have the apps installed?
   Any other info you could provide !


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Wed, Feb 5, 2020 at 6:00 PM yazan bader  wrote:

>  am having new issue when running Django localhost 127.0.0.1:8000 as
> connection getting aborted ,this is new for me as I am working with Django
> from 3 month and cant find solution for it.
>
> below is the Exception i got:
>
> Exception happened during processing of request from ('127.0.0.1', 
> 50501)Traceback (most recent call last):
>   File "C:\Users\Yazan 
> Bader\AppData\Local\Programs\Python\Python37\lib\socketserver.py", line 650, 
> in process_request_thread
> self.finish_request(request, client_address)
>   File "C:\Users\Yazan 
> Bader\AppData\Local\Programs\Python\Python37\lib\socketserver.py", line 360, 
> in finish_request
> self.RequestHandlerClass(request, client_address, self)
>   File "C:\Users\Yazan 
> Bader\AppData\Local\Programs\Python\Python37\lib\socketserver.py", line 720, 
> in __init__
> self.handle()
>   File "C:\Users\Yazan 
> Bader\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\servers\basehttp.py",
>  line 174, in handle
> self.handle_one_request()
>   File "C:\Users\Yazan 
> Bader\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\servers\basehttp.py",
>  line 182, in handle_one_request
> self.raw_requestline = self.rfile.readline(65537)
>   File "C:\Users\Yazan 
> Bader\AppData\Local\Programs\Python\Python37\lib\socket.py", line 589, in 
> readinto
> return self._sock.recv_into(b)ConnectionAbortedError: [WinError 10053] An 
> established connection was aborted by the software in your host machine
>
> any help pls?
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0812e223-c9ed-4836-856f-1406606f1234%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TQW%3D%2BJz6CcdYVGM7fj5rgG7RYK3HeU-Fe2eZMewtZ9OQ%40mail.gmail.com.


Re: django registration error

2020-02-05 Thread maninder singh Kumar
Are you using mutiple databases and perhaps django is looking in the wrong
place for auth_user ?
could you post the entire error and your settings.py file


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Wed, Feb 5, 2020 at 2:18 PM nrupesh08  wrote:

> [image: error.png]
>
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f1085c52-43ca-4ab4-9758-7e9d971241a4%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3REhv6Nrt7zz3_rDz7YjtnTi3-8X0oiEM%2BXcwUo0LXqYA%40mail.gmail.com.


Re: contrib.sites Admin problem

2020-02-03 Thread maninder singh Kumar
I believe the django templates used for admin are pretty good.  Are they as 
good as they claim ?

Sent from my iPad

> On 04-Feb-2020, at 12:17 PM, אורי  wrote:
> 
> Did you try `django_admin.site.unregister(Site)` before you register Site 
> with your own admin?
> 
> אורי
> u...@speedy.net
> 
> 
>> On Tue, Feb 4, 2020 at 7:56 AM Mike Dewhirst  wrote:
>> How do I control contrib.sites in the Admin?
>> 
>> I want to make it invisible to everyone except the superuser.
>> 
>> I have tried - inexpertly - to hijack the sites app in my own project 
>> but it stubbornly insists on using its own admin.py
>> 
>> Thanks for switching on any light bulbs
>> 
>> Cheers
>> 
>> Mike
>> 
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/9eee993a-98d0-fa77-9e92-a8bd447af37d%40dewhirst.com.au.
> 
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CABD5YeHi-N1wmz5buJgUEMfqRET5U6ZuFnSsOFSWp7iUOQWgjg%40mail.gmail.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7F9FE9D3-8A04-46C8-8E71-A1D5A716A712%40gmail.com.


Re: Can't find image files

2020-01-31 Thread maninder singh Kumar
When you load files to static, it loads to a common static location.  That 
is the way you would want it to be.  Recommended read django docs.

regs

On Friday, January 31, 2020 at 8:39:23 PM UTC+5:30, Dick Arnold wrote:
>
> Didn't stay working for long.  Needed one more change.
>
> the src also needs the application folder before the image file name.
>
>   (contacts is 
> the name of my applications folder.)
>
> On Monday, January 27, 2020 at 6:52:06 PM UTC-6, Dick Arnold wrote:
>>
>> My nice, new Django application is going along fairly well,  although I 
>> have run into a couple of roadblocks and need some help. The first problem 
>> is my HTML > statement:
>>
>> 
>>
>> Here's the error message I get on my terminal (command prompt) window:
>>
>> Not Found: /GAW.jpg
>> [25/Jan/2020 11:51:50] "GET /GAW.jpg HTTP/1.1" 404 3481
>>
>> I read every thing I could find and most of them tell me that it is in a 
>> location relative to the "current folder", but I can find nothing that 
>> explains what is meant  by "current".  I thought it might be where my 
>> terminal prompt comes from.   It's in the highest level project folder. 
>> Tried that and still no luck.
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/be0bb28b-b299-4897-a717-d843347ad7cf%40googlegroups.com.


Re: want to create multiple tables for the same app in Django

2020-01-30 Thread maninder singh Kumar
Write as many models for tables reqd in db
What is the problem you are facing ?
Could it be the tables don't appear in all HTML!

Sent from my iPad

> On 29-Jan-2020, at 9:32 PM, Pawan Kumar  wrote:
> 
> Hi Team,
> 
> I want to create multiple tables for the same app in Django & data from these 
> tables is required to be shown in multiple html pages . 
> My existing table using models.py is  ...
> 
> 
> from django.db import models
> # Create your models here.
> 
> class IAM(models.Model):
> node = models.CharField(max_length=50)
> status = models.CharField(max_length=50)
> component = models.CharField(max_length=100)
> dbversion = models.CharField(max_length=50)
> version_no = models.CharField(max_length=50)
> dbversion = models.CharField(max_length=50)
> def __str__(self):
> return self.component
> -- 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/4a302377-62eb-4de7-a451-caf58f46d41d%40googlegroups.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/BD49F25F-2012-4817-A890-385D89B9C372%40gmail.com.


Re: Hosting a django website

2020-01-28 Thread maninder singh Kumar
Best to go with linode ! A shared hosting does not offer any support for
root access.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Jan 26, 2020 at 12:12 AM Perceval Maturure 
wrote:

> dear all
> 1.what is the best way to host a django website on a shared host that you
> are not sudo?
> 2.is this possible?
> 3. any ideas?
>
> --
> *Perceval Maturure*
>
> *083 303 9423*
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFZtZmBxd2%2Bd2-xxRMZGkmMjM9JhDCD%3D_Zwnsn8EZ-%3Dfi9bC5A%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Tbs1F4GWaWTVR28HkJYSWMagkUeG%2BtdW9TdPZSQPaA8g%40mail.gmail.com.


Re: How to render data from populated database (no user input) to html

2020-01-28 Thread maninder singh Kumar

{% csrf_token %}


views
--

formView (request):
 if request.method == "GET" and 'q' in request.method:
  -
 your view code
---
return render(request, template_name, context = {'text' :
*database_text,
... . ., ., , ,}*

HTML (use bootstrap if possible)
---

  

* Your columns for row 1 <*/div>
*  <*div class = "col-sm4">
  
  
  
  
and another row here

if you work it out on say : text = Content.objects.filter(*"your query")*

then you could loop based on this in your HTML:

{% for t in text %}
{{t.content_Content}}
{% endfor %}


Hope it helps !

regards



[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Tue, Jan 28, 2020 at 3:22 PM Suraj  wrote:

> On Monday, January 20, 2020 at 11:59:01 AM UTC+5:30, nmax...@gmail.com
> wrote:
>>
>> I would like to render data from a populated database into a HTML
>> (homepage_view).  I am not sure if I create a  GET method from the
>> database (and if so how) or use (fix) the code listed below.
>>
>> The ultimate outcome is to have a table with three columns (models.py)
>> with six rows.  Note:  In the home.html (below), I did hardcode the headers
>> but tried a "for loop" to populate the data.
>>
>
>> I am using Python 3.8, Django 2.2, Windows 10, sqlite3 and bootstrap.
>>
>> Please any help would be truly appreciated.
>>
>
> You can use django-tables2
>  to create tables from
> model data.
> It is very simple by using django-tables2.
>
> --
> Suraj
> https://hacksj4u.wordpress.com
> https://github.com/SurajDadral
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e9118353-de5a-48db-a281-053c545946e2%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3R7j%2BGKUmUGqA9B%2Bf%3Dy8nxsL44CshWWqGjOXUhWWmidxQ%40mail.gmail.com.


Re: Case-insensitve unique = True

2020-01-23 Thread maninder singh Kumar
I wonder at that.  When I develop a model does the CharField have to be
specified case insensitive at that level.

For instance :  A search can be case insensitive and iexact is the best way.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Jan 24, 2020 at 8:06 AM Mike Dewhirst  wrote:

> What is the best way to ensure a charfield is case-insensitively unique?
>
> Currently I'm using a query with __iexact=True but I wonder whether
> there is a better way.
>
> Thanks
>
> Mike
>
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/49ae5424-f079-d4eb-bc6d-aa5231efa773%40dewhirst.com.au
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3RTRmRwyMsgdryp50vVbBeopqBcu2CCQdrY9aJySjwkpg%40mail.gmail.com.


Re: Django and MySQL NDB Cluster

2020-01-22 Thread maninder singh Kumar
Could it be the server doesn't have the database ?



[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Thu, Jan 23, 2020 at 1:49 AM Victor Guimarães Nunes <
nunessvict...@gmail.com> wrote:

> Hi,
>
> I'm having some trouble setting up a Django project with a MySQL NDB
> Cluster. I found I had to set the storage engine on
> DATABASES['default']['OPTIONS'] and I did it.
>
> DATABASES = {
> 'default': config('DATABASE_URL', cast=db_url)
> }
>
> # Check if mysql database engine is NDBCLUSTER
> if config('USE_NDBCLUSTER', cast=bool, default=False):
> DATABASES['default'].update({
> 'OPTIONS': {
> 'init_command': 'SET default_storage_engine=NDBCLUSTER;',
> }
> })
>
> but almost always when I try to perform some write action on the database
> I get the following esception:
>
> OperationalError at /admin/auth/user/add/
>
> (1178, "The storage engine for the table doesn't support SAVEPOINT")
>
>
> I don't quite get what I supposed to do about once the cluster demands a
> NDBCLUSTER storage engine to work properly and I don't have any ideia of
> what is savepoints and where/how I can disabled it.
>
> Any thoughts about this issue?
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d3b6be1a-acb1-4543-b8f2-780b8ef5b62d%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TMfgoPNNr%2BAU_6UDdO6SjhAzMeTuvpu1E4BDrUyuCqqw%40mail.gmail.com.


Re: Tracking IP

2020-01-21 Thread maninder singh Kumar
You could request.hostname or request.path to get to the names.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Tue, Jan 21, 2020 at 5:27 PM Soumen Khatua 
wrote:

> Hi Folks,
>
> In my Django application I want to show IP address of users, Just like
> others financial websites. How I can do that using Django(of course it's
> should be free cost).
>
> Thank You in advance
>
> Regards,
> Soumen
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPUw6WZX_VEzB3jCR4DvOTUE08JXifr9todeHHUP29MumgrM2w%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3Qyxx5JCX5%2Bck3_JXdheEnqsjm1FbJ-bV%3Dwzqb7RUWZcg%40mail.gmail.com.


Re: some value for primary key

2020-01-21 Thread maninder singh Kumar
you could do that in the database with a mysql statement.


ALTER TABLE tbl AUTO_INCREMENT = ;

[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Wed, Jan 22, 2020 at 12:03 AM Soumen Khatua 
wrote:

> Hi Folks,
>
> I want to start my primary key from saome random number like: (onwards)
> but not from 1. How I can do that in django?
>
> Thank you in advance
>
> Regards,
> Soumen
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPUw6Wbrnst2pAkdCZp%2B2jd4etsYGE_o%2BBO%2BAc85TPeyG92a3A%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SAx5f5%3DUSKQoXisUytXfjHN2ZVKkFpFuerxvdrPh308A%40mail.gmail.com.


Re: Backward migration failing because of old dropped model

2020-01-21 Thread maninder singh Kumar
In your database there is a table called django_migrations.  Delete all
references in it to any other migration than the initial one.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Tue, Jan 21, 2020 at 1:37 AM Adrien Agnel  wrote:

> Hi everyone,
>
> This is my first post in this group so do not hesitate to ask for some
> more specific details if this is not enough. Django version is 2.2.9,
> Python 3.6.
>
>
> I'm facing an error when trying to migrate back the initial migration of a
> freshly installed new application 'billing'.
> The error message is the following one :
>
>> *ValueError: The field form.Form.ticket_description was declared with a
>> lazy reference to 'tickets.ticketdescription', but app 'tickets' doesn't
>> provide model 'ticketdescription'.*
>
>
> *However the model 'ticketdescription' has been dropped several month ago
> and is no longer present in my project*. Thus the part " app 'tickets'
> doesn't provide model 'ticketdescription' " is perfectly right, but I don't
> get why it is not managed by the migration of app 'tickets' which dropped
> the model 'ticketdescription'.
> The model 'ticketdescription' remains as a pending model of state apps in
> the migration executor, I would expect it to be removed.
>
> Until now, I could migrate backward other apps without any issue but after
> adding the app 'billing', which is not directly related to app 'tickets',
> it is not possible anymore.
>
>
>
> I don't know where to look at to fix this issue ? Could you help me
> debugging please ? This looks like a bug but I'm not sure !
>
> Best regards,
> Adrien
>
>
>
>
> Here is the full error trace :
>
> Traceback (most recent call last):
>>   File "manage.py", line 23, in 
>> execute_from_command_line(sys.argv)
>>   File
>> "[...]/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 381, in execute_from_command_line
>> utility.execute()
>>   File
>> "[...]/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 375, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "[...]/lib/python3.6/site-packages/django/core/management/base.py", line
>> 323, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "[...]/lib/python3.6/site-packages/django/core/management/base.py", line
>> 364, in execute
>> output = self.handle(*args, **options)
>>   File
>> "[...]/lib/python3.6/site-packages/django/core/management/base.py", line
>> 83, in wrapped
>> res = handle_func(*args, **kwargs)
>>   File
>> "[...]/lib/python3.6/site-packages/django/core/management/commands/migrate.py",
>> line 234, in handle
>> fake_initial=fake_initial,
>>   File
>> "[...]/lib/python3.6/site-packages/django/db/migrations/executor.py", line
>> 121, in migrate
>> state = self._migrate_all_backwards(plan, full_plan, fake=fake)
>>   File
>> "[...]/lib/python3.6/site-packages/django/db/migrations/executor.py", line
>> 173, in _migrate_all_backwards
>> for migration, _ in full_plan:
>>   File "[...]/lib/python3.6/site-packages/django/utils/functional.py",
>> line 80, in __get__
>> res = instance.__dict__[self.name] = self.func(instance)
>>   File "[...]/lib/python3.6/site-packages/django/db/migrations/state.py",
>> line 210, in apps
>> return StateApps(self.real_apps, self.models)
>>   File "[...]/lib/python3.6/site-packages/django/db/migrations/state.py",
>> line 280, in __init__
>> raise ValueError("\n".join(error.msg for error in errors))
>> ValueError: The field form.Form.ticket_description was declared with a
>> lazy reference to 'tickets.ticketdescription', but app 'tickets' doesn't
>> provide model 'ticketdescription'.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4f876052-71e5-4d25-9382-59d3c30d19f8%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3QtcD77ujM5-COCYkChntP8%3DvJgLs0C1kj_2aEKT0LDUQ%40mail.gmail.com.


Re: DjangoEveryDay. My practice website!

2020-01-20 Thread maninder singh Kumar
Did you do Jack's Practice Zone is Django too ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Jan 19, 2020 at 4:46 PM Jack Lin  wrote:

> Hi everyone. I'm doing #DjangoEveryday Challenge to myself.
> I set a goal for everyday and try to accomplish it. So I got practice and
> progress everyday :)
>
> I'm doing this for preparation of my resume. I'm looking for Django Job in
> Taiwan but CS is not my major.
> I want to share this with you guys!
>
> btw, I do a bit of develop journal on my Linkedin, too. so if you are
> interested on my progression, you can follow me on Linkedin!
>
> There is the website: Jack's Practice Zone
> 
> and this is my Linkedin
>  :)
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fc2e047e-d362-4110-b6c5-9853402b0120%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TxoLAJ0CkZ5jig%3DeNio%3Da6gOTvM6_k%2BLX%2B3JGzRNNbAQ%40mail.gmail.com.


Re: How to render data from populated database (no user input) to html

2020-01-19 Thread maninder singh Kumar
Your path is as follows :
urlpatterns = [
path('', views.homepage_view),

but your view file is def currentReps_view(request)
Make the change in the urls.py


]


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Jan 20, 2020 at 12:00 PM nmaxbe...@gmail.com 
wrote:

> I would like to render data from a populated database into a HTML
> (homepage_view).  I am not sure if I create a  GET method from the
> database (and if so how) or use (fix) the code listed below.
>
> The ultimate outcome is to have a table with three columns (models.py)
> with six rows.  Note:  In the home.html (below), I did hardcode the headers
> but tried a "for loop" to populate the data.
>
> I am using Python 3.8, Django 2.2, Windows 10, sqlite3 and bootstrap.
>
> Please any help would be truly appreciated.
>
> Steps I have taken:
>
> Relevant settings.py
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': os.path.join(BASE_DIR, 'db.sqlite3')
> },
>
> 'currRep' : {
> 'NAME': 'rep2.db',
> 'ENGINE': 'django.db.backends.sqlite3',
> },
>
> 'mainData' : {
> 'ENGINE' : 'django.db.backends.sqlite3',
> 'NAME' : 'KentuckyProject.db',
> },
>
>
> }
>
>
> *Models.py*
> from django.db import models
> class currRep(models.Model):
> Congressional_District = models.IntegerField()
> f_name = models.TextField()
> l_name = models.TextField()
>
> def __str__(self):
> return f'{self.Congressional_District} {self.f_name} {self.l_name}
> '
>
> INSTALLED_APPS = [
> 'accounts',
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> ]
>
> *urls.py (app)*
> from django.urls import path, include
> from django.contrib import admin
> from django.contrib.auth import login
> from django.conf.urls.static import static
>
>
> from . import views
>
>
> urlpatterns = [
> path('', views.homepage_view),
>
>
> ]
>
>
> *Views.py*
> from django.shortcuts import render
> from django.http import HttpResponse
> def currentReps_view(request):
> currResults = currRep.objects.all()
>
> return render(request, 'home.html', currResults)
>
> *Home.html*
> {% extends "base.html" %}
> from . import forms
> from . import views
> {% block currentReps %}
>
>
> 
> 
> Congressional_District
> f_name
> l_name
>
> 
> 
> 
> 
> {% for item in currReps %}
> {{ item.Congressional_District }}
> {{ item.f_name }}
> {{ item.l_name }}
>
> 
> {% endfor %}
>
> 
> 
> {% endblock currentReps %}
>
> Again, any assistance would be appreciated.  Thanks!
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d1f9303c-0c6e-4a7c-b3d5-77de8260f0d5%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TaKgxGuR_pAJ05mTsYjKiaNnnZfxXvzU__v%3DAE%2B3o5QQ%40mail.gmail.com.


Re: Django Lessons

2020-01-19 Thread maninder singh Kumar
Excellent work !


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Mon, Jan 20, 2020 at 1:26 AM Eugen Ciur  wrote:

> Hi everyone,
>
> I launched recently a new resource, django-lessons.com.
> 
> I target mostly intermediate django developers but newcomers might find it
> usefull as well.
> Although main focus is Django Web Framework, I will post a lot of info
> about devops ecosystem around django (production) and about python itself.
> I have an youtube channe
> l as well.
>
> What do you think?
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0437652e-7887-48f5-a9b8-f0e79bd16d1f%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3R48zoimXDkEPE-JY_ax%3DK1mKUvohzp70W7woBF%2BmnvaA%40mail.gmail.com.


Re: Django blog post not linking to detail.html page

2020-01-19 Thread maninder singh Kumar
I see you have put href as post.get_absolute_url
You could for instance use a relative path.  Put a page field in your model
Post, to refer to the html that the post will be on.
And then :
{% for text in post_list%}
{{text.content_Title}} 
{{text.content_Description}}
{% endfor %}

This ways you would always be able to keep track of your post pages.

Thi

[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Jan 19, 2020 at 9:56 PM amanda  wrote:

> Hello,
> I am new to Django, i follow a book : Django by Example 2. i install a
> blog, it show blog post list, but when i click post title, it does not go
> to post detail.html page.
> anyone can tell me where i can wrong?
> Thank you very much!
>
>
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2fb56c3c-6eb6-46c9-9162-548a65b3c781%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3RQnRor9fygmZo2%3DaB%3DgBtTGPZEe%3DsGTT74xs4ShY%2BYtQ%40mail.gmail.com.


Re: Role based access

2020-01-19 Thread maninder singh Kumar
Here's what you could do :

def requestView(request):



say :

first_query =.objects.values_list(‘name’, age’, ‘department’,
‘user’).filter(user__icontains = ‘user1’)


   second_query = .objects.values_list(‘name’, age’,
‘department’, ‘user’).filter(user__icontains = ‘user1’)



#the below part can be worked out using django docs
<https://docs.djangoproject.com/en/3.0/topics/auth/default/#user-objects>

---

  myuser.groups.set([group_list])

 view: *user.has_perm('.view_')*

*   ---*

*return render (request=request, template_name='template.html', context =
{text1 : first_query, text2 : second_query})*


*{{first_query.name <http://first_query.name>}}*







[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Sun, Jan 19, 2020 at 4:32 PM HULUGESH B  wrote:

> My use case is like this
>
>
>
> name
>
> age
>
> department
>
> user(manytomanyfiled)
>
> xyz
>
> 23
>
> cs
>
> user1
>
> abc
>
> 24
>
> ec
>
> user1
>
> pqr
>
> 25
>
> me
>
> user2
>
>
>
>
>
> Now my question is if user1 loged in means he has to see only
>
>
>
> name
>
> age
>
> department
>
> user(manytomanyfiled)
>
> xyz
>
> 23
>
> cs
>
> user1
>
> abc
>
> 24
>
> ec
>
> user1
>
>
>
> And if user2 login means
>
> name
>
> age
>
> department
>
> user(manytomanyfiled)
>
> pqr
>
> 25
>
> me
>
> user2
>
>
>
>
>
> Kindly let me know below explanation is serving my purpose?
>
>
>
> Best Regards,
>
> HULI
>
>
>
> *From: *maninder singh Kumar 
> *Sent: *Sunday, January 19, 2020 2:46 PM
> *To: *django-users@googlegroups.com
> *Subject: *Re: Role based access
>
>
>
> Django has an authentication model of :
>
> 1. Creating users
>
> 2. Assigning them permissions or group permissions
>
>
>
> Use Authenticate() to authenticate users.  Based on the assigned
> permissions they will have access to parts of your site.  Basically you
> create views and the objects in the views are available to users with
> permissions.  For example :
>
>
>
> def myview(request)
>
>  #My users database has a user
> 'Guy" with password "1234"
>
> myuser =
> users_Users.object.values("users_Name').filter(users_Name_starts_with =
> "Guy")
>
>  #Permissions for this object
> can be set.
>
> myuser.has_view_permission('foo.bar')
> myuser.has_add_permission('foo.bar')
>
> myuser.has_delete_permission('foo.bar')#where foo is the application
> and bar the model
>
> object_list = Content.objects.all()
>
>
>
>
>
>
>
>
> *Maninder Kumar*
>
> about.me/maninder.s.kumar
>
>
>
>
>
>
>
>
>
>
>
> On Sun, Jan 19, 2020 at 3:49 PM Doddahulugappa.B 
> wrote:
>
> Thank you for your response. Can you please Explain me how to do that..
>
>
>
> On Sun, Jan 19, 2020, 2:09 PM maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
> Could it be that there is a user from each department and each user in a
> department has a role ?
>
>
>
>
>
> *Maninder Kumar*
>
> about.me/maninder.s.kumar
>
>
>
>
>
>
>
>
>
>
>
> On Sun, Jan 19, 2020 at 3:04 PM Doddahulugappa.B 
> wrote:
>
> Hi team,
>
>
>
> How to make role based access in django. For ex.
>
>
>
> If employee names and their department in one table.
>
>
>
>  And also we assign department to user. With manytomany field.. So how can
> i display only the records of employees and their department which is
> assigned to the user.
>
>
>
> Kindly help..
>
>
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKfjjGpT_xeQaRqySC4SX_v2-aVOb7u5%2B9qoPhByQ8Wq2DM4ow%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKfjjGpT_xeQaRqySC4SX_v2-aVOb7u5%2B9qoPhByQ8Wq2DM4ow%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> --
> 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
>

Re: Role based access

2020-01-19 Thread maninder singh Kumar
it will work, it requires working out queries


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Sun, Jan 19, 2020 at 4:32 PM HULUGESH B  wrote:

> My use case is like this
>
>
>
> name
>
> age
>
> department
>
> user(manytomanyfiled)
>
> xyz
>
> 23
>
> cs
>
> user1
>
> abc
>
> 24
>
> ec
>
> user1
>
> pqr
>
> 25
>
> me
>
> user2
>
>
>
>
>
> Now my question is if user1 loged in means he has to see only
>
>
>
> name
>
> age
>
> department
>
> user(manytomanyfiled)
>
> xyz
>
> 23
>
> cs
>
> user1
>
> abc
>
> 24
>
> ec
>
> user1
>
>
>
> And if user2 login means
>
> name
>
> age
>
> department
>
> user(manytomanyfiled)
>
> pqr
>
> 25
>
> me
>
> user2
>
>
>
>
>
> Kindly let me know below explanation is serving my purpose?
>
>
>
> Best Regards,
>
> HULI
>
>
>
> *From: *maninder singh Kumar 
> *Sent: *Sunday, January 19, 2020 2:46 PM
> *To: *django-users@googlegroups.com
> *Subject: *Re: Role based access
>
>
>
> Django has an authentication model of :
>
> 1. Creating users
>
> 2. Assigning them permissions or group permissions
>
>
>
> Use Authenticate() to authenticate users.  Based on the assigned
> permissions they will have access to parts of your site.  Basically you
> create views and the objects in the views are available to users with
> permissions.  For example :
>
>
>
> def myview(request)
>
>  #My users database has a user
> 'Guy" with password "1234"
>
> myuser =
> users_Users.object.values("users_Name').filter(users_Name_starts_with =
> "Guy")
>
>  #Permissions for this object
> can be set.
>
> myuser.has_view_permission('foo.bar')
> myuser.has_add_permission('foo.bar')
>
> myuser.has_delete_permission('foo.bar')#where foo is the application
> and bar the model
>
> object_list = Content.objects.all()
>
>
>
>
>
>
>
>
> *Maninder Kumar*
>
> about.me/maninder.s.kumar
>
>
>
>
>
>
>
>
>
>
>
> On Sun, Jan 19, 2020 at 3:49 PM Doddahulugappa.B 
> wrote:
>
> Thank you for your response. Can you please Explain me how to do that..
>
>
>
> On Sun, Jan 19, 2020, 2:09 PM maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
> Could it be that there is a user from each department and each user in a
> department has a role ?
>
>
>
>
>
> *Maninder Kumar*
>
> about.me/maninder.s.kumar
>
>
>
>
>
>
>
>
>
>
>
> On Sun, Jan 19, 2020 at 3:04 PM Doddahulugappa.B 
> wrote:
>
> Hi team,
>
>
>
> How to make role based access in django. For ex.
>
>
>
> If employee names and their department in one table.
>
>
>
>  And also we assign department to user. With manytomany field.. So how can
> i display only the records of employees and their department which is
> assigned to the user.
>
>
>
> Kindly help..
>
>
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKfjjGpT_xeQaRqySC4SX_v2-aVOb7u5%2B9qoPhByQ8Wq2DM4ow%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKfjjGpT_xeQaRqySC4SX_v2-aVOb7u5%2B9qoPhByQ8Wq2DM4ow%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABOHK3TS62AWZLjR48m%2BzG%3DgWouvCQfY90KcpMAsMD_T%3DoOW1A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABOHK3TS62AWZLjR48m%2BzG%3DgWouvCQfY90KcpMAsMD_T%3DoOW1A%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> --
> 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...@googlegroup

Re: DjangoEveryDay. My practice website!

2020-01-19 Thread maninder singh Kumar
Great to know


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Jan 19, 2020 at 4:46 PM Jack Lin  wrote:

> Hi everyone. I'm doing #DjangoEveryday Challenge to myself.
> I set a goal for everyday and try to accomplish it. So I got practice and
> progress everyday :)
>
> I'm doing this for preparation of my resume. I'm looking for Django Job in
> Taiwan but CS is not my major.
> I want to share this with you guys!
>
> btw, I do a bit of develop journal on my Linkedin, too. so if you are
> interested on my progression, you can follow me on Linkedin!
>
> There is the website: Jack's Practice Zone
> 
> and this is my Linkedin
>  :)
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fc2e047e-d362-4110-b6c5-9853402b0120%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SCnLLEAQoyvMnDyL923Zr4Vc-pWrNHc3804TKP--dVuQ%40mail.gmail.com.


Re: i need some help about server

2020-01-19 Thread maninder singh Kumar
Could it be the path ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Jan 19, 2020 at 4:33 PM shubham shirbhate <
shubhamshirbhate...@gmail.com> wrote:

> hi guys, i set logo on my digital ocean django server page but still i not
> see this logo, but whenever i sit on my local server it see to me...
> actually i dont know whats the problem, how i set my logo on server page
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ad7beb84-b7a7-47b6-bb4a-4a63efd9358e%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TOrjaJxm9gK79dZyoq%2BnrGuLkcmn09CDfMo0WEggvuvw%40mail.gmail.com.


Re: Role based access

2020-01-19 Thread maninder singh Kumar
Django has an authentication model of :
1. Creating users
2. Assigning them permissions or group permissions

Use Authenticate() to authenticate users.  Based on the assigned
permissions they will have access to parts of your site.  Basically you
create views and the objects in the views are available to users with
permissions.  For example :

def myview(request)
 #My users database has a user
'Guy" with password "1234"
myuser =
users_Users.object.values("users_Name').filter(users_Name_starts_with =
"Guy")
 #Permissions for this object
can be set.
myuser.has_view_permission('foo.bar')
myuser.has_add_permission('foo.bar')
myuser.has_delete_permission('foo.bar')#where foo is the application
and bar the model
object_list = Content.objects.all()




[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Sun, Jan 19, 2020 at 3:49 PM Doddahulugappa.B 
wrote:

> Thank you for your response. Can you please Explain me how to do that..
>
> On Sun, Jan 19, 2020, 2:09 PM maninder singh Kumar <
> maninder.s.ku...@gmail.com> wrote:
>
>> Could it be that there is a user from each department and each user in a
>> department has a role ?
>>
>>
>> [image: --]
>>
>> Maninder Kumar
>> [image: http://]about.me/maninder.s.kumar
>> <http://about.me/maninder.s.kumar?promo=email_sig>
>>
>>
>>
>>
>> On Sun, Jan 19, 2020 at 3:04 PM Doddahulugappa.B <
>> doddahuluga...@gmail.com> wrote:
>>
>>> Hi team,
>>>
>>> How to make role based access in django. For ex.
>>>
>>> If employee names and their department in one table.
>>>
>>>  And also we assign department to user. With manytomany field.. So how
>>> can i display only the records of employees and their department which is
>>> assigned to the user.
>>>
>>> Kindly help..
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKfjjGpT_xeQaRqySC4SX_v2-aVOb7u5%2B9qoPhByQ8Wq2DM4ow%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAKfjjGpT_xeQaRqySC4SX_v2-aVOb7u5%2B9qoPhByQ8Wq2DM4ow%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABOHK3TS62AWZLjR48m%2BzG%3DgWouvCQfY90KcpMAsMD_T%3DoOW1A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CABOHK3TS62AWZLjR48m%2BzG%3DgWouvCQfY90KcpMAsMD_T%3DoOW1A%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKfjjGqsW_FUKhEoEn4fxBR46sdF-xFhct864J_cmp-EjbbUeg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKfjjGqsW_FUKhEoEn4fxBR46sdF-xFhct864J_cmp-EjbbUeg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TBDQ-m2p-p4RVGtanumj7TeA-o75PM0UyHfw94EbMFTQ%40mail.gmail.com.


Re: Role based access

2020-01-19 Thread maninder singh Kumar
Could it be that there is a user from each department and each user in a
department has a role ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Jan 19, 2020 at 3:04 PM Doddahulugappa.B 
wrote:

> Hi team,
>
> How to make role based access in django. For ex.
>
> If employee names and their department in one table.
>
>  And also we assign department to user. With manytomany field.. So how can
> i display only the records of employees and their department which is
> assigned to the user.
>
> Kindly help..
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKfjjGpT_xeQaRqySC4SX_v2-aVOb7u5%2B9qoPhByQ8Wq2DM4ow%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TS62AWZLjR48m%2BzG%3DgWouvCQfY90KcpMAsMD_T%3DoOW1A%40mail.gmail.com.


Re: Django 2.2 cache keys in bytes

2020-01-17 Thread maninder singh Kumar
Could it be that the value not being received, that is a string, is because
of a function that you wrote that doesn't adequately define a value
required.
A type error of the kind you are receiving, and I racked my head over a
type error for two days, has a simple solution, wonder if you could share
the code of :
1. views.py
2. routers.py

It may not be a django engine related issue.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Jan 17, 2020 at 8:21 PM E kamande  wrote:

> Hi , I am having an issue with django that seems to arise from
> `"/usr/local/lib/python3.7/site-packages/django/core/cache/backends/base.py"
> in validate_key` . This is after i updated from django 1.11.x to django
> 2.2 for python 3.5 to 3.7. the logs are a shown.
> File "/code/frontend/views.py" in _checklogin
>   95. return view_func(request, *args, **kwargs)File
> "/code/frontend/views.py" in get_progress
>   200. data['status'] = task.statusFile
> "/usr/local/lib/python3.7/site-packages/celery/result.py" in state
>   475. return self._get_task_meta()['status']File
> "/usr/local/lib/python3.7/site-packages/celery/result.py" in
> _get_task_meta
>   414. return self._maybe_set_cache(self.backend.get_task_meta
> (self.id))File
> "/usr/local/lib/python3.7/site-packages/celery/backends/base.py" in
> get_task_meta
>   451. meta = self._get_task_meta_for(task_id)File
> "/usr/local/lib/python3.7/site-packages/celery/backends/base.py" in
> _get_task_meta_for
>   771. meta = self.get(self.get_key_for_task(task_id))File
> "/usr/local/lib/python3.7/site-packages/django_celery_results/backends/cache.py"
> in get
>   19. return self.cache_backend.get(key)File
> "/usr/local/lib/python3.7/site-packages/django/core/cache/backends/db.py"
> in get
>   52. return self.get_many([key], version).get(key, default)File
> "/usr/local/lib/python3.7/site-packages/django/core/cache/backends/db.py"
> in get_many
>   60. self.validate_key(key)File
> "/usr/local/lib/python3.7/site-packages/django/core/cache/backends/base.py"
> in validate_key
>   251. if ord(char) < 33 or ord(char) == 127:Exception Type:
> TypeError at /scheduling/get_progress/
> Exception Value: ord() expected string of length 1, but int found
>
> After further debugging I found out it was a celery task id that was being
> used to monitor task progress that was causing this issue because it was in
> bytes, how can I go about this, if I switch branch to django 1.11 it works
> fine.
> b'celery-task-meta-23d118e8-144c-4178-bf1e-beeb9b04cb7f'
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6159a25b-83d7-4c13-b3d3-a6a7bf42a289%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3RAFh%2BjrO39kdvOihhJ%2B5y2asQo8t1sCjGMYFLmO%3Dv_eA%40mail.gmail.com.


Re: Django ORM

2020-01-17 Thread maninder singh Kumar
I wonder if this would work :
second_data = SecondTable.objects.values("user_by").filter(username =
"username)



[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Jan 17, 2020 at 8:10 PM Suraj Thapa FC 
wrote:

> Use select related in django orm
>
> On Fri, 17 Jan 2020, 7:57 pm Soumen Khatua, 
> wrote:
>
>> Hi Folks,
>> *Actually I'm extending User table in some other table and this current
>> table I'm extending soe other table. But this time I want to filter by
>> using first table username How can i Do that?*
>>
>> *Example:*
>>
>> *class FirstTable(models.Model):*
>> *user_by = models.ForeignKey(user,related_name =
>> 'user',on_delete=...)*
>>
>> *class SecondTable(models.Model):*
>> * main_table = models.ForeignKey(FirstTable ,related_name = '
>>  firs_table_data',on_delete=...)*
>>
>> *So Now I wan to do like:*
>>
>> *first_data = Firsttable.objects.filter(user_by = 'username')*
>>
>> *then !!!,*
>> *second_data = SecondTable.objects.filter(main_table.user_by.username =
>> 'username')*
>> *but this is query is not working how to solve this pro*blem.
>>
>> Thank You
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAPUw6WYb7EZsbFn0R%3DND2VvaVbxFVDU%2B%2B%3D2NRZxg8dqmM328iQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPjsHcGtBeHNjfgVP93U-0dXUa5JX4d%3DyQ-rWMeWHk9Tdkfg7Q%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3R1xG%2Bs%3DBUm2jNOS%3Dpb9Kn4bLEgjcrdqcW6Ue5TfXskVA%40mail.gmail.com.


Re: ProgrammingError at "Relation... does not exist after deleting tables in

2020-01-17 Thread maninder singh Kumar
Normally programming error means that it is going to the wrong database.
If you have multiple databases set they must have the routers configured
correctly.
Advisable to write a separate database for the auth_user.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Fri, Jan 17, 2020 at 3:16 PM maninder singh Kumar <
maninder.s.ku...@gmail.com> wrote:

> The models don't contain a foreign key or do they ?
>
>
> [image: --]
>
> Maninder Kumar
> [image: http://]about.me/maninder.s.kumar
> <http://about.me/maninder.s.kumar?promo=email_sig>
>
>
>
>
> On Fri, Jan 17, 2020 at 2:04 PM FLAVIEN HERI 
> wrote:
>
>> hey guys I have an issue
>>
>> help me to resove this problem,
>>
>> after deleting my files in migration folder keeping  __init__.py
>> but continue give me this bug
>>
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/admin/ZSalertprot/province/
>>
>> Django Version: 1.11.26
>> Python Version: 2.7.12
>> Installed Applications:
>> ['django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles',
>>  'django.contrib.gis',
>>  'ZSalertprot',
>>  'leaflet']
>> Installed Middleware:
>> ['django.middleware.security.SecurityMiddleware',
>>  'django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.middleware.common.CommonMiddleware',
>>  'django.middleware.csrf.CsrfViewMiddleware',
>>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>  'django.contrib.messages.middleware.MessageMiddleware',
>>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>>
>>
>>
>> Traceback:
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/handlers/exception.py"
>> in inner
>>   41. response = get_response(request)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/handlers/base.py"
>> in _get_response
>>   187. response =
>> self.process_exception_by_middleware(e, request)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/handlers/base.py"
>> in _get_response
>>   185. response = wrapped_callback(request,
>> *callback_args, **callback_kwargs)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
>> in wrapper
>>   552. return self.admin_site.admin_view(view)(*args,
>> **kwargs)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/decorators.py"
>> in _wrapped_view
>>   149. response = view_func(request, *args, **kwargs)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/views/decorators/cache.py"
>> in _wrapped_view_func
>>   57. response = view_func(request, *args, **kwargs)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/contrib/admin/sites.py"
>> in inner
>>   224. return view(request, *args, **kwargs)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/decorators.py"
>> in _wrapper
>>   67. return bound_func(*args, **kwargs)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/decorators.py"
>> in _wrapped_view
>>   149. response = view_func(request, *args, **kwargs)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/decorators.py"
>> in bound_func
>>   63. return func.__get__(self, type(self))(*args2,
>> **kwargs2)
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
>> in changelist_view
>>   1564. self.list_max_show_all, self.list_editable, self,
>>
>> File
>> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/dja

Re: ProgrammingError at "Relation... does not exist after deleting tables in

2020-01-17 Thread maninder singh Kumar
The models don't contain a foreign key or do they ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Jan 17, 2020 at 2:04 PM FLAVIEN HERI  wrote:

> hey guys I have an issue
>
> help me to resove this problem,
>
> after deleting my files in migration folder keeping  __init__.py
> but continue give me this bug
>
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/admin/ZSalertprot/province/
>
> Django Version: 1.11.26
> Python Version: 2.7.12
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'django.contrib.gis',
>  'ZSalertprot',
>  'leaflet']
> Installed Middleware:
> ['django.middleware.security.SecurityMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.common.CommonMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware',
>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>
>
>
> Traceback:
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/handlers/exception.py"
> in inner
>   41. response = get_response(request)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/handlers/base.py"
> in _get_response
>   187. response =
> self.process_exception_by_middleware(e, request)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/handlers/base.py"
> in _get_response
>   185. response = wrapped_callback(request,
> *callback_args, **callback_kwargs)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
> in wrapper
>   552. return self.admin_site.admin_view(view)(*args,
> **kwargs)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/decorators.py"
> in _wrapped_view
>   149. response = view_func(request, *args, **kwargs)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/views/decorators/cache.py"
> in _wrapped_view_func
>   57. response = view_func(request, *args, **kwargs)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/contrib/admin/sites.py"
> in inner
>   224. return view(request, *args, **kwargs)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/decorators.py"
> in _wrapper
>   67. return bound_func(*args, **kwargs)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/decorators.py"
> in _wrapped_view
>   149. response = view_func(request, *args, **kwargs)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/decorators.py"
> in bound_func
>   63. return func.__get__(self, type(self))(*args2,
> **kwargs2)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/contrib/admin/options.py"
> in changelist_view
>   1564. self.list_max_show_all, self.list_editable, self,
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/contrib/admin/views/main.py"
> in __init__
>   79. self.get_results(request)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/contrib/admin/views/main.py"
> in get_results
>   177. result_count = paginator.count
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/utils/functional.py"
> in __get__
>   35. res = instance.__dict__[self.name] = self.func(instance)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/core/paginator.py"
> in count
>   79. return self.object_list.count()
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/models/query.py"
> in count
>   364. return self.query.get_count(using=self.db)
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/models/sql/query.py"
> in get_count
>   499. number = obj.get_aggregation(using, ['__count'])['__count']
>
> File
> "/home/flavien/MyProjects/analyseprotection/local/lib/python2.7/site-packages/django/db/models/sql/query.py"
> in get_aggregation
>   480. result = compiler.execute_sql(SINGLE)
>
> File
> 

Re: Getting " ConnectionAbortedError: [ WinError 10053] " while using Django Email in a POST request

2020-01-16 Thread maninder singh Kumar
Here's the code that I use :

with mail.get_connection() as connection:
connection.open()
send_mail(Subject ,Message, Email, recipient_list, connection=connection)
connection.close()
Works beautifully, it is available at django docs



[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Jan 17, 2020 at 2:24 AM Jose Chacón  wrote:

> Hello guys , i've came across to this error while using django email in a
> method which is fired after a post request to register new users . The goal
> of this method is to after a user is created,  an email must be sent to
> user's mail in order to finish registration workflow. Every time the 
> msg.send()
> is executed  the following message gets printed in the terminal
>
> [16/Jan/2020 11:15:28] "POST /api/v1/auth/usuario/ HTTP/1.1" 400 54
> 
> Exception happened during processing of request from ('127.0.0.1', 58382)
> Traceback (most recent call last):
>   File
> "c:\users\consultor2015\appdata\local\programs\python\python38-32\Lib\socketserver.py",
> line 650, in process_request_thread
> self.finish_request(request, client_address)
>   File
> "c:\users\consultor2015\appdata\local\programs\python\python38-32\Lib\socketserver.py",
> line 360, in finish_request
> self.RequestHandlerClass(request, client_address, self)
>   File
> "c:\users\consultor2015\appdata\local\programs\python\python38-32\Lib\socketserver.py",
> line 720, in __init__
> self.handle()
>   File
> "D:\JITZONE\JitZone\venv\lib\site-packages\django\core\servers\basehttp.py",
> line 174, in handle
> self.handle_one_request()
>   File
> "D:\JITZONE\JitZone\venv\lib\site-packages\django\core\servers\basehttp.py",
> line 182, in handle_one_request
> self.raw_requestline = self.rfile.readline(65537)
>   File
> "c:\users\consultor2015\appdata\local\programs\python\python38-32\Lib\socket.py",
> line 669, in readinto
> return self._sock.recv_into(b)
> ConnectionAbortedError: [WinError 10053] An established connection was
> aborted by the software in your host machine
>
> Although doesn't affect functionality (email still get sent) , it's
> bugging me  because this error makes the POST request canceled .
> Here are my methods:
>
>
> *1.views.py  *
>
>
> class ProfileCreateAPIView(CreateAPIView):
> queryset = User.objects.all()
> model = UsuarioPerfil
> serializer_class = UserSerializer
>
> *2.serializers.py *
>
>
>
> class UserSerializer(serializers.ModelSerializer):
> usuario_perfil = UsuarioPerfilSerializer()
> generar_correo_confirmacion = serializers.CharField(required=False)
> enviar_correo = serializers.CharField(required=False)
>
> class Meta:
> model = User
> fields = ['password', 'email', 'username', 'first_name', 'last_name', 
> 'usuario_perfil',
>   'generar_correo_confirmacion', 'enviar_correo']
>
> def create(self, validated_data):
>
> ###CREATION OF USER AND 
> USERPROFILE#
>
> profile_data = validated_data.pop('usuario_perfil')
> user = User.objects.create(
> username=validated_data['username'],
> email=validated_data['email'],
> first_name=validated_data["first_name"],
> last_name=validated_data["last_name"],
> is_active=False
> )
> user.set_password(validated_data['password'])
> user.save()
> UsuarioPerfil.objects.create(
> usuario=user,
> perfil=perfil,
> red_social=red_social,
> **profile_data)
>
> ###CONFIRMATION 
> EMAIL###
> token = account_validation_token.make_token(user)
> user_id = urlsafe_base64_encode(force_bytes(user.id))
> url = 'http://localhost:8000' + 
> reverse('usuarios:confirmacionReinicioPassword',
> kwargs={'user_id': user_*id*, 
> 'token': token})
>
> try:
> htmly = get_template('mail/recuperacion_contrasenia.html')
> d = {'confirm_url': url}
> subject, from_email, to = 'Confirmacion de cuenta', 
> settings.EMAIL_HOST_USER, user.email
> html_content = htmly.render(d)
> msg = EmailMultiAlternatives(subject, html_content, from_email, 
> [to])
> msg.attach_alternative(html_content, "text / html")
> msg.send()
> except:
> print(":c")
>
> return user
>
>
> What it's confusing me its that there's no trace of this error if i send
> an email in a View which gets fired after a GET request.  Also i've tried
> putting the logic in a post method in django view , without using Django
> Rest Framework,  but the error still appears
>
> I'd be so 

Re: Getting " ConnectionAbortedError: [ WinError 10053] " while using Django Email in a POST request

2020-01-16 Thread maninder singh Kumar
Perhaps a problem with the smtp server, I am wondering if the email object
got initialized at all.


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Jan 17, 2020 at 2:41 AM Nosa Omorodion 
wrote:

> Have you tried sending this mail from the user model?
>
> Using the post save signal
>
> On Thu, Jan 16, 2020, 9:53 PM Jose Chacón  wrote:
>
>> Hello guys , i've came across to this error while using django email in a
>> method which is fired after a post request to register new users . The goal
>> of this method is to after a user is created,  an email must be sent to
>> user's mail in order to finish registration workflow. Every time the 
>> msg.send()
>> is executed  the following message gets printed in the terminal
>>
>> [16/Jan/2020 11:15:28] "POST /api/v1/auth/usuario/ HTTP/1.1" 400 54
>> 
>> Exception happened during processing of request from ('127.0.0.1', 58382)
>> Traceback (most recent call last):
>>   File
>> "c:\users\consultor2015\appdata\local\programs\python\python38-32\Lib\socketserver.py",
>> line 650, in process_request_thread
>> self.finish_request(request, client_address)
>>   File
>> "c:\users\consultor2015\appdata\local\programs\python\python38-32\Lib\socketserver.py",
>> line 360, in finish_request
>> self.RequestHandlerClass(request, client_address, self)
>>   File
>> "c:\users\consultor2015\appdata\local\programs\python\python38-32\Lib\socketserver.py",
>> line 720, in __init__
>> self.handle()
>>   File
>> "D:\JITZONE\JitZone\venv\lib\site-packages\django\core\servers\basehttp.py",
>> line 174, in handle
>> self.handle_one_request()
>>   File
>> "D:\JITZONE\JitZone\venv\lib\site-packages\django\core\servers\basehttp.py",
>> line 182, in handle_one_request
>> self.raw_requestline = self.rfile.readline(65537)
>>   File
>> "c:\users\consultor2015\appdata\local\programs\python\python38-32\Lib\socket.py",
>> line 669, in readinto
>> return self._sock.recv_into(b)
>> ConnectionAbortedError: [WinError 10053] An established connection was
>> aborted by the software in your host machine
>>
>> Although doesn't affect functionality (email still get sent) , it's
>> bugging me  because this error makes the POST request canceled .
>> Here are my methods:
>>
>>
>> *1.views.py  *
>>
>>
>> class ProfileCreateAPIView(CreateAPIView):
>> queryset = User.objects.all()
>> model = UsuarioPerfil
>> serializer_class = UserSerializer
>>
>> *2.serializers.py *
>>
>>
>>
>> class UserSerializer(serializers.ModelSerializer):
>> usuario_perfil = UsuarioPerfilSerializer()
>> generar_correo_confirmacion = serializers.CharField(required=False)
>> enviar_correo = serializers.CharField(required=False)
>>
>> class Meta:
>> model = User
>> fields = ['password', 'email', 'username', 'first_name', 
>> 'last_name', 'usuario_perfil',
>>   'generar_correo_confirmacion', 'enviar_correo']
>>
>> def create(self, validated_data):
>>
>> ###CREATION OF USER AND 
>> USERPROFILE#
>>
>> profile_data = validated_data.pop('usuario_perfil')
>> user = User.objects.create(
>> username=validated_data['username'],
>> email=validated_data['email'],
>> first_name=validated_data["first_name"],
>> last_name=validated_data["last_name"],
>> is_active=False
>> )
>> user.set_password(validated_data['password'])
>> user.save()
>> UsuarioPerfil.objects.create(
>> usuario=user,
>> perfil=perfil,
>> red_social=red_social,
>> **profile_data)
>>
>> ###CONFIRMATION 
>> EMAIL###
>> token = account_validation_token.make_token(user)
>> user_id = urlsafe_base64_encode(force_bytes(user.id))
>> url = 'http://localhost:8000' + 
>> reverse('usuarios:confirmacionReinicioPassword',
>> kwargs={'user_id': 
>> user_*id*, 'token': token})
>>
>> try:
>> htmly = get_template('mail/recuperacion_contrasenia.html')
>> d = {'confirm_url': url}
>> subject, from_email, to = 'Confirmacion de cuenta', 
>> settings.EMAIL_HOST_USER, user.email
>> html_content = htmly.render(d)
>> msg = EmailMultiAlternatives(subject, html_content, from_email, 
>> [to])
>> msg.attach_alternative(html_content, "text / html")
>> msg.send()
>> except:
>> print(":c")
>>
>> return user
>>
>>
>> What it's confusing me its that there's no trace of this error if i send
>> an email in a View which gets fired after a GET request.  Also i've tried
>> putting the logic in a post 

  1   2   >