Re: Caltech Pedestrian Detection Annotations

2019-04-09 Thread Balaji Shetty
Please refer kaggle web site. It contains all data set with Classification
algorithm and results also.
You may get ideas.
https://www.kaggle.com/c/state-farm-distracted-driver-detection/discussion/22018


Shetty Balaji


On Mon, Apr 8, 2019 at 4:37 PM Aakash Baranwal 
wrote:

> Hi Everybody,
>
> This is not exactly a Django related question, but I need help.
>
> I am working on a project, and I have to use Caltech Pedestrian Detection
>  data
> set. However, I am not able to get the output as desired as the files are
> in VBB format and moreover I am not able to interpret the matrix.
>
> If anyone happens to have any kind of documentation which will help in
> using the data set for training the model and correctly interpreting the
> data, or are aware how to correctly use it, please help me.
>
> I shall be extremely thankful.
>
> Thanks in advance.
>
> With Kind Regards
>
> Aakash
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALr9hQ2hzN6NPCaV_nx0%2Bj4F6CB3N25fyzA1d3S1UfkyA5t80Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtL-D-At8m6e5m8K2rzxz2%3DMuQzgn22C0VJ5wAuaUFKAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Feedback regarding Django-Suit for Django Admin Panel Customization - Need to add New Menu for Report Generations

2019-04-09 Thread Balaji Shetty
Dear Sir,

I am developing one web based application Django. I could understand Simple
Web application as well as entire Django Admin Panel working upto this
time.

My requirement is
I want to add new menu in existing Admin Panel. I have been searching a lot
from many days but could not get any proper solution. I got some code on
github like Django-Admin-Plus and django-Admin-Menu but when i installed on
my machine, it could not execute and giving lots of error. Any link or
video is available for this.

One solution may be view creation .

One more solution is to purchase Django Suit in around 3 to 4K rupees.
Features of Django Suit is
FEATURES


   - Modern and professional design
   - Improved list filters
   - Sorting for list and inlines
   - Menu configuration & search
   - Useful CSS/JS addons
   - Based on Twitter Bootstrap
   - Simple installation
   - No 3rd-party requirements
   - 3rd-party app support: django-cms, django-filer and others.

Single
$45
Single commercial project
Use Django Suit in one
commercial project

So can anybody suggest me the BEST solution.

-- 
*Mr. Shetty Balaji S.*

*balajishe...@gmail.com *
*9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOs1Kph6mUFOWKee5DQ4ekYfvXh52GsgskZ9_Z70WQf4kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How can we initiate Multi User Project Management System

2019-04-11 Thread Balaji Shetty
High

Can anyone please suggest me how can we initiate Multi User Project
Management System> Scenarios is Like

 For Example,  Suppose we have to develop University management System

Level One- University Principal as Super User

Level 2 - University May have N Department like Engg, Medical, Pharmacy,
Accounting, ... N Dept

Level 3- There are sublevels under every Level like
   Engineering will have All Engineering Branches like CS, CE,
IT , EXTC, MECH, PROD .. Same is true for other Departments.

Level 4 - Same thing get repeated recursively repeated as in Level 3,
in Subsequent Level.

And User Hierarchy is From TOP to Bottom means Top user can see all Sub
Level in Down Section But Bottom user cannot see in TOP section.

Most Important Thing is User in One Level May transfer his load to user in
another Same Level and We have to keep the log of Every User with
respective Task.

Can you please suggest me the best way to accomplish the project because
User May have many to Many Relationship with Departments also.


-


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtXe4-gJCTs5JTxBc0UCsU0cvC9hOpqPjn7E56x64iFdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


“Scrapy and Scrapyrt: how to create your own API from (almost) any website” published by Jérôme Mottet - We can Integrate in our own project

2019-04-14 Thread Balaji Shetty
Hi
Can we use this one. Anybody has ever tried.
 We have other option like Rest Framework or Angular JS in front End.

Please Discuss


-- Forwarded message -
From: Medium Daily Digest 
Date: Sun, Apr 14, 2019 at 8:50 AM
Subject: “Scrapy and Scrapyrt: how to create your own API from (almost) any
website” published by Jérôme Mottet
To: 


[image: Medium Logo]
Stories for Balaji Shetty
Today’s highlights
<https://medium.com/@mottet.dev/scrapy-and-scrapyrt-how-to-create-your-own-api-from-almost-any-website-ecfb0058ad64?source=email-309f6f94d779-1555241619464-digest.reader--0-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
<https://medium.com/@mottet.dev/scrapy-and-scrapyrt-how-to-create-your-own-api-from-almost-any-website-ecfb0058ad64?source=email-309f6f94d779-1555241619464-digest.reader--0-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
<https://medium.com/@mottet.dev/scrapy-and-scrapyrt-how-to-create-your-own-api-from-almost-any-website-ecfb0058ad64?source=email-309f6f94d779-1555241619464-digest.reader--0-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>Scrapy
and Scrapyrt: how to create your own API from (almost) any website
<https://medium.com/@mottet.dev/scrapy-and-scrapyrt-how-to-create-your-own-api-from-almost-any-website-ecfb0058ad64?source=email-309f6f94d779-1555241619464-digest.reader--0-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
Introduction
Jérôme Mottet
<https://medium.com/@mottet.dev?source=email-309f6f94d779-1555241619464-digest.reader-20c65b1e_9fa5_4968_8cf1_26324f80d6f7>[image:
Member only content]5 min read
<https://medium.com/@karanasher/how-to-deploy-your-first-python-webapp-on-google-app-engine-2d487b52796a?source=email-309f6f94d779-1555241619464-digest.reader--1-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
<https://medium.com/@karanasher/how-to-deploy-your-first-python-webapp-on-google-app-engine-2d487b52796a?source=email-309f6f94d779-1555241619464-digest.reader--1-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
<https://medium.com/@karanasher/how-to-deploy-your-first-python-webapp-on-google-app-engine-2d487b52796a?source=email-309f6f94d779-1555241619464-digest.reader--1-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>A
quick guide to deploying your Python webapp on Google App Engine
<https://medium.com/@karanasher/how-to-deploy-your-first-python-webapp-on-google-app-engine-2d487b52796a?source=email-309f6f94d779-1555241619464-digest.reader--1-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
The growth in the number of web-based applications and frameworks in the
recent times is astounding. As…
Karan Asher
<https://medium.com/@karanasher?source=email-309f6f94d779-1555241619464-digest.reader-20c65b1e_9fa5_4968_8cf1_26324f80d6f7>
in freeCodeCamp.org
<https://medium.com/free-code-camp?source=email-309f6f94d779-1555241619464-digest.reader-20c65b1e_9fa5_4968_8cf1_26324f80d6f7>7
min read
<https://medium.com/@montanalow/freezing-pythons-dependency-hell-in-2018-f1076d625241?source=email-309f6f94d779-1555241619464-digest.reader--2-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
<https://medium.com/@montanalow/freezing-pythons-dependency-hell-in-2018-f1076d625241?source=email-309f6f94d779-1555241619464-digest.reader--2-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
<https://medium.com/@montanalow/freezing-pythons-dependency-hell-in-2018-f1076d625241?source=email-309f6f94d779-1555241619464-digest.reader--2-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>Freezing
Python’s Dependency Hell in 2018
<https://medium.com/@montanalow/freezing-pythons-dependency-hell-in-2018-f1076d625241?source=email-309f6f94d779-1555241619464-digest.reader--2-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
A simpler solution for a complicated problem
Montana Low
<https://medium.com/@montanalow?source=email-309f6f94d779-1555241619464-digest.reader-20c65b1e_9fa5_4968_8cf1_26324f80d6f7>
in tech-at-instacart
<https://medium.com/tech-at-instacart?source=email-309f6f94d779-1555241619464-digest.reader-20c65b1e_9fa5_4968_8cf1_26324f80d6f7>5
min read
<https://medium.com/@Mybridge/python-open-source-of-the-month-v-sep-2018-3136ac55f230?source=email-309f6f94d779-1555241619464-digest.reader--3-59--20c65b1e_9fa5_4968_8cf1_26324f80d6f7-1§ionName=top>
<https://medium.com/@Mybridge/python-open-source-of-the-month-v-sep-2018-3136ac55f230?source=email-309f6f94d779-1555241619464-digest.reader--3-59--20c65b1e_9fa5_4968_8cf1_26

How to override default Django Admin Panel Model display to Customization

2019-04-15 Thread Balaji Shetty
Hi

When i do login using Django Admin Panel , i can easily perform CRUD
operation on Models.

can i customize the display of Models Records in django Admin Panel Itself,
when I select the model, I get all the records, But i want to filter the
records based on some Criteria.

Here is my model . Code executes.



class EmployeeManager(models.Manager):
def get_queryset(self):
return super(EmployeeManager,
self).get_queryset().filter(gender='F')





class Employee(models.Model):
  gender_choices = (
   ("M", "Male"),
   ("F", "Female")
  )
  roles_choices = (
   ("J", "Junior"),
   ("S", "Senior"),
  )
  first_name = models.CharField(max_length=200)
  last_name = models.CharField(max_length=200)
  email = models.CharField(max_length=250)
  gender = models.CharField(max_length=1, choices=gender_choices)
  role = models.CharField(max_length=120, choices=roles_choices,
default="J")
  active = models.BooleanField(default=True)

  # custom manager replaces objects manger
  all_employees = models.Manager()
  objects = models.Manager() # The default manager.
  active_objects = EmployeeManager() # The EmployeeManager manager.

  def __str__(self):
return str(self.first_name) + str(self.last_name)

>From Shell, it executes.

# Employee.active_objects.all()
# Employee.active_objects.filter(email='emplo...@gmail.com')
# Employee.active_objects.count()

Source:
https://micropyramid.com/blog/how-to-add-a-custom-managers-in-django/

When

My Query is can i show the filtered record in directly Django Admin Panel
after doing Login based on Logged User Username.


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtQFeybd186pYSPuOThUvp3CgW7tf-p5hJzg92%2B5q84Pw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django How to write Customized Query ( Display Information Departmentwise)

2019-04-19 Thread Balaji Shetty
HI

My models.py


class T1(models.Model):
CaseNumber = models.TextField(blank=True,null=True)
UserCurrent = models.TextField(blank=True,null=True,default='user1')
UserCurrentDepartment = models.TextField(blank=True,null=True)

def __str__(self):
return '%s %s' % (self.CaseNumber , self.UserCurrentDepartment )


 Assume Record in MODELS T1  to be entered by respectuve user are
(
*  I will create System User U1, U2 and U3 for IT,CS and MECH Department
only. *
*)*
CaseNumber  -- UserCurrent  --UserCurrentDepartment
 11 - U1 - *iT*

* 12 - U1 - IT*

*13 - U1 - IT*

 21 - U2 - *CS*
* 22 - U2 - CS*

*23 - U2- CS*

 31 - U3 - *MECH*

* 32 - U3 - MECH *
*33 - U3 - MECH*
*--*


*when I run the Project by creating One Superuser*

*http://127.0.0.1:8000/admin/appname/t1/
*

* i get all records of all Users and all Departments.*
*I will create three user of Name U1,U2 and U3 of IT,CS and MECH Department
and ask them to do CRUD Operation. I want the output in following way use
rwise.*


*When User U1 do the login in Admin Panel, He should get only his
Department Records -IT, not other department*

CaseNumber--   UserCurrent  --  UserCurrentDepartment
 11 - U1 - *iT*

* 12 - U1 - IT*

*13 - U1 - IT*
*--*

*When User U2 do the login in Admin Panel, He should get only his
Department Records - CS,, not other department*


CaseNumber--   UserCurrent  --  UserCurrentDepartment
 21 - U2 - *CS*
* 22 - U2 - CS*

*23 - U2- CS*
*--*

*When User U3 do the login in Admin Panel, He should get only his
Department Records - MECH, , not other department*


CaseNumber--   UserCurrent  --  UserCurrentDepartment
 31 - U3 - *MECH*

* 32 - U3 - MECH *
*33 - U3 - MECH*
*--*

*When I create superuser, he has access to all user data.*

*But other users U1, U2 and U3 have also access of other users Data.*


*So My query is how can i accomplish this Constraint.*

--.

How can i write a customized query so that Admin panel should display only
particular Department as per respective user Deparement.-


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtiHTPCprTj9w168rHksoUf2TKsju-yQHZvJLw14eZ9Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django How to write Customized Query ( Display Information Departmentwise)

2019-04-22 Thread Balaji Shetty
Dear Gaurav Sir

I am very much thankful to you for your reply to my query.

My questions is *How can i make  the customization in Django Admin Panel
itself to implement necessary logic after user of particular department do
the login.( How and where to embed proposed Logic
T1.objects.filter(user=current_user, department=current_user.department)*

If i design separate pages for login using templates and showing necessary
content user-wise (Login wise),
Your suggested logic will definitely work  (after making necessary changes
in schema)



On Sun, Apr 21, 2019 at 11:00 AM Gourav Chawla <
gauravchawla.chawla...@gmail.com> wrote:

> First of all, use appropriate model fields for linking objects. For
> example users should be a foreign key to your(or Django's) user table.
>
> Then whenever you want to show data on any interface to any user, just
> filter content/rows by user department.
>
> Something like:
>
> T1.objects.filter(user=current_user, department=current_user.department)
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a4484706-2f3a-488c-a28c-41f78e2f42ca%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOvHwOk5Zn6qMQgbtG99wEo4yRV3UJwBHoc1_sQhwW1ZFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Advanced permissions and role creation

2019-04-23 Thread Balaji Shetty
Hi

Did you get any particular solution. I am also facing the same problem. My
project also have same requirement.

I think this problem must have been faced by every dveloper.

Can you please share the solution or any useful internet resource .

On Sun, Apr 21, 2019 at 4:37 PM Joel Mathew  wrote:

> Thanks a lot, guys.
>
> On Sun, 21 Apr, 2019, 3:58 PM Jani Tiainen,  wrote:
>
>> Hi,
>>
>> We do in our applications pretty much same approach as Mike proposed in
>> his post. It's relatively efficient and works for both, UI and application
>> side pretty well and doesn't require building anything complex and pretty
>> much everything you need is already built-in in Django.
>>
>>
>>
>> On Sun, Apr 21, 2019 at 5:12 AM Joel Mathew  wrote:
>>
>>> I have an application for a hospital. There, I should be able to assign
>>> different roles like Doctor, Nurse, Attender, Auxillary Nurse, Pharmacist,
>>> Store Manager etc, each of would be having specific access to seperate
>>> areas (views), with some having restricted access. In addition, there are
>>> other hospitals who would be having no access to another hospital's
>>> records. All of these permissions should be customisable, and I should be
>>> able to create additional roles and permission groups for specific areas
>>> later (from within the application itself, in production). What would be
>>> the best solution to use? Is there a middleware which works well. I don't
>>> want to roll my own if I will be reinventing the wheel.
>>>
>>> Currently my application has no use permissions. But access to specific
>>> hospitals is being restricted by a model whoch stores hospital name, and
>>> user name.
>>> Sincerely yours,
>>>
>>>  Joel G Mathew
>>>
>>> --
>>> 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAA%3Diw_9BrOEh4Ss3X0g_EnaFyp1XTXij5DoZvva_XxwKVzXsGQ%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Jani Tiainen
>> Software wizard
>>
>> https://blog.jani.tiainen.cc/
>>
>> Always open for short term jobs or contracts to work with 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHn91od2vbV7F0WwAVp6Eppqmmd5-NgZciO_04Tm%3D9x9FSJyvQ%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA%3Diw_-6cLiAfN1NHovdY4-Y_Wtz1KToMWW6zErNKAdXNOpm1w%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtdC_wg-ceB6-dvWcS6z%2BoWkwm%2BzunBW3GR_Kd0G3GsrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Advanced permissions and role creation

2019-04-25 Thread Balaji Shetty
Dear Mike Dewhirst

Thank You Very Much for your nice reply  . I try it .


On Thu, Apr 25, 2019 at 6:26 AM Mike Dewhirst  wrote:

> On 23/04/2019 9:22 pm, Balaji Shetty wrote:
> > Hi
> >
> > Did you get any particular solution. I am also facing the same
> > problem. My project also have same requirement.
> >
> > I think this problem must have been faced by every dveloper.
> >
> > Can you please share the solution or any useful internet resource .
>
> class UserProfile(models.Model):
>
>  user = models.OneToOneField(User, related_name='userprofile',
>
>  on_delete=models.CASCADE)
>
>  company = models.ForeignKey('Company', null=True, blank=True,
>
>  on_delete=models.CASCADE,
>
>  help_text='Each user may only be associated with '
>
>  'one company.')
>
> *...*
>
>  def __str__(self):
>
>  grps = u''
>
>  superuser = u''
>
>  if self.user.is_staff:
>
>  superuser = u' [Staff]'
>
>  if self.user.is_superuser:
>
>  superuser = u' [Superuser]'
>
>  if not self.user.is_active:
>
>  superuser += u' [Inactive]'
>
>  groups = Group.objects.filter(user=self.user).order_by('name')
>
>  if groups:
>
>  grps = u', '.join(x.name for x in groups)
>
>  if grps:
>
>  grps = u' (%s)' % grps
>
>  grps += superuser
>
>  return u'%s%s' % (self.user, grps)
>
> And in company admin.py
>
> class CompanyAdmin(admin.ModelAdmin):
>
>  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
>  #
>  def get_queryset(self, request):
>  qs = super(CompanyAdmin, self).get_queryset(request)
>  if request.user.is_superuser:
>  return qs
>  coy = get_user_company(request)
>  if coy:
>  return qs.filter(
>  Q(id=coy.id)
>  ).distinct()
>  #
>  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
>
> And imported from common utils ...
>
> def get_user_company(request): """Return the company of which the user
> is a member. Company is kept in the UserProfile fk company. Typically
> used in get_queryset.filter() calls made in various places to restrict a
> user's view to things owned by that user's company. """ profile =
> get_userprofile(request) if profile: try: return profile.company except
> Exception: # happens on deleting the company pass  def
> get_userprofile(request): """Return the userprofile from a user or
> request""" from company.models import UserProfile # avoid circular
> imports if isinstance(request, User): usr = request else: usr =
> request.user if usr: try: return UserProfile.objects.get(user=usr)
> except Exception: # happens on deleting the user pass
>
> And determining which fields are readonly depending on group membership
> is a matter of writing a callable which replaces
> ModelAdmin.get_readonly_fields and for which you need ...
>
> def is_member(user, name): return user.groups.filter(name=name).exists()
> # or user.is_superuser
>
> hth
>
>
>
> >
> > On Sun, Apr 21, 2019 at 4:37 PM Joel Mathew  > <mailto:j...@eyrie.in>> wrote:
> >
> > Thanks a lot, guys.
> >
> > On Sun, 21 Apr, 2019, 3:58 PM Jani Tiainen,  > <mailto:rede...@gmail.com>> wrote:
> >
> > Hi,
> >
> > We do in our applications pretty much same approach as Mike
> > proposed in his post. It's relatively efficient and works for
> > both, UI and application side pretty well and doesn't require
> > building anything complex and pretty much everything you need
> > is already built-in in Django.
> >
> >
> >
> > On Sun, Apr 21, 2019 at 5:12 AM Joel Mathew  > <mailto:j...@joel.su>> wrote:
> >
> > I have an application for a hospital. There, I should be
> > able to assign different roles like Doctor, Nurse,
> > Attender, Auxillary Nurse, Pharmacist, Store Manager etc,
> > each of would be having specific access to seperate areas
> > (views), with some having restricted access. In addition,
> > there are other hospitals who would be having no access to
> > another hos

Re: need help

2019-04-25 Thread Balaji Shetty
Hi
You can see Try Django Tutorial Seris on Youtube ( Free ). Very nice and
you can get good Knowledge

On Thu, Apr 25, 2019 at 5:31 PM kashinath kambar 
wrote:

> I am new to python development, can anyone help me out by giving some
> beginners projects.. and how to improve my coding skills.
>
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/27942fb4-02b4-4040-a6b5-5aed21c7c200%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtj66YqcGe9Jxi7SfSRdaJ%3DmU6yMkaj0C%3DUWGuq115m5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Balaji Shetty
Hi

I do not have any experience for cloud hosting. Can you please suggest
Cloud Service Provider to host Django Application.

My Application need Security and Salability.

Many options are there like


   - PythonAnywhere. ..
   - *Heroku*. ...
   - A2 Hosting. ...
   - *AWS*. ...
   - *HostUpon*. ...
   - TMD Hosting. ...
   - DigitalOcean


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOsUwWWGcNqrFPswKt6a4Byk4Zopy-9SFWjZrLZQc332Ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Balaji Shetty
Thank You Very Much Nick for your Nice Reply.



On Thu, May 2, 2019 at 3:40 PM Nick Sarbicki 
wrote:

> Hi Balaji,
>
> I've used many cloud providers to host Django applications, they all work
> fine.
>
> They all have varying feature sets, pricing, levels of ease and
> documentation.
>
> So it really isn't for any of us to tell you which provider to use. They
> all work, you just have to research them and find what price/feature
> set/level of expertise required suits you best.
>
>
> - Nick
>
>
> On Thu, May 2, 2019 at 10:51 AM Balaji Shetty 
> wrote:
>
>> Hi
>>
>> I do not have any experience for cloud hosting. Can you please suggest
>> Cloud Service Provider to host Django Application.
>>
>> My Application need Security and Salability.
>>
>> Many options are there like
>>
>>
>>- PythonAnywhere. ..
>>- *Heroku*. ...
>>- A2 Hosting. ...
>>- *AWS*. ...
>>- *HostUpon*. ...
>>- TMD Hosting. ...
>>- DigitalOcean
>>
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOsUwWWGcNqrFPswKt6a4Byk4Zopy-9SFWjZrLZQc332Ww%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOsUwWWGcNqrFPswKt6a4Byk4Zopy-9SFWjZrLZQc332Ww%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGuvt91qa%3DaFpkisJCLSrgHq7wzr82vwnY6%3DebXkKoJ-P2AVFw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGuvt91qa%3DaFpkisJCLSrgHq7wzr82vwnY6%3DebXkKoJ-P2AVFw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtptLMh2KZoLwZX-_iDDmNenn2j5zM-hzc_syftUTtQQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Balaji Shetty
Thank You Very Much Hari for your Nice Reply. I will definitely try.

On Thu, May 2, 2019 at 4:15 PM Hari  wrote:

> If it is a small application then you can try Vultr..Pricing is really
> good.
>
> On Thu, May 2, 2019, 3:53 PM Daviddd  wrote:
>
>> it strictly depends on your requirements and budget, but certainly I can
>> say I'm getting in love with DigitalOcean (Spaces with CDN for static
>> files), Kubernetes (LTD) and Helm.
>>
>>
>> Il giorno giovedì 2 maggio 2019 11:51:57 UTC+2, Balaji Shetty ha scritto:
>>>
>>> Hi
>>>
>>> I do not have any experience for cloud hosting. Can you please suggest
>>> Cloud Service Provider to host Django Application.
>>>
>>> My Application need Security and Salability.
>>>
>>> Many options are there like
>>>
>>>
>>>- PythonAnywhere. ..
>>>- *Heroku*. ...
>>>- A2 Hosting. ...
>>>- *AWS*. ...
>>>- *HostUpon*. ...
>>>- TMD Hosting. ...
>>>- DigitalOcean
>>>
>>>
>>> --
>>>
>>>
>>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information
>>> Technology,*
>>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>>> *Official: bssh...@sggs.ac.in *
>>> *  Mobile: +91-9270696267*
>>>
>>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/37345bd1-3b90-4a47-9268-819d61ae178c%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/37345bd1-3b90-4a47-9268-819d61ae178c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMqzjWB1MTGqXHF-s-i6D9m%2BGX%2BBbLmbarZ%2BBCR5tM2qEvx3pA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMqzjWB1MTGqXHF-s-i6D9m%2BGX%2BBbLmbarZ%2BBCR5tM2qEvx3pA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOuL07TRu_B2iv89JXwVX7OZcLAz2qb_kiYWHj312hF-ug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Balaji Shetty
*Thank You Very Much Davide for your Nice Reply.*

On Thu, May 2, 2019 at 3:53 PM Daviddd  wrote:

> it strictly depends on your requirements and budget, but certainly I can
> say I'm getting in love with DigitalOcean (Spaces with CDN for static
> files), Kubernetes (LTD) and Helm.
>
>
> Il giorno giovedì 2 maggio 2019 11:51:57 UTC+2, Balaji Shetty ha scritto:
>>
>> Hi
>>
>> I do not have any experience for cloud hosting. Can you please suggest
>> Cloud Service Provider to host Django Application.
>>
>> My Application need Security and Salability.
>>
>> Many options are there like
>>
>>
>>- PythonAnywhere. ..
>>- *Heroku*. ...
>>- A2 Hosting. ...
>>- *AWS*. ...
>>- *HostUpon*. ...
>>- TMD Hosting. ...
>>- DigitalOcean
>>
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bssh...@sggs.ac.in *
>> *  Mobile: +91-9270696267*
>>
>> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/37345bd1-3b90-4a47-9268-819d61ae178c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/37345bd1-3b90-4a47-9268-819d61ae178c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOuDcK-Zz%3DmjZFNkOs8iBTLeOmo2OSt5C5WyVsmFdYVCzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Integrating Wagtail into a Django project -

2019-05-02 Thread Balaji Shetty
Hi

While searching different Django Features, i have seen Integrating Wagtail
into a Django project.

Actually i want to make my Application more user friendly with professional
GUI. So may i use Wagtail for my purpose. Also I have visited website
https://wagtail.io/blog/add-wagtail-blog-to-django-app/

I will be happy to know any other library to make my Django Application more
user friendly with professional GUI.

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOsL-ws9_sCNY6t15WBKraNO8sby8GdM8c0w3z3BoyJmxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Balaji Shetty
Really Nice Reply Halldarrell ...
We must do analysis for our requirement.

Thank You very much

On Thu, May 2, 2019 at 5:20 PM LIGHTNING OMEGA 2 636 <
halldarrell...@gmail.com> wrote:

> Without much experience and a desire for scalability,  security and
> reliability your choices are actually narrowed down pretty quickly.
> Because it boils down to who's going to give you the most "bang for the
> buck" without stripping your budget.  Start at the high end, e.g. AWS, then
> ask yourself, are all of the features offered necessary.  What's essential
> and what's nice to have?  Pick three(3) and evaluate them during their
> respective trial periods.   What are noticeable differences do you see, and
> are they tolerable.  Service providers owe you reliability along with
> efficient set up and maintenance.  I've made the mistake of going with a
> good price or friend's recommendation only to find out I was paying much
> more for less up time than the highest end providers would charge.   I have
> an MS in Information Systems, and I was a physician in solo practice at the
> time.   After firing my consultants and finding a local service provider, I
> saved a thousand dollars ($1000) a month.  While going with ATT at another
> site costed a bundle @ $400 per month but left me with over a thousand
> viral infections on my server/host.
>
>
>
> On May 2, 2019 5:51 AM, "Balaji Shetty"  wrote:
>
>> Hi
>>
>> I do not have any experience for cloud hosting. Can you please suggest
>> Cloud Service Provider to host Django Application.
>>
>> My Application need Security and Salability.
>>
>> Many options are there like
>>
>>
>>- PythonAnywhere. ..
>>- *Heroku*. ...
>>- A2 Hosting. ...
>>- *AWS*. ...
>>- *HostUpon*. ...
>>- TMD Hosting. ...
>>- DigitalOcean
>>
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOsUwWWGcNqrFPswKt6a4Byk4Zopy-9SFWjZrLZQc332Ww%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOsUwWWGcNqrFPswKt6a4Byk4Zopy-9SFWjZrLZQc332Ww%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFJtDQfm8Z526CGt3nL18K9h9NJp6FVKRWttw1NL13zYA4C0Yw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFJtDQfm8Z526CGt3nL18K9h9NJp6FVKRWttw1NL13zYA4C0Yw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtgSuS%2B-0WLyOZGcB5KGiGh9ZpVem%2BF3wNEYncX-Q1F%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Balaji Shetty
*Thanks  Aldian Fazrihady 🙂*

On Thu, May 2, 2019 at 5:26 PM Aldian Fazrihady  wrote:

> Use AWS or GCP.  You can automate the scaling.
>
> Regards,
>
> Aldian Fazrihady
>
>
> On Thu, 2 May 2019, 16:51 Balaji Shetty,  wrote:
>
>> Hi
>>
>> I do not have any experience for cloud hosting. Can you please suggest
>> Cloud Service Provider to host Django Application.
>>
>> My Application need Security and Salability.
>>
>> Many options are there like
>>
>>
>>- PythonAnywhere. ..
>>- *Heroku*. ...
>>- A2 Hosting. ...
>>- *AWS*. ...
>>- *HostUpon*. ...
>>- TMD Hosting. ...
>>- DigitalOcean
>>
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOsUwWWGcNqrFPswKt6a4Byk4Zopy-9SFWjZrLZQc332Ww%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOsUwWWGcNqrFPswKt6a4Byk4Zopy-9SFWjZrLZQc332Ww%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAN7EoAYFCJ%2BM1evndOQyGC1KK%2BTNzkFVEND3PDt%2B2G%3DGmj0e_g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAN7EoAYFCJ%2BM1evndOQyGC1KK%2BTNzkFVEND3PDt%2B2G%3DGmj0e_g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOta4FQ8031buhRhyeXBsOR%3D%2BvJ7zJWyXvK-8XT6fy3TBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-03 Thread Balaji Shetty
Dear
Lucas G. Navarro
Thank You very much.


On Thu, May 2, 2019 at 11:02 PM Lucas G. Navarro 
wrote:

> webfaction  is good too!
>
> Regards!
>
> El jue., 2 may. 2019 a las 12:40,  escribió:
>
>> This seems related to my question on how to do Blue/Green deployments.
>>  If you want to build a real CI/CD stack for it and you want the previous
>> version to be safe and the cut-over to the new version to be consistent,
>> durable, and reasonably atomic, then you have some work to do.
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/fcc6b2a4-ec08-4148-afa3-4443ec4746d8%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABomRVUvK8yGe2DtDuCAjxfd2mqn3qhey4U2cwE8bV0EGFrSsg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOshhMxdLFdcydXtAcO2vrVBmP1QAzO%2B38%3DVKZd200ZdQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Need Help in choosing Proper Technoloy for Multiuser management System

2019-05-03 Thread Balaji Shetty
Hi

*I have the requirement to create multi-user management system with ACL
support*

We have organization having different Section with respective Section Head
as User. Each Section have multiple  sub section with respective User.


*Root User get random Records initially.*


*Root user will change the records and assign records to User of one of the
Section for further processing.Section Head will assign to user Sub Section
Head. *

*One Section User can not see other section Information. Root user can see
any section information.*


*When I searched on Internet , i got answer as *
*Rest Framework  + React to implement.*

*Can you please suggest proper way to implement this project.*

*Thanking You in advance.*

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOu%3DBCZwkGwzwm-94Xz%2BVbk6fvb6Sk4dKtvEP2xQVq%3D0yQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Balaji Shetty
HI

*How can I add cascading drop down for Continent and Country in Django
Admin Panel.*

Here I add Continent and Country.

When i change Continent, Country should be changed automatically.

How can i achieve this.

Consider my model.py


class Continent(models.Model):

name = models.CharField(max_length=255)



class Country(models.Model):

continent = models.ForeignKey(Continent)

name = models.CharField(max_length=255)



class Location(models.Model):

continent = models.ForeignKey(Continent)

country = models.ForeignKey(Country)

city = models.CharField(max_length=50)

street = models.CharField(max_length=100

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India *
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtZ580o4Jv-zR0FiRhy6pdacJwo74zpP9xsd0P4YoxBXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Balaji Shetty
Thanks a lot for your reply Dear Jani Tiainen

I try it.



On Thursday, May 9, 2019, Jani Tiainen  wrote:

> You could try django-select2 for example.
>
> to 9. toukok. 2019 klo 11.03 Balaji Shetty 
> kirjoitti:
>
>>
>> HI
>>
>> *How can I add cascading drop down for Continent and Country in Django
>> Admin Panel.*
>>
>> Here I add Continent and Country.
>>
>> When i change Continent, Country should be changed automatically.
>>
>> How can i achieve this.
>>
>> Consider my model.py
>>
>>
>> class Continent(models.Model):
>>
>> name = models.CharField(max_length=255)
>>
>>
>>
>> class Country(models.Model):
>>
>> continent = models.ForeignKey(Continent)
>>
>> name = models.CharField(max_length=255)
>>
>>
>>
>> class Location(models.Model):
>>
>> continent = models.ForeignKey(Continent)
>>
>> country = models.ForeignKey(Country)
>>
>> city = models.CharField(max_length=50)
>>
>> street = models.CharField(max_length=100
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India *
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/CAECSbOtZ580o4Jv-zR0FiRhy6pdacJwo74zpP9xsd0P4Yo
>> xBXw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOtZ580o4Jv-zR0FiRhy6pdacJwo74zpP9xsd0P4YoxBXw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAHn91oe%3DbEAEJp%2BOfAOqnJFY8yHVymW%
> 2B3qn5RDnoM_WnkYWgnA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHn91oe%3DbEAEJp%2BOfAOqnJFY8yHVymW%2B3qn5RDnoM_WnkYWgnA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOsAHwhza6UPKGmtitp1KtXuhSsE%2B4nVJrb0OhvN4cujXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to make Django Project Mobile Compatible

2019-05-11 Thread Balaji Shetty
Hi

How can i make my Django Project view Mobile Compatible.
Should i use Angular JS / React  . Please let me know.

Thanks in Advance

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOveKW_5aohHGKCJcVxPtwMg-wTBC8ttVRpPJc3YOA7dKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to make Django Project Mobile Compatible

2019-05-11 Thread Balaji Shetty
Hi  Nick Sarbicki

Thank You very much for your reply.
May I know which framework is to be learned for necessary implementation?.
It should be easy to earn with help support.

On Sat, May 11, 2019 at 12:40 PM Nick Sarbicki 
wrote:

> Hi,
>
> Django is completely naive to whether a frontend is mobile friendly or not.
>
> You can use react or angular, you can also use many other frontend
> frameworks. Django can work with all frontend frameworks. The choice is
> entirely up to you.
>
> On Sat, 11 May 2019, 08:04 Balaji Shetty,  wrote:
>
>> Hi
>>
>> How can i make my Django Project view Mobile Compatible.
>> Should i use Angular JS / React  . Please let me know.
>>
>> Thanks in Advance
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOveKW_5aohHGKCJcVxPtwMg-wTBC8ttVRpPJc3YOA7dKg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOveKW_5aohHGKCJcVxPtwMg-wTBC8ttVRpPJc3YOA7dKg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGuvt92gdOmQSsZrW2BixcsFfc17DWbia0mfvv4rUYr7WZtyfw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGuvt92gdOmQSsZrW2BixcsFfc17DWbia0mfvv4rUYr7WZtyfw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOszXSWCEkEtxTmXQuK53k-A-AW_pPJVri_NWEqoovXunA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to make Django Project Mobile Compatible

2019-05-12 Thread Balaji Shetty
Dear Jani Tiainen
Thank You very Much for your Reply.

On Sat, May 11, 2019 at 11:28 PM Jani Tiainen  wrote:

> Hi,
>
> After all it's just HTML and CSS you need and you can make responsive
> layouting.
>
> One quite common CSS library is Bootstrap that allows rather easily to
> build layouts that works across the various sized devices.
>
> Of course you can go with any JS framework if you're planning to build
> single page app.
>
> la 11. toukok. 2019 klo 10.05 Balaji Shetty 
> kirjoitti:
>
>> Hi
>>
>> How can i make my Django Project view Mobile Compatible.
>> Should i use Angular JS / React  . Please let me know.
>>
>> Thanks in Advance
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOveKW_5aohHGKCJcVxPtwMg-wTBC8ttVRpPJc3YOA7dKg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOveKW_5aohHGKCJcVxPtwMg-wTBC8ttVRpPJc3YOA7dKg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHn91offk%2BV4uOJuLdA7vKS%3DPXRSgOz40ZzhrzmSQY3iAFs8Pg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHn91offk%2BV4uOJuLdA7vKS%3DPXRSgOz40ZzhrzmSQY3iAFs8Pg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOvRTfvDZWdGT4xVygewN%2BABR7i_PGXSZ9YjYT_d4t72HA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to

2019-05-13 Thread Balaji Shetty
Hi
Consider the demo Example

models.py



*from django.db import models

class Musician(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
instrument = models.CharField(max_length=100)

class Album(models.Model):
artist = models.ForeignKey(Musician, on_delete=models.CASCADE)
name = models.CharField(max_length=100)
release_date = models.DateField()
num_stars = models.IntegerField()*

*class Fan(models.Model):
artist = models.ForeignKey(Musician, on_delete=models.CASCADE)
Conutry = models.CharField(max_length=100)
**Name = models.CharField(max_length=100)
*

Here We have to keep Track of Musician Album as well as all Fan/Follower
of respective Musician.


Admin.py



*class AlbumInline(admin.TabularInline):
model = Album*

*class FanInline(admin.TabularInline):
model = Fan*


class MusicianAdmin(admin.ModelAdmin):

inlines = [*AlbumInline,FanInline *, ]

# code to register these 3 models
-

I have seperate Login User Account for Album
I have seperate Login User Accpunt for Fan


*My Question is*


*I want to add only Album record in Album Login Account*



*I want to add only Fan Record in Fan Login Account*


*Currently *
*In both login, Album and Fan Records can be added.  How cam i restrict these?*

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOsTUKoR0RbG%3DYZ18CGVwno1nJE%2BSXkyBWeiS6%3Dd%3DYm9pQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Can Anyone Please Provide djago-select2 Documentation

2019-05-14 Thread Balaji Shetty
Hi

I need Cascading drop down list in Django Admin GUI.

I have bee trying to use Django-select2 but i am not getting the desired
output.
( Example Select Continents, select respective Country under Continent )

Can Anyone Please Provide djago-select2 Documentation or any other simple
alternative. I want to use django admin Panel only. I am not designing any
form

I will appreciate your help.

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOuAhpUOrq8OvLFi3dFZtkoU703zWpW5RmzWkEGBa9GcSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can Anyone Please Provide djago-select2 Documentation

2019-05-14 Thread Balaji Shetty
Hi Julio Cojom

Thank You very much for your reply.
Can you please provide me the web link for necessary package installation
and steps also.
I have been trying since 4 hour and tried all the option for select2 from
different web sites still could not get success.
I will really appreciate if you do it.
Please.


On Wed, May 15, 2019 at 11:35 AM Julio Cojom 
wrote:

> Hi, I used a package exclusive for admin, it call django-select2-admin and
> it's magic. Only register in installed apps and that's all.
>
> Regards.
>
> El mar., 14 de may. de 2019 11:12 p. m., Balaji Shetty <
> balajishe...@gmail.com> escribió:
>
>> Hi
>>
>> I need Cascading drop down list in Django Admin GUI.
>>
>> I have bee trying to use Django-select2 but i am not getting the desired
>> output.
>> ( Example Select Continents, select respective Country under Continent )
>>
>> Can Anyone Please Provide djago-select2 Documentation or any other simple
>> alternative. I want to use django admin Panel only. I am not designing any
>> form
>>
>> I will appreciate your help.
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOuAhpUOrq8OvLFi3dFZtkoU703zWpW5RmzWkEGBa9GcSg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOuAhpUOrq8OvLFi3dFZtkoU703zWpW5RmzWkEGBa9GcSg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHRQUHkW5gXuEmLWfmf3p7Q3RmW%3DEuCSJ043F2i%3DRXbATq8ctA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHRQUHkW5gXuEmLWfmf3p7Q3RmW%3DEuCSJ043F2i%3DRXbATq8ctA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOveeFjzUjMhkd%2BpzNf8mv%3D7mA_7n2Kc4oWxXRomVR5SAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can Anyone Please Provide djago-select2 Documentation

2019-05-15 Thread Balaji Shetty
Thank once again. I followed the instruction but i am not getting any
changes.
Can you please see the error.

models.py





























*from django.db import models# from django import forms# from
django_select2.forms import ModelSelect2MultipleWidgetclass
Continent(models.Model):name = models.CharField(max_length=255)def
__str__(self): return self.name <http://self.name>class
Country(models.Model):continent =
models.ForeignKey(Continent,on_delete=models.CASCADE)name =
models.CharField(max_length=255)def __str__(self): return
self.name <http://self.name>class Location(models.Model):continent =
models.ForeignKey(Continent,on_delete=models.CASCADE)country  =
models.ForeignKey(Country,on_delete=models.CASCADE)city =
models.CharField(max_length=50)street =
models.CharField(max_length=100)def __str__(self): return
self.name <http://self.name>*
*--*

admin.py









*from django.contrib import adminfrom .models import Continent,Country,
Locationadmin.site.register(Country)admin.site.register(Location)admin.site.register(Continent)#
Register your models here.*
---

setting.py













*Application definitionINSTALLED_APPS = ['django_select2',
'django.contrib.admin','django.contrib.auth',
'django.contrib.contenttypes','django.contrib.sessions',
'django.contrib.messages','django.contrib.staticfiles','newapp',
#My App Name]*


*I downloaded PAckage *
* git clone https://github.com/applegrew/django-select2.git
<https://github.com/applegrew/django-select2.git>*

*from https://github.com/applegrew/django-select2
<https://github.com/applegrew/django-select2>*



On Wed, May 15, 2019 at 12:16 PM Test Bot  wrote:

> Okay so there is no need to go to different websites if you want to
> install a Python module. You will find almost everything related to Python
> modules in pypi.org, it includes everything like installation
> instructions, gut repo for the packages etc
>
> On Wed, May 15, 2019, 11:57 AM Balaji Shetty 
> wrote:
>
>> Hi Julio Cojom
>>
>> Thank You very much for your reply.
>> Can you please provide me the web link for necessary package installation
>> and steps also.
>> I have been trying since 4 hour and tried all the option for select2 from
>> different web sites still could not get success.
>> I will really appreciate if you do it.
>> Please.
>>
>>
>> On Wed, May 15, 2019 at 11:35 AM Julio Cojom 
>> wrote:
>>
>>> Hi, I used a package exclusive for admin, it call django-select2-admin
>>> and it's magic. Only register in installed apps and that's all.
>>>
>>> Regards.
>>>
>>> El mar., 14 de may. de 2019 11:12 p. m., Balaji Shetty <
>>> balajishe...@gmail.com> escribió:
>>>
>>>> Hi
>>>>
>>>> I need Cascading drop down list in Django Admin GUI.
>>>>
>>>> I have bee trying to use Django-select2 but i am not getting the
>>>> desired output.
>>>> ( Example Select Continents, select respective Country under Continent )
>>>>
>>>> Can Anyone Please Provide djago-select2 Documentation or any other
>>>> simple alternative. I want to use django admin Panel only. I am not
>>>> designing any form
>>>>
>>>> I will appreciate your help.
>>>>
>>>> --
>>>>
>>>>
>>>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information
>>>> Technology,*
>>>> *SGGS Institute of Engineering & Technology, Vishnupuri,
>>>> Nanded.MH.India*
>>>> *Official: bsshe...@sggs.ac.in  *
>>>> *  Mobile: +91-9270696267*
>>>>
>>>> --
>>>> 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 post to this group, send email to django-users@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAECSbOuAhpUOrq8OvLFi3dFZtkoU703zWpW5RmzWkEGBa9GcSg%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAECSbOuAhpUOrq8OvLFi3dFZtkoU703zWpW5RmzWkEGB

Re: Can Anyone Please Provide djago-select2 Documentation

2019-05-15 Thread Balaji Shetty
Correction in Previus Model









*class Location(models.Model):continent =
models.ForeignKey(Continent,on_delete=models.CASCADE)country  =
models.ForeignKey(Country,on_delete=models.CASCADE)city =
models.CharField(max_length=50)street =
models.CharField(max_length=100)def __str__(self): return
self.city <http://self.name>*

On Wed, May 15, 2019 at 12:35 PM Balaji Shetty 
wrote:

> Thank once again. I followed the instruction but i am not getting any
> changes.
> Can you please see the error.
>
> models.py
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *from django.db import models# from django import forms# from
> django_select2.forms import ModelSelect2MultipleWidgetclass
> Continent(models.Model):name = models.CharField(max_length=255)def
> __str__(self): return self.name <http://self.name>class
> Country(models.Model):continent =
> models.ForeignKey(Continent,on_delete=models.CASCADE)name =
> models.CharField(max_length=255)def __str__(self): return
> self.name <http://self.name>class Location(models.Model):continent =
> models.ForeignKey(Continent,on_delete=models.CASCADE)country  =
> models.ForeignKey(Country,on_delete=models.CASCADE)city =
> models.CharField(max_length=50)street =
> models.CharField(max_length=100)def __str__(self): return
> self.name <http://self.name>*
> *--*
>
> admin.py
>
>
>
>
>
>
>
>
>
> *from django.contrib import adminfrom .models import Continent,Country,
> Locationadmin.site.register(Country)admin.site.register(Location)admin.site.register(Continent)#
> Register your models here.*
> ---
>
> setting.py
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Application definitionINSTALLED_APPS = ['django_select2',
> 'django.contrib.admin','django.contrib.auth',
> 'django.contrib.contenttypes','django.contrib.sessions',
> 'django.contrib.messages','django.contrib.staticfiles','newapp',
> #My App Name]*
>
>
> *I downloaded PAckage *
> * git clone https://github.com/applegrew/django-select2.git
> <https://github.com/applegrew/django-select2.git>*
>
> *from https://github.com/applegrew/django-select2
> <https://github.com/applegrew/django-select2>*
>
>
>
> On Wed, May 15, 2019 at 12:16 PM Test Bot  wrote:
>
>> Okay so there is no need to go to different websites if you want to
>> install a Python module. You will find almost everything related to Python
>> modules in pypi.org, it includes everything like installation
>> instructions, gut repo for the packages etc
>>
>> On Wed, May 15, 2019, 11:57 AM Balaji Shetty 
>> wrote:
>>
>>> Hi Julio Cojom
>>>
>>> Thank You very much for your reply.
>>> Can you please provide me the web link for necessary package
>>> installation and steps also.
>>> I have been trying since 4 hour and tried all the option for select2
>>> from different web sites still could not get success.
>>> I will really appreciate if you do it.
>>> Please.
>>>
>>>
>>> On Wed, May 15, 2019 at 11:35 AM Julio Cojom 
>>> wrote:
>>>
>>>> Hi, I used a package exclusive for admin, it call django-select2-admin
>>>> and it's magic. Only register in installed apps and that's all.
>>>>
>>>> Regards.
>>>>
>>>> El mar., 14 de may. de 2019 11:12 p. m., Balaji Shetty <
>>>> balajishe...@gmail.com> escribió:
>>>>
>>>>> Hi
>>>>>
>>>>> I need Cascading drop down list in Django Admin GUI.
>>>>>
>>>>> I have bee trying to use Django-select2 but i am not getting the
>>>>> desired output.
>>>>> ( Example Select Continents, select respective Country under Continent
>>>>> )
>>>>>
>>>>> Can Anyone Please Provide djago-select2 Documentation or any other
>>>>> simple alternative. I want to use django admin Panel only. I am not
>>>>> designing any form
>>>>>
>>>>> I will appreciate your help.
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>> *Mr. Shetty Balaji S.Asst. ProfessorDepartm

Re: Can Anyone Please Provide djago-select2 Documentation

2019-05-15 Thread Balaji Shetty
*Hi  Julio Cojom,*

*Sorry .*
*I request , please do this favour on me. I have been searching from
morning but could not get any success.*

*Please run zip file and see the mistake and let me know please.*


*I will be thankful.*

*I followed the instructions and I successfully installed
django-admin-select2.*
*URL:  https://github.com/mgd020/django-admin-select2
<https://github.com/mgd020/django-admin-select2>*


*But i do not get Cascading Drop down updates for country and city.I get
all city under all countries.*

*Here is my Code*

* I have also attached Project Zip File.*
*Project are working and we can add Country,City and Map Model data.*


models.py



*from django.db import models*























*class Country(models.Model):name = models.CharField(max_length=255)
def __str__(self):return self.name <http://self.name>class
City(models.Model):name = models.CharField(max_length=255)country =
models.ForeignKey('Country',
related_name="cities",on_delete=models.CASCADE)def
__str__(self):return self.name <http://self.name>class
map1(models.Model): name = models.CharField(max_length=255)
continent = models.ForeignKey(Country,on_delete=models.CASCADE) country
= models.ForeignKey(City,on_delete=models.CASCADE) def
__str__(self):return self.name <http://self.name>*
*--*

admin.py








*from django.contrib import adminfrom .models import
Country,City,map1admin.site.register(Country)admin.site.register(City)admin.site.register(map1)*
---

setting.py


*INSTALLED_APPS = [*










*'django_admin_select2', # Necessary Package
'django.contrib.admin','django.contrib.auth',
'django.contrib.contenttypes','django.contrib.sessions',
'django.contrib.messages','django.contrib.staticfiles','newapp', #
App Name]*
**

On Wed, May 15, 2019 at 8:33 PM Julio Cojom 
wrote:

> Hi again,
>
> The package is this : pip install django-admin-select2
>
> It didn't have docs, just the git page (django-admin-select2
> <https://github.com/mgd020/django-admin-select2>) with a readme, its
> really easy, does all you need but you cant customize.
>
>
> Regards.
>
>
> El mié., 15 may. 2019 a las 2:53, Balaji Shetty ()
> escribió:
>
>> Correction in Previus Model
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *class Location(models.Model):continent =
>> models.ForeignKey(Continent,on_delete=models.CASCADE)country  =
>> models.ForeignKey(Country,on_delete=models.CASCADE)city =
>> models.CharField(max_length=50)street =
>> models.CharField(max_length=100)def __str__(self): return
>> self.city <http://self.name>*
>>
>> On Wed, May 15, 2019 at 12:35 PM Balaji Shetty 
>> wrote:
>>
>>> Thank once again. I followed the instruction but i am not getting any
>>> changes.
>>> Can you please see the error.
>>>
>>> models.py
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *from django.db import models# from django import forms# from
>>> django_select2.forms import ModelSelect2MultipleWidgetclass
>>> Continent(models.Model):name = models.CharField(max_length=255)def
>>> __str__(self): return self.name <http://self.name>class
>>> Country(models.Model):continent =
>>> models.ForeignKey(Continent,on_delete=models.CASCADE)name =
>>> models.CharField(max_length=255)def __str__(self): return
>>> self.name <http://self.name>class Location(models.Model):continent =
>>> models.ForeignKey(Continent,on_delete=models.CASCADE)country  =
>>> models.ForeignKey(Country,on_delete=models.CASCADE)city =
>>> models.CharField(max_length=50)street =
>>> models.CharField(max_length=100)def __str__(self): return
>>> self.name <http://self.name>*
>>> *--*
>>>
>>> admin.py
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *from django.contrib import adminfrom .models import Continent,Country,
>>> Loc

How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-16 Thread Balaji Shetty
Hi

Can anyone please provide me the resource for implementation of Cascading
Dependent Drop Down List in Django Admin GUI.

I do now want to write any code and use existing Admin GUI only. I tried
many select2 but could not get any success.

Here is my sample code

*I followed the instructions and I successfully installed
django-admin-select2.*
*URL:  https://github.com/mgd020/django-admin-select2
*


*But i do not get Cascading Drop down updates for country and city.I get
all city under all countries.*

*Here is my Code*

* I have also attached Project Zip File.*
*Project are working and we can add Country,City and Map Model data.*


models.py



*from django.db import models*























*class Country(models.Model):name = models.CharField(max_length=255)
def __str__(self):return self.name class
City(models.Model):name = models.CharField(max_length=255)country =
models.ForeignKey('Country',
related_name="cities",on_delete=models.CASCADE)def
__str__(self):return self.name class
map1(models.Model): name = models.CharField(max_length=255)
continent = models.ForeignKey(Country,on_delete=models.CASCADE) country
= models.ForeignKey(City,on_delete=models.CASCADE) def
__str__(self):return self.name *
*--*

admin.py








*from django.contrib import adminfrom .models import
Country,City,map1admin.site.register(Country)admin.site.register(City)admin.site.register(map1)*
---

setting.py


*INSTALLED_APPS = [*










*'django_admin_select2', # Necessary Package
'django.contrib.admin','django.contrib.auth',
'django.contrib.contenttypes','django.contrib.sessions',
'django.contrib.messages','django.contrib.staticfiles','newapp', #
App Name]*

*I downloaded PAckage *
* git clone https://github.com/applegrew/django-select2.git
*

*from https://github.com/applegrew/django-select2
*


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOsa9iinyDmfiLe4aHb9KCUJFSp6zWtBxCTFPu59_MDvVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
<>


Re: How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-16 Thread Balaji Shetty
Dear carlos
Thank You very much.

On Thu, May 16, 2019 at 8:16 PM carlos  wrote:

> try this app
> https://django-autocomplete-light.readthedocs.io/en/master/
>
> On Thu, May 16, 2019 at 5:59 AM Balaji Shetty 
> wrote:
>
>>
>> Hi
>>
>> Can anyone please provide me the resource for implementation of Cascading
>> Dependent Drop Down List in Django Admin GUI.
>>
>> I do now want to write any code and use existing Admin GUI only. I tried
>> many select2 but could not get any success.
>>
>> Here is my sample code
>>
>> *I followed the instructions and I successfully installed
>> django-admin-select2.*
>> *URL:  https://github.com/mgd020/django-admin-select2
>> <https://github.com/mgd020/django-admin-select2>*
>>
>>
>> *But i do not get Cascading Drop down updates for country and city.I get
>> all city under all countries.*
>>
>> *Here is my Code*
>>
>> * I have also attached Project Zip File.*
>> *Project are working and we can add Country,City and Map Model data.*
>>
>>
>> models.py
>>
>>
>>
>> *from django.db import models*
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *class Country(models.Model):name =
>> models.CharField(max_length=255)def __str__(self):return
>> self.name <http://self.name>class City(models.Model):name =
>> models.CharField(max_length=255)country = models.ForeignKey('Country',
>> related_name="cities",on_delete=models.CASCADE)def
>> __str__(self):return self.name <http://self.name>class
>> map1(models.Model): name = models.CharField(max_length=255)
>> continent = models.ForeignKey(Country,on_delete=models.CASCADE) country
>> = models.ForeignKey(City,on_delete=models.CASCADE) def
>> __str__(self):return self.name <http://self.name>*
>> *--*
>>
>> admin.py
>>
>>
>>
>>
>>
>>
>>
>>
>> *from django.contrib import adminfrom .models import
>> Country,City,map1admin.site.register(Country)admin.site.register(City)admin.site.register(map1)*
>> ---
>>
>> setting.py
>>
>>
>> *INSTALLED_APPS = [*
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *'django_admin_select2', # Necessary Package
>> 'django.contrib.admin','django.contrib.auth',
>> 'django.contrib.contenttypes','django.contrib.sessions',
>> 'django.contrib.messages','django.contrib.staticfiles','newapp', #
>> App Name]*
>>
>> *I downloaded PAckage *
>> * git clone https://github.com/applegrew/django-select2.git
>> <https://github.com/applegrew/django-select2.git>*
>>
>> *from https://github.com/applegrew/django-select2
>> <https://github.com/applegrew/django-select2>*
>>
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOsa9iinyDmfiLe4aHb9KCUJFSp6zWtBxCTFPu59_MDvVA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOsa9iinyDmfiLe4aHb9KCUJFSp6zWtBxCTFPu59_MDvVA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> att.
> Carlos Rocha
>
> --
> 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 post to this group, send emai

Re: How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-17 Thread Balaji Shetty
*Hi*


*I tried it https://django-autocomplete-light.readthedocs.io/en/master/
<https://django-autocomplete-light.readthedocs.io/en/master/> *
* but could not understand how to use it. I am new in Django. I could add
Cascading drop down as well as retrieve.*
*But how to use it in my code is the difficulty.*

*Can  anyone help me in getting Cascading interdependent drop down Features
with Foreign Key in Admin GUI only.*

On Thu, May 16, 2019 at 11:09 PM Balaji Shetty 
wrote:

> Dear carlos
> Thank You very much.
>
> On Thu, May 16, 2019 at 8:16 PM carlos  wrote:
>
>> try this app
>> https://django-autocomplete-light.readthedocs.io/en/master/
>>
>> On Thu, May 16, 2019 at 5:59 AM Balaji Shetty 
>> wrote:
>>
>>>
>>> Hi
>>>
>>> Can anyone please provide me the resource for implementation of
>>> Cascading Dependent Drop Down List in Django Admin GUI.
>>>
>>> I do now want to write any code and use existing Admin GUI only. I tried
>>> many select2 but could not get any success.
>>>
>>> Here is my sample code
>>>
>>> *I followed the instructions and I successfully installed
>>> django-admin-select2.*
>>> *URL:  https://github.com/mgd020/django-admin-select2
>>> <https://github.com/mgd020/django-admin-select2>*
>>>
>>>
>>> *But i do not get Cascading Drop down updates for country and city.I get
>>> all city under all countries.*
>>>
>>> *Here is my Code*
>>>
>>> * I have also attached Project Zip File.*
>>> *Project are working and we can add Country,City and Map Model data.*
>>>
>>>
>>> models.py
>>>
>>>
>>>
>>> *from django.db import models*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *class Country(models.Model):name =
>>> models.CharField(max_length=255)def __str__(self):return
>>> self.name <http://self.name>class City(models.Model):name =
>>> models.CharField(max_length=255)country = models.ForeignKey('Country',
>>> related_name="cities",on_delete=models.CASCADE)def
>>> __str__(self):return self.name <http://self.name>class
>>> map1(models.Model): name = models.CharField(max_length=255)
>>> continent = models.ForeignKey(Country,on_delete=models.CASCADE) country
>>> = models.ForeignKey(City,on_delete=models.CASCADE) def
>>> __str__(self):return self.name <http://self.name>*
>>> *--*
>>>
>>> admin.py
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *from django.contrib import adminfrom .models import
>>> Country,City,map1admin.site.register(Country)admin.site.register(City)admin.site.register(map1)*
>>> ---
>>>
>>> setting.py
>>>
>>>
>>> *INSTALLED_APPS = [*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *'django_admin_select2', # Necessary Package
>>> 'django.contrib.admin','django.contrib.auth',
>>> 'django.contrib.contenttypes','django.contrib.sessions',
>>> 'django.contrib.messages','django.contrib.staticfiles','newapp', #
>>> App Name]*
>>>
>>> *I downloaded PAckage *
>>> * git clone https://github.com/applegrew/django-select2.git
>>> <https://github.com/applegrew/django-select2.git>*
>>>
>>> *from https://github.com/applegrew/django-select2
>>> <https://github.com/applegrew/django-select2>*
>>>
>>>
>>> --
>>>
>>>
>>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information
>>> Technology,*
>>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>>> *Official: bsshe...@sggs.ac.in  *
>>> *  Mobile: +91-9270696267*
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving e

Re: How to

2019-05-18 Thread Balaji Shetty
Hello Nelson Varela  . Thank you very Much for your reply.
One more query - Should i check the permission ( by writing the extra code
) for extra Security.
Definitely Your solution works well for me. I have implemented the same
logic. But i want to know through the code



On Fri, May 17, 2019 at 7:32 PM Nelson Varela 
wrote:

> Take a look at django permissions/groups models where you can make groups
> and put these models in each group. After that you add the users to the
> group so they can only edit models in that group
>
> On Monday, May 13, 2019 at 9:30:08 AM UTC+2, Balaji Shetty wrote:
>>
>> Hi
>> Consider the demo Example
>>
>> models.py
>>
>>
>>
>> *from django.db import models
>>
>> class Musician(models.Model):
>> first_name = models.CharField(max_length=50)
>> last_name = models.CharField(max_length=50)
>> instrument = models.CharField(max_length=100)
>>
>> class Album(models.Model):
>> artist = models.ForeignKey(Musician, on_delete=models.CASCADE)
>> name = models.CharField(max_length=100)
>> release_date = models.DateField()
>> num_stars = models.IntegerField()*
>>
>> *class Fan(models.Model):
>> artist = models.ForeignKey(Musician, on_delete=models.CASCADE)
>> Conutry = models.CharField(max_length=100)
>> **Name = models.CharField(max_length=100)
>> *
>>
>> Here We have to keep Track of Musician Album as well as all Fan/Follower
>> of respective Musician.
>>
>>
>> Admin.py
>>
>>
>>
>> *class AlbumInline(admin.TabularInline):
>> model = Album*
>>
>> *class FanInline(admin.TabularInline):
>> model = Fan*
>>
>>
>> class MusicianAdmin(admin.ModelAdmin):
>>
>> inlines = [*AlbumInline,FanInline *, ]
>>
>> # code to register these 3 models
>> -
>>
>> I have seperate Login User Account for Album
>> I have seperate Login User Accpunt for Fan
>>
>>
>> *My Question is*
>>
>>
>> *I want to add only Album record in Album Login Account*
>>
>>
>>
>> *I want to add only Fan Record in Fan Login Account*
>>
>>
>> *Currently *
>> *In both login, Album and Fan Records can be added.  How cam i restrict 
>> these?*
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bssh...@sggs.ac.in *
>> *  Mobile: +91-9270696267*
>>
>> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e4a2ad0a-901c-4862-b313-9492783628cb%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/e4a2ad0a-901c-4862-b313-9492783628cb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOs3Zq%2Ba0qtK9H5kAspmCDAtjW5V85Bj-aVkixczZ_Ns7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-21 Thread Balaji Shetty
Hi

I am learning Django from last months and want to implement Cascading Drop
Down for Continent and  Country  in Admin GUI.

I dropped same query two times but i could not get exact correct solution.

I tried lot of option like
django-smart-select and many more..

But i could not get updates in drop down.

 Can Any Django Expert solve this issue? Your help would be highly
appreciated.

This is sample Model for  demonstration of the schema
models.py
--


class Continent(models.Model):
name = models.CharField(max_length=255)

def __str__(self):
return self.name


class Country(models.Model):
continent = models.ForeignKey(Continent,on_delete=models.CASCADE)
name = models.CharField(max_length=255)

def __str__(self):
return self.name

class Location(models.Model):
continent = models.ForeignKey(Continent,on_delete=models.CASCADE)
country = models.ForeignKey(Country,on_delete=models.CASCADE)
city = models.CharField(max_length=50)
street = models.CharField(max_length=100)

def __str__(self):
return self.city




-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOtoje0sdMsoeQvCO-mq-h-AQVOKtnYA3wFnLAE-tPhXGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-21 Thread Balaji Shetty
Hi

I have registered model in admin.py
Added Continent  ( Cont1, Cont2, Cont3 )

Added Country under Continent

Cont1 - Count11
Cont1- Count12

Cont2 - Count21
Cont2-Count22

Con3-Count31
Con3-Count31

When I add Location

When i select Cont1, I should get only Count11 , Count12

When i select Cont2, I should get only Count21 , Count22

When i select Cont3, I should get only Count31 , Count32

But I get all Countries under all Continent. Cascading dependency are not
shown

I tried different option but lot of issues are there .



Example



On Wed, May 22, 2019 at 10:56 AM Nitin Kumar 
wrote:

> Everything seems alright. It seems you haven't created any continents yet.
> The table is empty.
>
> On Wed, 22 May, 2019, 10:52 AM Balaji Shetty  wrote:
>
>> Hi
>>
>> I am learning Django from last months and want to implement Cascading
>> Drop Down for Continent and  Country  in Admin GUI.
>>
>> I dropped same query two times but i could not get exact correct solution.
>>
>> I tried lot of option like
>> django-smart-select and many more..
>>
>> But i could not get updates in drop down.
>>
>>  Can Any Django Expert solve this issue? Your help would be highly
>> appreciated.
>>
>> This is sample Model for  demonstration of the schema
>> models.py
>> --
>>
>>
>> class Continent(models.Model):
>> name = models.CharField(max_length=255)
>>
>> def __str__(self):
>> return self.name
>>
>>
>> class Country(models.Model):
>> continent = models.ForeignKey(Continent,on_delete=models.CASCADE)
>> name = models.CharField(max_length=255)
>>
>> def __str__(self):
>> return self.name
>>
>> class Location(models.Model):
>> continent = models.ForeignKey(Continent,on_delete=models.CASCADE)
>> country = models.ForeignKey(Country,on_delete=models.CASCADE)
>> city = models.CharField(max_length=50)
>> street = models.CharField(max_length=100)
>>
>> def __str__(self):
>> return self.city
>>
>>
>>
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOtoje0sdMsoeQvCO-mq-h-AQVOKtnYA3wFnLAE-tPhXGg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOtoje0sdMsoeQvCO-mq-h-AQVOKtnYA3wFnLAE-tPhXGg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKzNicGqspLgrFnYf%3D%2B22s8SJUc2uVTt5223UJ7Ba1d6ZbtqbA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKzNicGqspLgrFnYf%3D%2B22s8SJUc2uVTt5223UJ7Ba1d6ZbtqbA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOsdkJZ%3DPT7vxyt1K5c2%3D-%2B9_squ5SES0zK_vD5Dyo97Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Show different views based on user

2019-05-23 Thread Balaji Shetty
HI

Consider this example and you may get the solution

  Model name is Profile and in admin.py   override this
def get_form(self, request, obj=None, **kwargs):


-
admin.py

from django.contrib.auth.models import User

class ProfileAdmin(admin.ModelAdmin):

 def get_form(self, request, obj=None, **kwargs):

username = request.user.username   # code to extract property
print (username)

if username == "dgp":  #dgp is username
   self.exclude = ("CaseAdvocate","CaseActionTaken", )#
"CaseAdvocate","CaseActionTaken",are column names
   form = super(ProfileAdmin, self).get_form(request, obj, **kwargs)
   return form
else:
   form = super(ProfileAdmin, self).get_form(request, obj, **kwargs)
   return form

Replace dgp with your own username and write the query.
Here i am excluding "CaseAdvocate","CaseActionTaken" Columns in display for
"dgp" user
and showing all colums to other user



On Thu, May 23, 2019 at 6:08 AM Rounak Jain  wrote:

> I am new to Django. Below code returns objects created by the logged in
> user. If the user's role property has value 'super', then I want all the
> objects to be shown. If the user's role property is 'inter', then I want to
> show all objects except objects created by 'super'. Where is the right
> place to do this conditional querying?
> Thanks
>
> #views.py
>
> class TaskViewSet(ModelViewSet):
> serializer_class = TaskSerializer
> def get_queryset(self):
> return Task.objects.all().filter(created_by=self.request.user)
> def perform_create(self, serializer):
> serializer.save(created_by=self.request.user)
>
> #serializers.py
>
> class TaskSerializer(ModelSerializer):
>
> class Meta:
> model = Task
> fields = ('id', 'name', 'status', 'created_by')
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANNuxWPeGAgGEikRkoYgdp%3Dse9W0MBVxsLwac1W_BJw0%3DtmGOg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOvdAnRf3o_2qefcpET3bA03o7tQFzndEQrWV%3DjLA9h7zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


KeyError at /admin/newapp/profile/add/ and Search Error --- Related Field got invalid lookup: icontains

2019-05-26 Thread Balaji Shetty
Hi

Here i want to exclude some model filed depending upon type of User.

Example if username is "dgp", i want to exclude
in admin.py

  if username == "dgp":
*   self.exclude =
("UserNext","UserNextDate","UserNextDepartment","CaseStatus")*

*in*

def get_form(self, request, obj=None, **kwargs):
  I do not use fieldset and comment the code, i get field excluded in "dgp"
Login. Code execute successfully and fields get excluded.

But if i use filedset, I get the error

KeyError at /admin/newapp/profile/add/

"Key 'UserNext' not found in 'ProfileForm'. Choices are: CaseActionTaken,
 CaseAdvocate, CaseInwardDate, CaseLastDate, CaseNoticeDate, CaseNoticeSubject,4
 CaseNumber, CaseOppositePartyNames, CasePartyNames, CaseReceiverName,
 CaseSubject, CaseSubmittedDate, CaseYear, CourtType, District,
InwardNumber, State, SuitType, user."

--

here is admin.py


class ProfileAdmin(admin.ModelAdmin):


  save_on_top = True
  save_as = True

  list_display =
('user','CaseNumber','CaseYear','InwardNumber','CaseNoticeDate','CaseNoticeSubject',

'CaseReceiverName','CaseInwardDate','CaseActionTaken','CaseAdvocate','CasePartyNames',

'CaseOppositePartyNames','CaseLastDate','user','UserNext','UserNextDate','UserNextDepartment','CaseStatus'
 )

 search_fields  =
['user','CaseNumber','CaseYear','InwardNumber','CaseNoticeDate','CaseNoticeSubject',

'CaseReceiverName','CaseInwardDate','CaseActionTaken','CaseAdvocate','CasePartyNames',

'CaseOppositePartyNames','CaseLastDate','user','UserNext','UserNextDate','UserNextDepartment','CaseStatus'
   ]

  fieldsets =[
('Location information',
{'fields': ['State','District','user']  }  ),


('Department Internal information',
{'classes':['collapse'],'fields': [ ('InwardNumber','CaseInwardDate'),

('CaseNoticeSubject','CaseNoticeDate',),('CaseReceiverName','CaseActionTaken')
] } ),

('Court Case Information', {'classes':['collapse'],
'fields': [ ('CourtType','SuitType'),

('CaseYear','CaseNumber'),('CaseSubject','CaseSubmittedDate') ] } ),

('Party Information', {'classes':['collapse'],
'fields': [ ('CaseAdvocate'),

('CasePartyNames','CaseOppositePartyNames'),'CaseLastDate' ] } ),

('Incharge Officer Information',
{'classes':['collapse'],
'fields': [ ('UserNext','UserNextDate'),
('UserNextDepartment','CaseStatus') ] } )
 ]
  list_per_page = 5


  def get_form(self, request, obj=None, **kwargs):

username = request.user.username
print (username)

if username == "dgp":
   self.exclude =
("UserNext","UserNextDate","UserNextDepartment","CaseStatus")
   # self.exclude = ("location","birth_date","bio", )
   form = super(ProfileAdmin, self).get_form(request, obj, **kwargs)
   return form
else:
   form = super(ProfileAdmin, self).get_form(request, obj, **kwargs)
   return form

Can anybody help me in this regards.
If i comment Fieldset, than code works in "dgp" login with hiding necessary
fields.

Also my search is not working

FieldError at /admin/newapp/profile/

Related Field got invalid lookup: icontains



-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOvnO8bkkwAqhOJThtnCRRsRJVVzvT68vYkaxTEvpyM0tA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Hosting - Does pythonanywhere supports all features as AWS.

2019-05-26 Thread Balaji Shetty
Does pythonanywhere supports all features as AWS.

Or any service it does not as compared to AWS.



On Sat, May 25, 2019 at 6:50 PM Subramanian Sridharan <
clawsonfir...@gmail.com> wrote:

> I prefer PythonAnywhere  for hosting.
>
> On Saturday, May 25, 2019 at 5:27:12 PM UTC+5:30, Prakash Borade wrote:
>>
>> Friends tell me is hostgator.in server support django or not.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3514eafe-e9bb-4d94-b99a-cfc9a698aa0f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOt9nVgZQ4RvR34qaKVCT1L8CNYS7H%2BVbrm9_9%2BGqZX3kA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: KeyError at /admin/newapp/profile/add/ and Search Error --- Related Field got invalid lookup: icontains

2019-05-27 Thread Balaji Shetty
Hi

Sorry

This is my model


class Profile(models.Model):

RCS1 = "Regular_Civil_Suit"
SCS1 = "Special_Civil_Suit"
RCA1 = "Regular Civil Appeal"
MCA1 = "Miscellaneous Civil Appeal"
CMA1 = "Civil Miscellaneous Application"
LAR1 = "Land Acquisation Reference"
SED1 = "Special Execution Darkhast"
# AC1 = "Arbitration Case"

SuitType_Choice = [
   (RCS1, 'Regular Civil Suit'),
   (SCS1, 'Special Civil Suit'),
   (RCA1, 'Regular Civil Appeal'),
   (MCA1,'Miscellaneous Civil Appeal'),
   (CMA1,'Civil Miscellaneous Application'),
   (LAR1,'Land Acquisation Reference'),
   (SED1,'Special Execution Darkhast'),
   # (AC1,’Arbitration Case’),
  ]

State = models.CharField(max_length=100,default="MH")
District = models.CharField(max_length=100,default="Parbhani")

user = models.ForeignKey(User, on_delete=models.CASCADE,default="--")
InwardNumber = models.CharField(max_length=100,default="2019/3")
CaseNoticeDate = models.DateField(default="2019-01-24")
CaseNoticeSubject = models.CharField(max_length=100,default="Inquiry in
Department")
CaseReceiverName = models.CharField(max_length=100,default="Ramakant
Lal")
CaseInwardDate = models.DateField(default="2019-02-24")
CaseActionTaken=models.CharField(max_length=200,default="Verification
is going on")

CourtType =models.CharField(max_length=200,default="District Court
Parbhani")
SuitType= models.CharField(max_length=200,choices=SuitType_Choice,
default="Regular Civil Suit",verbose_name='--Suit Type-')
 # decision_taken = models.CharField(max_length=50,
choices=court_action,
 #   default="Appeared",verbose_name='Court Decision-')

CaseYear = models.PositiveIntegerField(default=2019)
CaseNumber = models.PositiveIntegerField(default=1)
CaseSubmittedDate = models.DateField(default="2019-01-14")
# Current_Date= models.DateField(default=timezone.now)
CaseSubject=models.CharField(max_length=200,default="Corruption and
Dowry")

CaseAdvocate=models.CharField(max_length=200,default="Reguar Civil
Suit")
CasePartyNames=models.CharField(max_length=200,default="Manish Singh")
CaseOppositePartyNames=models.CharField(max_length=200,default="Raj
Kumar ")
CaseLastDate = models.DateField(default="2019-05-24")

UserCurrent =  models.CharField(max_length=200,default="user1")
UserCurrentDate = models.DateField(default="2019-03-24")
UserCurrentDepartment =  models.CharField(max_length=200,default="IT")

UserNext =  models.CharField(max_length=200,default="user2")
UserNextDate = models.DateField(default="2019-06-24")
UserNextDepartment =  models.CharField(max_length=200,default="CS")

CaseStatus= models.CharField(max_length=100,default="Pending")


# CaseNumber = models.PositiveIntegerField(default=1)
# CaseYear = models.PositiveIntegerField(default=2019)

class Meta:
unique_together = (('CaseNumber', 'CaseYear'),)


def __str__(self):
return '%s/%s' % (self.CaseNumber, self.CaseYear)



On Mon, May 27, 2019 at 10:12 PM Derek  wrote:

> Your first error refers to a ProfileForm; you need to post the form
> definition code here as well.
>
> On Sunday, 26 May 2019 20:48:09 UTC+2, Balaji wrote:
>>
>> Hi
>>
>> Here i want to exclude some model filed depending upon type of User.
>>
>> Example if username is "dgp", i want to exclude
>> in admin.py
>>
>>   if username == "dgp":
>> *   self.exclude =
>> ("UserNext","UserNextDate","UserNextDepartment","CaseStatus")*
>>
>> *in*
>>
>> def get_form(self, request, obj=None, **kwargs):
>>   I do not use fieldset and comment the code, i get field excluded in
>> "dgp" Login. Code execute successfully and fields get excluded.
>>
>> But if i use filedset, I get the error
>>
>> KeyError at /admin/newapp/profile/add/
>>
>> "Key 'UserNext' not found in 'ProfileForm'. Choices are: CaseActionTaken,
>>  CaseAdvocate, CaseInwardDate, CaseLastDate, CaseNoticeDate, 
>> CaseNoticeSubject,4
>>  CaseNumber, CaseOppositePartyNames, CasePartyNames, CaseReceiverName,
>>  CaseSubject, CaseSubmittedDate, CaseYear, CourtType, District,
>> InwardNumber, State, SuitType, user."
>>
>> --
>>
>> here is admin.py
>>
>>
>> class ProfileAdmin(admin.ModelAdmin):
>>
>>
>>   save_on_top = True
>>   save_as = True
>>
>>   list_display =
>> ('user','CaseNumber','CaseYear','InwardNumber','CaseNoticeDate','CaseNoticeSubject',
>>
>> 'CaseReceiverName','CaseInwardDate','CaseActionTaken','CaseAdvocate','CasePartyNames',
>>
>> 'CaseOppositePartyNames','CaseLastDate','user','UserNext','UserNextDate','UserNextDepartment','CaseStatus'
>>  )
>>
>>  search_fields  =
>> ['user','CaseNumber','CaseYear','InwardNumber','CaseNoticeDate','CaseNoticeSubject',
>>
>> 'CaseReceiverName','CaseInwardDate','CaseActionTaken','CaseAdvocate','CasePartyNames',
>>
>> 'CaseOppositePartyNames','CaseLastDate','use

Re: Hosting - Does pythonanywhere supports all features as AWS.

2019-05-27 Thread Balaji Shetty
Than You

On Mon, May 27, 2019 at 7:50 PM Chandrashekhar Singh <
chandrashekhar...@gmail.com> wrote:

> Hii,
> It will better if you ask or email python anywhere directly
>
>
> On Sun, May 26, 2019, 2:49 PM Balaji Shetty 
> wrote:
>
>> Does pythonanywhere supports all features as AWS.
>>
>> Or any service it does not as compared to AWS.
>>
>>
>>
>> On Sat, May 25, 2019 at 6:50 PM Subramanian Sridharan <
>> clawsonfir...@gmail.com> wrote:
>>
>>> I prefer PythonAnywhere <https://www.pythonanywhere.com/> for hosting.
>>>
>>> On Saturday, May 25, 2019 at 5:27:12 PM UTC+5:30, Prakash Borade wrote:
>>>>
>>>> Friends tell me is hostgator.in server support django or not.
>>>>
>>> --
>>> 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/3514eafe-e9bb-4d94-b99a-cfc9a698aa0f%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/3514eafe-e9bb-4d94-b99a-cfc9a698aa0f%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOt9nVgZQ4RvR34qaKVCT1L8CNYS7H%2BVbrm9_9%2BGqZX3kA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOt9nVgZQ4RvR34qaKVCT1L8CNYS7H%2BVbrm9_9%2BGqZX3kA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADNvQ1P15FU5vgzZ5CScTXQ7X7_6-ribJzO%2BZ%3Dkwj3yTHhv-DA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADNvQ1P15FU5vgzZ5CScTXQ7X7_6-ribJzO%2BZ%3Dkwj3yTHhv-DA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOv3U2CY%3DUfpNMaVkB8D%3DPz6yKVY_cj-ZPq-N9kHiraWmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Hosting - Does pythonanywhere supports all features as AWS.

2019-05-27 Thread Balaji Shetty
High Chetan

Thank You very much.

On Mon, May 27, 2019 at 5:43 PM Chetan Ganji  wrote:

> Hi Balaji Sir,
>
> AFAIK, Python Anywhere is Shared Hosting Provider for Django. Suitable for
> Small to Medium sized Websites and Webapps.
> Its like a tiny mouse.
>
> AWS is a platform to create online Platforms like Python Anywhere in the
> cloud.
> i.e. You can create decentralised online platforms, based on microservices
> architecture.
> You can also create monolithic architecture webapps.
> Its like a giant Elephant.
>
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji.che...@gmail.com
> http://ryucoder.in
>
>
> On Mon, May 27, 2019 at 12:19 AM Balaji Shetty 
> wrote:
>
>> Does pythonanywhere supports all features as AWS.
>>
>> Or any service it does not as compared to AWS.
>>
>>
>>
>> On Sat, May 25, 2019 at 6:50 PM Subramanian Sridharan <
>> clawsonfir...@gmail.com> wrote:
>>
>>> I prefer PythonAnywhere <https://www.pythonanywhere.com/> for hosting.
>>>
>>> On Saturday, May 25, 2019 at 5:27:12 PM UTC+5:30, Prakash Borade wrote:
>>>>
>>>> Friends tell me is hostgator.in server support django or not.
>>>>
>>> --
>>> 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/3514eafe-e9bb-4d94-b99a-cfc9a698aa0f%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/3514eafe-e9bb-4d94-b99a-cfc9a698aa0f%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bsshe...@sggs.ac.in  *
>> *  Mobile: +91-9270696267*
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAECSbOt9nVgZQ4RvR34qaKVCT1L8CNYS7H%2BVbrm9_9%2BGqZX3kA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOt9nVgZQ4RvR34qaKVCT1L8CNYS7H%2BVbrm9_9%2BGqZX3kA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMKMUjv9YViZNo8_65VvTAhXLPT0tG%3Dn3zB621aEAiZh2cZJJQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMKMUjv9YViZNo8_65VvTAhXLPT0tG%3Dn3zB621aEAiZh2cZJJQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOuY6r-czfX97Zcuwc%2Bx759F%3D%3DX_8ioBktp-E_Exee5Rjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to restore Models original Properties - Problem in Models column Exclude

2019-05-27 Thread Balaji Shetty
*Hi*

*i have encountered very strange problem.  have two user . One is superuser
of name "root" and another is general user of name "dgp". I have model of
Name Profile with 21 fields around.*

*I want to show all field of Model Profile in "root" login.*
*I want to exclude 4 field of Model Profile in "dgp" login.*

* I get correct output If i do login in this sequence root - dgp*
* I get wrong output If i do login in this sequence  dgp - root*
*( Means I get 4 field excluded in root Login also. )*
*Means once i do login using "dgp" user , i always get all 4 fields
excluded in subsequent login for any user unless and until i restart the
server.*

*I have a model of name Profile and I want to exclude four fields for user
of name  "dgp" .*


* Fields are *


* username = request.user.usernameif username == "dgp":
 self.exclude =
('UserNext','UserNextDate','UserNextDepartment','CaseStatus', )*

*I have superuser as root.*
*1.  When I run the code and do the login using root user login*

*I get all Fields of Profile Model. *

*2 I do logout and Login Using "dgp" user. I get all Fields of Profile
Model except *
*the four fields.
'UserNext','UserNextDate','UserNextDepartment','CaseStatus', )*

*Here My code Execute successfully.*

*But when I change the sequence of Login, Code shows the *

* all Fields of Profile Model except *
*the four fields in both login "dgp" as well as "root".*

*I have overridden Models Two methods. Necessary Model and admin code is
shown below.*


*Please help n this regards.*



*models.py*

*---*






































































*class Profile(models.Model):RCS1 = "Regular_Civil_Suit"SCS1 =
"Special_Civil_Suit"RCA1 = "Regular Civil Appeal"MCA1 =
"Miscellaneous Civil Appeal"CMA1 = "Civil Miscellaneous Application"
LAR1 = "Land Acquisation Reference"SED1 = "Special Execution Darkhast"
  # AC1 = "Arbitration Case"SuitType_Choice = [   (RCS1,
'Regular Civil Suit'),   (SCS1, 'Special Civil Suit'),
 (RCA1, 'Regular Civil Appeal'),   (MCA1,'Miscellaneous Civil
Appeal'),   (CMA1,'Civil Miscellaneous Application'),
 (LAR1,'Land Acquisation Reference'),   (SED1,'Special Execution
Darkhast'),   # (AC1,’Arbitration Case’),  ]State =
models.CharField(max_length=100,default="MH")District =
models.CharField(max_length=100,default="Parbhani")   user =
models.ForeignKey(User, on_delete=models.CASCADE,default="--")
InwardNumber = models.CharField(max_length=100,default="2019/3")
CaseNoticeDate = models.DateField(default="2019-01-24")
CaseNoticeSubject = models.CharField(max_length=100,default="Inquiry in
Department")CaseReceiverName =
models.CharField(max_length=100,default="Ramakant Lal")CaseInwardDate =
models.DateField(default="2019-02-24")
CaseActionTaken=models.CharField(max_length=200,default="Verification is
going on")  CourtType
=models.CharField(max_length=200,default="District Court Parbhani")
SuitType= models.CharField(max_length=200,choices=SuitType_Choice,
default="Regular Civil Suit",verbose_name='--Suit Type-') #
decision_taken = models.CharField(max_length=50, choices=court_action,
 #   default="Appeared",verbose_name='Court Decision-')  CaseYear =
models.PositiveIntegerField(default=2019)CaseNumber =
models.PositiveIntegerField(default=1)CaseSubmittedDate =
models.DateField(default="2019-01-14")# Current_Date=
models.DateField(default=timezone.now)
CaseSubject=models.CharField(max_length=200,default="Corruption and
Dowry")  CaseAdvocate=models.CharField(max_length=200,default="Reguar
Civil Suit")
CasePartyNames=models.CharField(max_length=200,default="Manish Singh")
CaseOppositePartyNames=models.CharField(max_length=200,default="Raj Kumar
")CaseLastDate = models.DateField(default="2019-05-24") UserCurrent
=  models.CharField(max_length=200,default="user1")UserCurrentDate =
models.DateField(default="2019-03-24")UserCurrentDepartment =
 models.CharField(max_length=200,default="IT")   UserNext =
 models.CharField(max_length=200,default="user2")UserNextDate =
models.DateField(default="2019-06-24")UserNextDepartment =
 models.CharField(max_length=200,default="CS")CaseStatus=
models.CharField(max_length=100,default="Pending")# CaseNumber =
models.PositiveIntegerField(default=1)# CaseYear =
models.PositiveIntegerField(default=2019)class Meta:
unique_together = (('CaseNumber', 'CaseYear'),) def __str__(self):
  return '%s/%s' % (self.CaseNumber, self.CaseYear)*
*---*




admin.py
+++






































*def add_view(self, request, extra_context=None):username =
request.user.usernameprint("- Inside ADD VIEW Method")
  print (username)self._request = requestif username ==
"dgp"

Re: What's wrong with this model

2019-05-27 Thread Balaji Shetty
Hi

You may change elogin column syntax and provide default="Some_Value" .This
may work.


On Tuesday, May 28, 2019, Chandrashekhar Singh 
wrote:

> You have to add null= true to each model field since database needs
> default value
>
> On Mon, May 27, 2019, 5:52 PM Saeed Pooladzadeh 
> wrote:
>
>> Hello
>>
>> I made this model and think everything is fine:
>>
>> class Smodel(models.Model):
>>
>> eid=models.AutoField(primary_key=True)
>># eid=models.IntegerField(default=0)
>> elogin = models.CharField(max_length=8)
>> epassword= models.CharField(max_length=8)
>>
>> elikeDay=models.IntegerField(default=0)
>> efollowPerDay=models.IntegerField(default=0)
>>
>>
>>
>> #esession = models.TextField()
>> class Meta:
>> db_table = "saeed"
>>
>>
>>   'But when I try to 'make migration
>> I get this error:
>>
>> You are trying to add a non-nullable field 'elogin' to smodel without a
>> default; we can't do that (the database needs something to populate
>> existing rows).
>> Please select a fix:
>>  1) Provide a one-off default now (will be set on all existing rows with
>> a null value for this column)
>>  2) Quit, and let me add a default in models.py
>> Select an option:
>>
>>
>> *What is wrong with this model and how can I resolve it?*
>>
>> regards,
>> Saeed
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/dee2a6de-49e9-45c4-8536-0bed15038bd9%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CADNvQ1P1yGnosE7%3DLEaFsehLF3zLpWFgtgw_H560L%
> 2BRkHjBiaQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOs-2rPxAc9Zm0oLHn62iwZDu0OP6K4uOVb08NzXrORh0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to restore Models original Properties - Problem in Models column Exclude

2019-05-28 Thread Balaji Shetty
Dear  Alexis Roda Sir

Thank You very much for your nice reply. I check it.

On Tue, May 28, 2019 at 1:55 AM Alexis Roda <
alexis.roda.villalo...@gmail.com> wrote:

> Not an admin expert here.
>
> You are modifying the modeladmin instance and, by the behavior you're
> describing, it looks like it is a global (shared) object. I'm guessing, you
> can confirm this by printing id(self) in add_view(). I'll bet you get the
> same value in each request, so the instance is shared, so the change is
> visible (persisted) across request boundaries.
>
> You may think about adding self.exclude = () in the else branch in order
> to not exclude anything. Don't do that, you may end up leaking private
> information to dgp if both root and dgp are logged in at the same time.
>
> Instead override the get_exclude method.
>
> See
> https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_exclude
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMDYoXbb42hpu3jAATXTwxPw9kO8XeZpLOczbNa-Bzw5QAdGuQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOv-cB_VgQgp6V6SgkyvpyxScJuoEOB2nwi3C%3D7Ahi6aWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


SOLUTION FounD : How to restore Models original Properties - Problem in Models column Exclude

2019-05-28 Thread Balaji Shetty
This is the proper code to customize models column userwise.
Here we are sharing model among multiple user and depending upon right
access, it is visible

in admin.py

  normaluser_fields =
['user','CourtType','SuitType','CaseNumber','CaseYear','CaseAdvocate','CasePartyNames',
'CaseOppositePartyNames','CaseLastDate']
  superuser_fields =
['UserNext','UserNextDate','UserNextDepartment','CaseStatus']
  inward_fields =
['InwardNumber','CaseNoticeDate','CaseNoticeSubject','CaseReceiverName','CaseInwardDate','CaseActionTaken']


  def get_form(self, request, obj=None, **kwargs):

username = request.user.username

print("- Inside get_exclude Method")
print (username)

if username == 'dgp': # if user is not a superuser

# if request.user.is_superuser:
# print("-  ***  Inside ROOT LOGIN ***---")

self.fields = self.normaluser_fields
elif username == 'inumber':
print("-  ***  Inside DGP LOGIN ***---")
self.fields = self.inward_fields
else:
self.fields = self.normaluser_fields + self.superuser_fields +
self.inward_fields


return super(ProfileAdmin, self).get_form(request, obj, **kwargs)



On Tue, May 28, 2019 at 1:02 PM Balaji Shetty 
wrote:

> Dear  Alexis Roda Sir
>
> Thank You very much for your nice reply. I check it.
>
> On Tue, May 28, 2019 at 1:55 AM Alexis Roda <
> alexis.roda.villalo...@gmail.com> wrote:
>
>> Not an admin expert here.
>>
>> You are modifying the modeladmin instance and, by the behavior you're
>> describing, it looks like it is a global (shared) object. I'm guessing, you
>> can confirm this by printing id(self) in add_view(). I'll bet you get
>> the same value in each request, so the instance is shared, so the change is
>> visible (persisted) across request boundaries.
>>
>> You may think about adding self.exclude = () in the else branch in order
>> to not exclude anything. Don't do that, you may end up leaking private
>> information to dgp if both root and dgp are logged in at the same time.
>>
>> Instead override the get_exclude method.
>>
>> See
>> https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_exclude
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMDYoXbb42hpu3jAATXTwxPw9kO8XeZpLOczbNa-Bzw5QAdGuQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMDYoXbb42hpu3jAATXTwxPw9kO8XeZpLOczbNa-Bzw5QAdGuQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
>
>
> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
> *Official: bsshe...@sggs.ac.in  *
> *  Mobile: +91-9270696267*
>
>

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOsDv%2Byx-D382S45y2%3DqfYo3FHxyUytqYDm%2B62DYkZopig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: SOLUTION FounD : How to restore Models original Properties - Problem in Models column Exclude

2019-05-31 Thread Balaji Shetty
Dear Alexis Roda Sir

Thank You very Much.

definitely Race Condition may arise if we do not put code inn critical
section. But your suggested approach did not work and i found another
alternative which is working fine. If we put this code with necessary care
than will it be ok?



On Tue, May 28, 2019 at 8:33 PM Alexis Roda <
alexis.roda.villalo...@gmail.com> wrote:

> No, it isn't. It's not thread safe.
>
> Changes in shared state in multi-threaded code may lead to race
> conditions[1].
>
> Depending on your usage it may be very unlikely, but under the right
> circumstances root may end up having some missing fields in the form or dgp
> may see fields that it is not intended to see.
>
> Either protect the critical section[2] with some kind of lock or, as I
> suggested in my previous answer, create non-shared (request local) state.
>
>
> [1] https://en.wikipedia.org/wiki/Race_condition
> [2] https://en.wikipedia.org/wiki/Critical_section
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMDYoXa16C5goSadFbSoXQg1-v2zh9vrq%2BAk%3Dkqbq1rk%3DsgSQw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOvKUK0H2mrt_S%2BhmbVmmeneQXXc%2BR9a%3DFGHE7XOVmOK-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Error - Cannot query "dgp": Must be "Employee" instance. ( dgp is userName and Employee is Model Name )

2019-05-31 Thread Balaji Shetty
HI

I get the error when i enter the records of Profile Model and save it. i
get GUI for model.

I created group and given access of both model to dgp user.


ValueError at /admin/newapp/profile1/

  dgp is my user name and Employee is the model name.

Can anybody help me in this regards

Employee Refers to User Model ( Foreign Key Relation)
Profile Model Refers to Employee Model ( Foreign Key Relation)

Models.py



class Employee(models.Model):
   * user = models.OneToOneField(User,
on_delete=models.CASCADE,primary_key="True")*
department = models.CharField(max_length=100)
level = models.IntegerField()
parentlevel = models.IntegerField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)



def __str__(self):
return '%s' % (self.user)




class Profile(models.Model):

State = models.CharField(max_length=100,default="MH")
District = models.CharField(max_length=100,default="Parbhani")

  *  user = models.ForeignKey(Employee, on_delete=models.CASCADE)*
InwardNumber = models.CharField(max_length=100,default="2019/3")


admin.py

class Profile1Admin(admin.ModelAdmin):

  def get_form(self, request, obj=None, **kwargs):

username = request.user.username

print("- Inside get_exclude Method")
print (username)

if username == 'dgp': # if user is not a superuser

LOGIC 1 
elif username == 'inumber':

LOGIC 2 
print("-  ***  Inside DGP LOGIN ***---")
self.fields = self.inward_fields
else:
Logic 3 --

return super(Profile1Admin, self).get_form(request, obj, **kwargs)

Can Anyone please help me in this regards.


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOvG66UTQFMZHemVrfJY0zdoteyfFQ3NK6_6vxqAgy2OyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


What is the best way to write the code for Face Detection in Django ( Any Library or third party )

2019-06-20 Thread Balaji Shetty
*Hi*


*Consider the following Scenario. We will take attendance in a class based
on students Face Detection. Suppose there are 100 Students in a class. *

*If Students Face detected then Presenty model field in ATTENDANCE will be
1 or 0. ( Boolean )*

 I have a model of Name STUDENTS consisting of following Fileds.
*STUDENTS ( Class, Name,Age, Gender,MobNo, photo)*
*ATTENDANCE(Name,Date,Presenty)*

Our application will detect the face and make presenty in ATTENDANC Model(
Present or Absent ) on particular Date for that Students.

 *Suppose  we have record of 100 images in Model STUDENTS stored on server.*


*Our Client application will take one input image through Web Cam ( Image
may be one  from 100 images) , send it to server  and cross verify all the
images (photos) in our model. *

Image having highest matching , server  extract it's details and Model
field presenty will be 1.

*My Question is how can we write the code in Django. Definitely we need to
train the network using ANN. We need to use Deep Learning.*

* So what is the best way . Is there any library in Django. I searched and
got some solution like OpenCV or AWS paid service.*


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOuq1v8LVrbTBnmL%2B5sYJ7kA8bqoShriPZxooLSq3XktWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to create Different Graphs and PDF Reports

2019-06-24 Thread Balaji Shetty
HI
can anyone suggest How to create Different Graphs and PDF Reports in Django
Admin Panel itself which work on Models with relation.
It there any library.



-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOvi0sAta%3Do%2BmBf%2BVTBbTcAU6ZmZZBvWKoaU1T4-TFf2jw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django to exe ... windows executable

2019-07-02 Thread Balaji Shetty
Hello everyone

I want to can work my D jango application into exe   format  this
application will run on windows machine my application have libraries and
dependencies.

 There are lots of options which are available on web.
 which is the best option.

please help me

Thank you very much.  Have a good day




-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECSbOsZob4OvbxhChcdsLAN1JBw6EieVKGOsnsar3yVV5wYrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Dashboard in Django Admin only

2020-06-01 Thread Balaji Shetty
Thank you very much for your reply and support.

I will definitely follow it.

Yes

I ma trying to help Government for Covid 19 Dashboard.


On Sunday, May 31, 2020, Derek  wrote:

> There are numerous ways to design a front-end dashboard; this a highly
> contested domain on the web!
>
> Just some examples, using Django + various other tech are:
>
> * https://www.highcharts.com/blog/tutorials/create-a-
> dashboard-using-highcharts-and-django/
> * https://dreisbach.us/articles/building-dashboards-with-django-and-d3/
> * https://morioh.com/p/88d6fc714f52
>
> I suggest you look at delivering data from the back end (your Django
> models) with Django REST Framer (rather than hand-coded JSON); its takes a
> bit of work to setup but its the most flexible going forward in terms of
> future needs. e.g.
> * https://medium.com/swlh/build-your-first-rest-api-
> with-django-rest-framework-e394e39a482c
>
> P.S. Looks like you  are trying to support work for COVID-19 - all the
> best with that!
>
>
> On Saturday, 30 May 2020 17:08:23 UTC+2, Balaji wrote:
>>
>> Hi
>>
>>
>> If I want to generate such Dashboard in Djano Admin only
>>
>> Can anyone suggest pypi package..
>>
>> Any Sample code is available on git.
>>
>> 2 situation
>>
>> 1. Only for 1 model
>>
>> 2 For 2 model connected by Foreign Key relationships
>>
>>
>>
>>
>> --
>> Mr Shetty Balaji
>> Asst. Prof.
>> IT Department
>> SGGS I&T
>> Nanded. My. India
>>
>> --
> 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/8415ab3f-f1da-4380-b29e-499a1fc9a803%40googlegroups.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOtkHT5yaz3edzjzB_EVLs9V64K-%3DmFesspWXDJg8T5%3DBw%40mail.gmail.com.


Django Report Generation Tool

2020-06-04 Thread Balaji Shetty
Hi

Can anyone suggest for report generation tool which involves annotate
queries with operations avg, min, max, sum and count.

1. In django Admi

2 In Tepmlates


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOtw%2BFGRRA3XmpTcRMiDP9%3DuJPXmqVpdCcyuo7AsMwbm7Q%40mail.gmail.com.


Need Help in Django DataFrames Graph Generation

2020-06-06 Thread Balaji Shetty
Hi

Can any body help me in this scenario. Please see the attached file.

X axis is Date and Y Axis are Attendance of Physics , chemistry,  math and
English Subject Students totals.  How can I pass Data from model into
dataframe object.

This  example is Static. I want to get data Dynamically from model and
display in Graph.

Model(Date, Subject,Students-Roll-No,Attended) Attended is 0 or 1 value and
Subject are Physics, chemistry, mathematics, english and Students-Roll-No
are from 1 to 20. Assumptions

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-7276300495*

-- 
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/CAECSbOutt_4f6yq%3DnAjYa7_d0k1P4EcD%3DRaufwNK2zCufv2Zow%40mail.gmail.com.


Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-08 Thread Balaji Shetty
Nice

Can you please share sample code on git link.

This is very common requirement in every project



On Tuesday, June 9, 2020, chaitanya orakala 
wrote:

> Thank You, Amine Aziz. I tried jquery and it worked. its so simple once we
> know jquery.
> do help others like you did to me.
>
> On Sun, Jun 7, 2020 at 1:18 PM AMINE AZIZ  wrote:
>
>> I will share with you my iwn code used in admin , but it still the same
>> as the front end
>>
>> withe jQuery i can show input or hide it , so you will do the same with
>> popup , by default it will be display none, and with Jquery you can show it
>> if user change value to yes dropdown (select)
>>
>> you will use id div of pupup to show it or hide it
>>
>>
>> if (!$) {
>> // Need this line because Django also provided jQuery and namespaced as 
>> django.jQuery
>> $ = django.jQuery;
>> }
>>
>>
>>
>> $(document).ready(function() {
>>
>> $("#id_paysPartenaires").change(function()
>> {
>>
>>
>>
>>  var 
>> total_partenaire=$("#id_multipartenairecooperationbilaterale_set-TOTAL_FORMS").val()
>> var SelectNumber =  i
>>  
>> SelectedValuePartenaire=$("#id_multipartenairecooperationbilaterale_set-"+SelectNumber+"-multiPartenairePP").val()
>>  //alert(SelectNumber)
>>
>>
>>
>> 
>> $("[id=div-2-multiAdefinir]:eq("+SelectNumber+")").hide();
>> 
>> $("[id=div-2-multiGouvernementPP]:eq("+SelectNumber+")").hide();
>>
>> $("[id=div-2-multiGouvernementPP]:eq("+SelectNumber+")").hide();
>> 
>> $("[id=div-2-multiPaysPP]:eq("+SelectNumber+")").show();
>>   }
>>
>>
>> });
>>
>>
>> Le dimanche 7 juin 2020 07:34:00 UTC+1, Sai a écrit :
>>>
>>> Hi guys,
>>> I am working on a* Django project,* which involves submission form and
>>> saving the data in the database using model form.  I am stuck with one of
>>> the functionalities of form which should work like for example "do you want
>>> benefit plan: *YES,* *next Field options should pop up*. if click* NO,
>>> nothing should happen* and move to the next question."
>>>
>>> I went through all over the internet and found the dependent drop-down
>>> select option but not like field pop up as we click through te form.
>>>
>>> Please let me know how to achieve this in a clear way as I am new to
>>> Django and programming as well.
>>>
>>> Thank You so much in advance.
>>>
>> --
>> 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/3f3bf262-7fac-4818-836e-dc8532dae707o%
>> 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/CAPcTzRabB90jUEuYj1v-9JWdOMqqsM4fjN-
> TEq1CwOcwEPX1zA%40mail.gmail.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOt4OiS_WLAucNWQtwpWuZ_LZe1hXyM4%3DFXZzmm6mSVGHw%40mail.gmail.com.


Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-10 Thread Balaji Shetty
Thank You Very Much for considering advice

On Wed, Jun 10, 2020 at 8:11 AM chaitanya orakala 
wrote:

> sure, I will do it by tomorrow
>
>
> On Tue, Jun 9, 2020 at 2:35 AM Balaji Shetty 
> wrote:
>
>> Nice
>>
>> Can you please share sample code on git link.
>>
>> This is very common requirement in every project
>>
>>
>>
>> On Tuesday, June 9, 2020, chaitanya orakala 
>> wrote:
>>
>>> Thank You, Amine Aziz. I tried jquery and it worked. its so simple once
>>> we know jquery.
>>> do help others like you did to me.
>>>
>>> On Sun, Jun 7, 2020 at 1:18 PM AMINE AZIZ  wrote:
>>>
>>>> I will share with you my iwn code used in admin , but it still the same
>>>> as the front end
>>>>
>>>> withe jQuery i can show input or hide it , so you will do the same with
>>>> popup , by default it will be display none, and with Jquery you can show it
>>>> if user change value to yes dropdown (select)
>>>>
>>>> you will use id div of pupup to show it or hide it
>>>>
>>>>
>>>> if (!$) {
>>>> // Need this line because Django also provided jQuery and namespaced 
>>>> as django.jQuery
>>>> $ = django.jQuery;
>>>> }
>>>>
>>>>
>>>>
>>>> $(document).ready(function() {
>>>>
>>>> $("#id_paysPartenaires").change(function()
>>>> {
>>>>
>>>>
>>>>
>>>>  var 
>>>> total_partenaire=$("#id_multipartenairecooperationbilaterale_set-TOTAL_FORMS").val()
>>>> var SelectNumber =  i
>>>>  
>>>> SelectedValuePartenaire=$("#id_multipartenairecooperationbilaterale_set-"+SelectNumber+"-multiPartenairePP").val()
>>>>  //alert(SelectNumber)
>>>>
>>>>
>>>>
>>>> 
>>>> $("[id=div-2-multiAdefinir]:eq("+SelectNumber+")").hide();
>>>> 
>>>> $("[id=div-2-multiGouvernementPP]:eq("+SelectNumber+")").hide();
>>>>
>>>> $("[id=div-2-multiGouvernementPP]:eq("+SelectNumber+")").hide();
>>>> 
>>>> $("[id=div-2-multiPaysPP]:eq("+SelectNumber+")").show();
>>>>   }
>>>>
>>>>
>>>> });
>>>>
>>>>
>>>> Le dimanche 7 juin 2020 07:34:00 UTC+1, Sai a écrit :
>>>>>
>>>>> Hi guys,
>>>>> I am working on a* Django project,* which involves submission form
>>>>> and saving the data in the database using model form.  I am stuck with one
>>>>> of the functionalities of form which should work like for example "do you
>>>>> want benefit plan: *YES,* *next Field options should pop up*. if click*
>>>>> NO, nothing should happen* and move to the next question."
>>>>>
>>>>> I went through all over the internet and found the dependent drop-down
>>>>> select option but not like field pop up as we click through te form.
>>>>>
>>>>> Please let me know how to achieve this in a clear way as I am new to
>>>>> Django and programming as well.
>>>>>
>>>>> Thank You so much in advance.
>>>>>
>>>> --
>>>> 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/3f3bf262-7fac-4818-836e-dc8532dae707o%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/3f3bf262-7fac-4818-836e-dc8532dae707o%40googlegroups.com?utm_medium=email&utm_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...@googleg

Need Covid 19 Database for Experiments

2020-07-02 Thread Balaji Shetty
Hi

Can anyone provide me Covid 19 Database.
I need Covid 19 Database for Experiments

Thank you


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOuuNCY58sB1g2f_ftHtpAs3FamSq%2BBJJZ%2BA5mv_3%3Dw3NQ%40mail.gmail.com.


Learn Python and Django online with practical Approach 4 hours per week now

2020-08-12 Thread Balaji Shetty
Hi

  We are happy to announce you , you may join Following WhatsApp Group to
learn Basics of Python and Django free of cost with total practical
approach.

https://chat.whatsapp.com/DbHpPsUcDF4EiplISnqfzh

   Also, Anyone from our Group may also serve as resource person and may
give 1 hour lecture also. If you are interested, please send me on my
personal email id.

🌻🌻   *Learn Web AND Mobile Application Development using _PYTHON_ with
complete Practical Oriented Approach only* 🌻🌻

   🌷 👍🏼   _If you have the will to learn Programming, you may join and
attend 3 lectures per week in *Hindi and English* Language_

🌷 *FREE OF COST*

🧏🏻 *_Let us share knowledge to any Students who want to learn Python and
do Web Development_*

You may share link to your Friends and he may join our Class

🌷   *Class Timing will be informed daily in Group*

🌷 *All video would be shared after session if you are busy during lectures
times with respective source code in videos*

  🌹 *_Benefits_*

🌻 _You may start your own Software Development Company after course
completion_

   🌹  _*Don't loose opportunity*_. 🌹


Prof. Shetty Balaji


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOs5K2iUFBHx6hMWrd6yLMAtgLuRd04wmUtJk14EAwnudA%40mail.gmail.com.


Re: Learn Python and Django online with practical Approach 4 hours per week now - GROUP LINK ACTIVE

2020-08-15 Thread Balaji Shetty
Hi

Sorry for inconvenience. We updated link. Join Link.

Welcome


🌹🌹🌹 PLS UPDATE LINK 🌹🌹🌹
---

*_Follow Learning-Python-Django on Telegram:_*
 https://t.me/joinchat/AFg8fQgHoBk5uPMCvQ

🌻🌻   *Learn Web AND Mobile Application Development using _PYTHON_ with
complete Practical Oriented Approach only* 🌻🌻

   🌷 👍🏼   _If you have the will to learn Programming, you may join and
attend 3 lectures per week in *Hindi and English* Language_

🌷 *FREE OF COST*

🧏🏻 *_Let us share knowledge to any Students who want to learn Python and
do Web Development_*

You may share link to your Friends and he may join our Class

🌷   *Class Timing will be informed daily in Group*

🌷 *All video would be shared after session if you are busy during lectures
times with respective source code in videos*

  🌹 *_Benefits_*

🌻 _You may start your own Software Development Company after course
completion_

   🌹  _*Don't loose opportunity*_.
 -

🌹😊 *Welcome to all*

Dear Friends
  group will help everyone to learn

   🌻-- Programming Basics
  🌻-- Decisions making, loops
🌻-- function,list, tuples
🌻   --- Python Basics
   🌻- Django Basics, Numpy, pandas
🌻. web based applications Development.CMS. ML

+. advanced Django Part one By One.

*_We will conduct 3 hour per week lecture online_*.


 Lecture link would be informed on same Day.

You may join session as per your convenience and need.

Be consistent.


  🌻   *We will conduct session where we _will teach you real time
projects Development in Django with uploading data on Cloud_ like
pythonanywhere*


 🌹🙏🏼 *_Keep patience and consistency_*

 🤨.  _Don't expect miracles immediately_.

 🌷 *We will upload all code discussed in online lectures in Group*

   🌹 _We will also invite some experts from Company also as per
availability and convenience of time_


  🙏🏼😊   *_Please Do not post any other message which may not be
useful to us_*

If you never use Telegram App, Join our Another Group

https://chat.whatsapp.com/Grsvtz7RN32AXj0wm80Dq2

  But in WhatsApp, only 257 members are allowed.

In Telegram, 100,000 Members are allowed. We may have best interaction in
Telegram. Better install Telegram and join session.


  *Have a Good  Day*.


  _For your Query,we will answer._




On Saturday, August 15, 2020, Chuck  wrote:

> I like to join the group too but the WhatsApp group had been full.
>
> On Friday, August 14, 2020, 11:49:45 AM PDT, Ikechukwu Efughu <
> ikechukwuefu...@gmail.com> wrote:
>
>
> Hi Balaji,
>
> I'm interested in this course. Kindly include me in the group.
>
> Warm regards
>
> Ikechukwu Efughu
>
> On Wed, Aug 12, 2020, 18:09 Balaji Shetty  wrote:
>
> Hi
>
>   We are happy to announce you , you may join Following WhatsApp Group to
> learn Basics of Python and Django free of cost with total practical
> approach.
>
> https://chat.whatsapp.com/DbHpPsUcDF4EiplISnqfzh
>
>Also, Anyone from our Group may also serve as resource person and may
> give 1 hour lecture also. If you are interested, please send me on my
> personal email id.
>
> 🌻🌻   *Learn Web AND Mobile Application Development using _PYTHON_ with
> complete Practical Oriented Approach only* 🌻🌻
>
>🌷 👍🏼   _If you have the will to learn Programming, you may join and
> attend 3 lectures per week in *Hindi and English* Language_
>
> 🌷 *FREE OF COST*
>
> 🧏🏻 *_Let us share knowledge to any Students who want to learn Python and
> do Web Development_*
>
> You may share link to your Friends and he may join our Class
>
> 🌷   *Class Timing will be informed daily in Group*
>
> 🌷 *All video would be shared after session if you are busy during
> lectures times with respective source code in videos*
>
>   🌹 *_Benefits_*
>
> 🌻 _You may start your own Software Development Company after course
> completion_
>
>🌹  _*Don't loose opportunity*_. 🌹
>
>
> Prof. Shetty Balaji
>
>
> --
> Mr Shetty Balaji
> Asst. Prof.
> IT Department
> SGGS I&T
> Nanded. My. India
>
> --
> 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/CAECSbOs5K2iUFBHx6hMWrd6yLMAtg
> LuRd04wmUtJk14EAwnudA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAECSbOs5K2iUFBHx6hMWrd6yLMAtgLuRd04wmUtJk14EAwnudA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
&

Python Django Tutorial for absolute beginners

2020-08-24 Thread Balaji Shetty
Dear Participants

   🌷*I am sharing you a video to learn Python Django with development
of project and app. You can download source code of this video also from
github link*

https://www.youtube.com/watch?v=EY-XY2HDo_c

🌷 *Sourcecode*
https://github.com/balaji-shetty/Django-Sample-Proj-With-CODE-For-Begineers


Code to download source code is given in Video Description.

We are uploading new videos every week useful for beginners and provide
respective source code on GitHub


Prof Shetty Balaji
IT dept
SGGS IET Nanded. MH

https://youtu.be/EY-XY2HDo_c


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOsR0b%3DjiFiXcbOmvvj69XH_kR3bKCLbug1sCqe24PnzEg%40mail.gmail.com.


Re: material

2020-08-28 Thread Balaji Shetty
Dear Participants

   🌷*I am sharing you a video to learn Python Django with development
of project and app. You can download source code of this video also from
github link*

https://www.youtube.com/watch?v=EY-XY2HDo_c

🌷 *Sourcecode*
https://github.com/balaji-shetty/Django-Sample-Proj-With-CODE-For-Begineers


Code to download source code is given in Video Description

Join Django Learner group

https://chat.whatsapp.com/K2WZmkIXSrf70WPePtPr7t



Prof Shetty Balaji
IT dept
SGGS IET Nanded. MH

https://youtu.be/EY-XY2HDo_c


On Friday, August 28, 2020, Vishesh Mangla 
wrote:

> https://www.youtube.com/watch?v=UmljXZIypDc
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> *From: *sakshi jain 
> *Sent: *28 August 2020 21:04
> *To: *django-users@googlegroups.com
> *Subject: *Re: material
>
>
>
> youtube vedios online
>
>
>
> On Fri, Aug 28, 2020, 19:23 السعيد حاجي سعيد 
> wrote:
>
> Hello and good morning, I want to start learning dejango. Is there a
> material in writing to study 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/5b128545-69b3-4305-8aaf-03ec393c41b8n%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5b128545-69b3-4305-8aaf-03ec393c41b8n%40googlegroups.com?utm_medium=email&utm_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/CAJhs3iOZjZVa8-xz3SwdbtJohFKxqVPp93EO_Jrzs97%
> 3DC7_ruA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJhs3iOZjZVa8-xz3SwdbtJohFKxqVPp93EO_Jrzs97%3DC7_ruA%40mail.gmail.com?utm_medium=email&utm_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/8874679F-532D-4A23-9124-AB0E8CA93DE9%40hxcore.ol
> <https://groups.google.com/d/msgid/django-users/8874679F-532D-4A23-9124-AB0E8CA93DE9%40hxcore.ol?utm_medium=email&utm_source=footer>
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOvUznVgTWOriugNexBoKAxKQEpGbxr-6A9h51NffHokOw%40mail.gmail.com.


how to convert django application to Windows exe format

2019-07-21 Thread Balaji Shetty
Hi

Can anyone please tell me
how to convert django application to Windows exe format.

-- 
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/CAECSbOvhEg7kAZU8gwARLU-vkk%3Dx0b4moGf7eSSFb2RrGcruuw%40mail.gmail.com.


how to add graphs in django admin panel

2019-08-26 Thread Balaji Shetty
Hi everyone

Can anybody suggest me
how to add different graphs in django admin panel for relational models. I
will apply count, group by clsuse query to display count.

One more questions. We can change default django Administration GUI using
django admin suit. How is it. Is there any other way to change it


Thanks in advance.


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOuSHU_pq8ofKse%3DMrr43usU5Sb%2BzzzhTrNrsi%3DQ%2BPT15Q%40mail.gmail.com.


How can i share one Database Sqlite between 2 app on pythonanywhere

2019-09-03 Thread Balaji Shetty
Hi Everyone

Can anybody suggest me
How can i share one Database Sqlite between 2 app on pythonanywhere.

Currently i have deployed one project on PythonAnywhere.
I have purchases 2 App.
Now i can execute 2 App simultaneous.

I have deployed app1.pythonanywhere.com and app2.pythonanywhere.com

app1.pythonanywhere.com is my real time hosted project. Before making any
changes, i create mirror copy of code and Database Sqlite on
app2.pythonanywhere.com, make changes and if changes are proper. I make
changes in
app1.pythonanywhere.com.

But it is time consuming Process. Better solution may be share database and
make changes in Business Logic and reflect in orignal one.

My Simple Question is
How can i share sqlite database between two Project here.

OR

Is there any other way to do the same thing more efficiently?

Thanks in Advance.
-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOv7vBQ8hxZBoPf2PvVgUY2NS-44-yvLuprbphdvN1ZJYw%40mail.gmail.com.


PLS Help Me in Securing Project - Application on PythonAnyWhere hosted

2019-09-04 Thread Balaji Shetty
Hello Every one

I am new to Django.  I have been working from 4 to 5 months only.
I have deployed the real time Project on PythonAnywhere.
Client is using this now.

My Basic question is

How to Secure our Project. What are the Preventive Steps We must take
before deployment of Project.

Some measures considered here are
I have made DEBUG = False
Secret Key
Hash Password

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOudUftPApPoAFDmtANRXP%2BeZ24%3DOcX%2BvQ1SenyTGwm0fQ%40mail.gmail.com.


Re: How can i share one Database Sqlite between 2 app on pythonanywhere -. Should I prefer postgresql or MySQL - Security

2019-09-05 Thread Balaji Shetty
Thanks for your reply.

I hosted on pythonAnywhere.

Is it possible for postgresql.

Should I prefer postgresql or MySQL regarding security issues .

Can you please tell me how to achieve in MySQL.

Also how can I backup daily data of server on my local machine .

Can any DB also provide front-end GUI for database access as per user
Access  Control Rights ( Permissions )


On Thursday, September 5, 2019, Amirhosein Rajabi 
wrote:

> I have shared a MySQL database even between two accounts in
> PythonAnyWhere. But I think there is no possible way for local DBs. If you
> can access the app1 files from the app2 or otherwise, you may be able to
> change settings.py for that db.sqlite path.
>
> On Wednesday, September 4, 2019 at 9:40:39 AM UTC+4:30, Balaji wrote:
>>
>> Hi Everyone
>>
>> Can anybody suggest me
>> How can i share one Database Sqlite between 2 app on pythonanywhere.
>>
>> Currently i have deployed one project on PythonAnywhere.
>> I have purchases 2 App.
>> Now i can execute 2 App simultaneous.
>>
>> I have deployed app1.pythonanywhere.com and app2.pythonanywhere.com
>>
>> app1.pythonanywhere.com is my real time hosted project. Before making
>> any changes, i create mirror copy of code and Database Sqlite on
>> app2.pythonanywhere.com, make changes and if changes are proper. I make
>> changes in
>> app1.pythonanywhere.com.
>>
>> But it is time consuming Process. Better solution may be share database
>> and make changes in Business Logic and reflect in orignal one.
>>
>> My Simple Question is
>> How can i share sqlite database between two Project here.
>>
>> OR
>>
>> Is there any other way to do the same thing more efficiently?
>>
>> Thanks in Advance.
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bssh...@sggs.ac.in *
>> *  Mobile: +91-9270696267*
>>
>> --
> 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/befcb047-eca7-4c78-9dea-49021a32aa18%40googlegroups.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOtUHnbXUeqYoZs56v32uB_5k_Zs4VtL%3DZe2KFq92vXQfA%40mail.gmail.com.


Any Pypi Library to generate Different Reports on Connected models as well.as Different Graph Generation

2019-09-07 Thread Balaji Shetty
Hi everyone

Can any one of you please tell me is there Any Pypi Library to generate
Different Reports on Connected models as well.as Different Graph Generation.

I want to apply aggregate function like sum, count, avg, group by, having,
inner and outer join.


I want to generate in Django  admin only.

Thx in advance...


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOvVkS7uzA5QGWRYMCTQzcv3RD9MTOY-knv6_1njwNC_iw%40mail.gmail.com.


best option for Front End Design in Django

2019-09-26 Thread Balaji Shetty
Hi

Can anybody please tell me what are the different options to create GUI
(User Interface ) for Front End in Django.

I got answer like Angularjs, Nodejs, HTML5 or CSS.

Which one is easier as well as mobile compatible if we need to develop
mobile App also.

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOtrT638Qv1UFdD-WKiqLr464-%3D5_O7K7vO5rHBo3m9yqg%40mail.gmail.com.


Re: best option for Front End Design in Django

2019-09-26 Thread Balaji Shetty
Thank You all for Your Reply

I know HTML,CSS, javaScript as well as Django.
I want to create professional user friendly GUI and using REST framework, i
will create Mobile App.



On Thu, Sep 26, 2019 at 4:28 PM Nick Sarbicki 
wrote:

> Honestly whilst everyone is recommending react/angular etc. I'd argue
> these are probably the worst places to start. It assumed a lot of up front
> knowledge and ability in web design.
>
> Balaji has strongly suggested that they don't have a good grasp of the
> basics yet, HTML, CSS and vanilla JavaScript. Throwing out relatively
> advanced JS solutions does not solve this problem.
>
> Balaji I'd recommend picking up some basic knowledge of HTML and CSS first
> - this will get you started building rudimentary websites and is essential
> knowledge for practically all web development. You must learn these before
> anything else.
>
> Once you have some understanding of how these work take a basic course in
> JavaScript - which is what powers most of the modern web (through using
> HTML and CSS). If you start feeling comfortable with that I'd recommend
> looking up a framework, React, Angular and Vue are the normal
> recommendations. I'd personally go with React for the sole reason that it
> is - comparatively quite simple to pick up (once you understand JavaScript)
> and also very commonly used with strong community support.
>
> In terms of turning this into an app down the road... Apps and web sites
> are not directly comparable. There are multiple ways of approaching
> converting a website into an app but most are relatively advanced. I would
> focus on what you are doing now before thinking about that journey.
>
>
> - Nick
>
>
> On Thu, Sep 26, 2019 at 11:50 AM Pengyu Cao 
> wrote:
>
>> Hey, how about check this,
>> https://www.similartech.com/compare/angular-js-vs-react-js
>>
>> On Thursday, September 26, 2019 at 4:48:30 PM UTC+8, Suraj Thapa FC wrote:
>>>
>>> React
>>>
>>> On Thu, 26 Sep, 2019, 1:53 PM Balaji Shetty, 
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> Can anybody please tell me what are the different options to create GUI
>>>> (User Interface ) for Front End in Django.
>>>>
>>>> I got answer like Angularjs, Nodejs, HTML5 or CSS.
>>>>
>>>> Which one is easier as well as mobile compatible if we need to develop
>>>> mobile App also.
>>>>
>>>> --
>>>>
>>>>
>>>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information
>>>> Technology,*
>>>> *SGGS Institute of Engineering & Technology, Vishnupuri,
>>>> Nanded.MH.India*
>>>> *Official: bssh...@sggs.ac.in *
>>>> *  Mobile: +91-9270696267*
>>>>
>>>> --
>>>> 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/CAECSbOtrT638Qv1UFdD-WKiqLr464-%3D5_O7K7vO5rHBo3m9yqg%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAECSbOtrT638Qv1UFdD-WKiqLr464-%3D5_O7K7vO5rHBo3m9yqg%40mail.gmail.com?utm_medium=email&utm_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/2cb3770f-e754-44b2-8ff7-79dac39cd37b%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/2cb3770f-e754-44b2-8ff7-79dac39cd37b%40googlegroups.com?utm_medium=email&utm_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/CAGuvt90Mde5D6xJt5Sk1WOHwtDqorPrqvHjYn4XR5Z5WNkUTMw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGuvt90Mde5D6xJt5Sk1WOHwtDqorPrqvHjYn4XR5Z5WNkUTMw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOu4EKei2epd4hd543wXpJLqEJdnFz8U%3DbgiKJZx61J6EQ%40mail.gmail.com.


Re: best option for Front End Design in Django

2019-09-27 Thread Balaji Shetty
Hello

Can you please give me some good resources to learn and understand Postman.





On Thu, Sep 26, 2019 at 10:06 AM dheeraj technoevanglist <
bond.dee...@gmail.com> wrote:

> Postman is a tool on which we can request with the parameters, for example
> we have a web application contains backed code and front end code you can
> create backed alone and instead of html web page you can use postman to
> execute the backed and get HTML output on postman
>
> On Thu, Sep 26, 2019, 19:29 Ankita Gupta 
> wrote:
>
>> What is post-man? Can you explain it little more?
>>
>> On Thu, 26 Sep 2019, 7:13 pm dheeraj technoevanglist, <
>> bond.dee...@gmail.com> wrote:
>>
>>> Totally agreed Django applies separation of concern so start with html
>>> basics or make back end first and test it through the post man.
>>>
>>> On Thu, Sep 26, 2019, 16:28 Nick Sarbicki 
>>> wrote:
>>>
>>>> Honestly whilst everyone is recommending react/angular etc. I'd argue
>>>> these are probably the worst places to start. It assumed a lot of up front
>>>> knowledge and ability in web design.
>>>>
>>>> Balaji has strongly suggested that they don't have a good grasp of the
>>>> basics yet, HTML, CSS and vanilla JavaScript. Throwing out relatively
>>>> advanced JS solutions does not solve this problem.
>>>>
>>>> Balaji I'd recommend picking up some basic knowledge of HTML and CSS
>>>> first - this will get you started building rudimentary websites and is
>>>> essential knowledge for practically all web development. You must learn
>>>> these before anything else.
>>>>
>>>> Once you have some understanding of how these work take a basic course
>>>> in JavaScript - which is what powers most of the modern web (through using
>>>> HTML and CSS). If you start feeling comfortable with that I'd recommend
>>>> looking up a framework, React, Angular and Vue are the normal
>>>> recommendations. I'd personally go with React for the sole reason that it
>>>> is - comparatively quite simple to pick up (once you understand JavaScript)
>>>> and also very commonly used with strong community support.
>>>>
>>>> In terms of turning this into an app down the road... Apps and web
>>>> sites are not directly comparable. There are multiple ways of approaching
>>>> converting a website into an app but most are relatively advanced. I would
>>>> focus on what you are doing now before thinking about that journey.
>>>>
>>>>
>>>> - Nick
>>>>
>>>>
>>>> On Thu, Sep 26, 2019 at 11:50 AM Pengyu Cao 
>>>> wrote:
>>>>
>>>>> Hey, how about check this,
>>>>> https://www.similartech.com/compare/angular-js-vs-react-js
>>>>>
>>>>> On Thursday, September 26, 2019 at 4:48:30 PM UTC+8, Suraj Thapa FC
>>>>> wrote:
>>>>>>
>>>>>> React
>>>>>>
>>>>>> On Thu, 26 Sep, 2019, 1:53 PM Balaji Shetty, 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> Can anybody please tell me what are the different options to create
>>>>>>> GUI (User Interface ) for Front End in Django.
>>>>>>>
>>>>>>> I got answer like Angularjs, Nodejs, HTML5 or CSS.
>>>>>>>
>>>>>>> Which one is easier as well as mobile compatible if we need to
>>>>>>> develop mobile App also.
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>>
>>>>>>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information
>>>>>>> Technology,*
>>>>>>> *SGGS Institute of Engineering & Technology, Vishnupuri,
>>>>>>> Nanded.MH.India*
>>>>>>> *Official: bssh...@sggs.ac.in *
>>>>>>> *  Mobile: +91-9270696267*
>>>>>>>
>>>>>>> --
>>>>>>> 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 

How to create Graphs and charts on Relational ORM

2019-10-26 Thread Balaji Shetty
Hi Everyone

Happy Diwali .


I have one query

I want to create different Charts. It may include Aggregate query like
avg,min,max,sum,count,group by also.

Query is to perform on multiple models which are connected by Foreign key.

Can you please suggest any library or package for getting these Graphs.




-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOvUEDYRPQyDCPoMp4jz8DMSdfjow6U65uWjUdKPEZrMKQ%40mail.gmail.com.


How to migrate and copy Data from sqlite to Postgresql

2019-10-30 Thread Balaji Shetty
Hi

Can anyone please provide me help or any website providing help of DB
Migration.

Already I have deployed Application on pythonanywhere .

There are 250 records already created and relational database with 5 models
present in Application.

Default DB is Sqlite and I have to switch to Postgresql with all old
Records. I have support of Postgresql in Application.

Thanks in advance.


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOvH_ZSQmMCnOvHRahePo4hcYPe2Ny96k4BNQ5XMt3brQg%40mail.gmail.com.


Re: Alternatives to django ajax select - VIMP Information for EveryOne

2019-10-31 Thread Balaji Shetty
Really Very Nice Help.

Thx

On Thu, Oct 31, 2019 at 6:22 AM carlos  wrote:

> https://github.com/yourlabs/django-autocomplete-light
>
> On Wed, Oct 30, 2019 at 3:35 PM Luis Zárate  wrote:
>
>> Hi Guys,
>>
>> Do you know any alternative to django-ajax-selects, I am using it in a
>> project in django 2.2 but docs says that support <=2.1 and also has some
>> problems with the version on jquery used, so I am looking something that
>> help to remplace this lib.
>>
>> https://github.com/crucialfelix/django-ajax-selects
>>
>> Thanks
>> --
>> "La utopía sirve para caminar" Fernando Birri
>>
>>
>> --
>> 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/CAG%2B5VyPzuPpPpm1QByKGjChPtN1-AnPcYkrNFfOR%2B203Hw43-Q%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> att.
> Carlos Rocha
>
> --
> 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/CAM-7rO1U4oEVLknkZGfgNdMGQipHmDVPWvp9QDrHZ%2BjUZiKrEw%40mail.gmail.com
> 
> .
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOuKPb6eByhXN8CKtPfaUT4mrAahnQHfbVE3bJSxC0DOaA%40mail.gmail.com.


How t do Login using Gmail, twtter or facebook

2019-11-11 Thread Balaji Shetty
Hi

can anyone give me web resource to login into Application using Gmail
Account.

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOu3u0X2bFadyzDZHHy1k2CtX7zaH9ogkgEdy-6s-%2Bosdg%40mail.gmail.com.


Re: How t do Login using Gmail, twtter or facebook

2019-11-12 Thread Balaji Shetty
Thank You very much to all Django Experts
* Andréas Kühne, Nick Sarbicki, Kasper Laudrup, Andréas Kühne *for your
nice reply about my Query.


On Mon, Nov 11, 2019 at 3:08 PM Nick Sarbicki 
wrote:

> I generally like to implement things like Google auth myself, as it's not
> too complex and down the line it often makes things easier (e.g. you can
> easily use a single backend for both a web login and an API login).
>
> Google provide plenty of guides on this for their setup e.g:
>
> https://www.youtube.com/watch?v=Oy5F9h5JqEU
> https://developers.google.com/identity/sign-in/web
>
> If you do want to just use a package, especially one with a wide range of
> support for social auth then I'd recommend AllAuth. Here's the docs for
> AllAuth with Google:
>
> https://django-allauth.readthedocs.io/en/latest/providers.html#google
>
>
> - Nick
>
>
> On Mon, Nov 11, 2019 at 9:32 AM Andréas Kühne 
> wrote:
>
>>
>> https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html
>>
>> Regards,
>>
>> Andréas
>>
>>
>> Den mån 11 nov. 2019 kl 10:27 skrev Balaji Shetty > >:
>>
>>> Hi
>>>
>>> can anyone give me web resource to login into Application using Gmail
>>> Account.
>>>
>>> --
>>>
>>>
>>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information
>>> Technology,*
>>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>>> *Official: bsshe...@sggs.ac.in  *
>>> *  Mobile: +91-9270696267*
>>>
>>> --
>>> 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/CAECSbOu3u0X2bFadyzDZHHy1k2CtX7zaH9ogkgEdy-6s-%2Bosdg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAECSbOu3u0X2bFadyzDZHHy1k2CtX7zaH9ogkgEdy-6s-%2Bosdg%40mail.gmail.com?utm_medium=email&utm_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/CAK4qSCeFpc9A2dCxTuuaBYmhHqhBdt_s4JG3z4O0jqA-9vfAkg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK4qSCeFpc9A2dCxTuuaBYmhHqhBdt_s4JG3z4O0jqA-9vfAkg%40mail.gmail.com?utm_medium=email&utm_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/CAGuvt91fzNLgNFN6FvvH5MK8kwhdYScH22egXRQHEqCcBeB%2Bfg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGuvt91fzNLgNFN6FvvH5MK8kwhdYScH22egXRQHEqCcBeB%2Bfg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOscEJ8QonV_4wvOXPqKkhgOLVEGz%2BYc1Svwu9SPyNCd-A%40mail.gmail.com.


Wagtail or Django CMS or Mez for Web Site

2019-11-24 Thread Balaji Shetty
Hi

If I want to develop website in Django.

Which ones I should prefer
Wagtail or Django CMS or Mez

Kindly reply


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOvoCkr0-xweoCMu8%3DUQ5bNHVmh9nk80_ouDsmnG_bzHcg%40mail.gmail.com.


Re: Wagtail or Django CMS or Mez for Web Site

2019-11-24 Thread Balaji Shetty
Dear Perceval Maturure

Thank You very much for your email reply.
May GOD bless you.

On Mon, Nov 25, 2019 at 2:24 AM Perceval Maturure 
wrote:

> Yes, it’s called installing Django cms by Hand
> http://docs.django-cms.org/en/latest/how_to/install.html
>
>
>
> Sent from my iPhone
>
> On 24 Nov 2019, at 21:19, Ankita Gupta  wrote:
>
> 
>
>
> On Sunday, November 24, 2019 at 11:54:02 PM UTC+5:30, Perceval Maturure
> wrote:
>>
>> Django cms is much simpler. There is also good documentation to “install
>> Django cms by hand”
>>
> Hey!
> Can we insert django-cms in already made Django based projects.?
> Is this possible.?
>
>>
>>
>> Sent from my iPhone
>>
>> On 24 Nov 2019, at 19:52, Balaji Shetty  wrote:
>>
>> Hi
>>
>> If I want to develop website in Django.
>>
>> Which ones I should prefer
>> Wagtail or Django CMS or Mez
>>
>> Kindly reply
>>
>>
>> --
>> Mr Shetty Balaji
>> Asst. Prof.
>> IT Department
>> SGGS I&T
>> Nanded. My. India
>>
>> --
>> 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/CAECSbOvoCkr0-xweoCMu8%3DUQ5bNHVmh9nk80_ouDsmnG_bzHcg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOvoCkr0-xweoCMu8%3DUQ5bNHVmh9nk80_ouDsmnG_bzHcg%40mail.gmail.com?utm_medium=email&utm_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/d99f11a0-0e2e-40e5-bf0c-dbf0622c0383%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d99f11a0-0e2e-40e5-bf0c-dbf0622c0383%40googlegroups.com?utm_medium=email&utm_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/F4BA8AC1-3CE8-4EF0-84F2-5F2086E3F9FE%40gmail.com
> <https://groups.google.com/d/msgid/django-users/F4BA8AC1-3CE8-4EF0-84F2-5F2086E3F9FE%40gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOtmy5cRi%2BXXLFH3PtymviUJMaofbKnnxh8PFFXVGSmWCw%40mail.gmail.com.


Need Freelancer to work on project

2019-11-24 Thread Balaji Shetty
Hi

I have a project. If anybody is interested to work and complete the
work.Kindly let me know on my personal email id Only. Developer may work
remotely.

Assignment will be done on quality of work as well as completion time ( 1
to 2 weeks only) .

Please contact with bio data, your previous personal work profile as well
as respective git link if possible.

2 Requirements.

1> Entire project is ready with code on back end side. Convert the project
into Front End.

2> Perform all testing by using professional testing tools as well as use
security features.

3> Work should be operational on any machine or mobile.

Please do contact me on my personal email ID only.



-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOski1MqzJjx_XDqA2%2BKbmsgF9X3e-Jm95Q8ExZR0M%2BozA%40mail.gmail.com.


Query for Data Tables Report Generation and Graph

2019-12-07 Thread Balaji Shetty
Hi

I have used django_data_table2
django-tables2 - An app for creating HTML tables

My Query is can I generate Graph as well as export data in pdf format.



On Thursday, December 5, 2019, Matheus Almeida <
matheus.alme...@spotsales.com.br> wrote:

>
>
> Em quinta-feira, 20 de abril de 2017 23:18:03 UTC-3, Robin Lery escreveu:
>>
>> I have a very simple model and its related serializer and views:
>>
>> class Page(models.Model):
>> user = models.ForeignKey(User)
>> title = models.CharField(max_length=255)
>> pub_date = models.DateTimeField(default=timezone.now)
>>
>> class PageSerializer(serializers.ModelSerializer):
>> class Meta:
>> model = Page
>> fields = ('user', 'title', 'pub_date')
>>
>> class PageViewSet(viewsets.ModelViewSet):
>> queryset = Page.objects.all()
>> serializer_class = PageSerializer
>> Now I can post like this:
>>
>> {
>> "user": 1,
>> "title": "Lorem ipsum"
>> }
>> This works fine. But I would like to post multiple objects like this:
>>
>> [
>> {
>> "user": 1,
>> "title": "Lorem ipsum one"
>> },
>> {
>> "user": 1,
>> "title": "Lorem ipsum two"
>> }
>> ]
>> But this gives me an error:
>>
>> "non_field_errors": [
>>
>> "Invalid data. Expected a dictionary, but got list."
>> ]
>> So to accept multple objects I modified the view as per the doc:
>>
>> class PageViewSet(viewsets.ModelViewSet):
>> queryset = Page.objects.all()
>> serializer_class = PageSerializer(queryset, many=True)
>>
>> But I am getting an error:
>>
>> TypeError at /api/blog/pages/
>>
>> 'ListSerializer' object is not callable
>> What am I missing here?
>>
>
> You can do this overriding get_serializer method:
>
> def get_serializer(self, *args, **kwargs):
> if "data" in kwargs:
> data = kwargs["data"]
>
> # check if many is required
> if isinstance(data, list):
> kwargs["many"] = True
>
> return super(YourModel, self).get_serializer(*args, **kwargs)
>
> --
> 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/a1811b72-a91d-4ab8-9b26-4c293c4e7ddd%40googlegroups.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOtALAP-6dBQWnUqDUuEjYaNZzUJdyFDfd5QDD0_fUJDhQ%40mail.gmail.com.


Django Admin Custom View Query Generation

2019-12-12 Thread Balaji Shetty
Hi

Can anyone please tell me how can we generate Custome Model view for
different report where we use avg, min , max, sum, count , group by clause.

We have to generate this report in Django Admin Panel only.

Can we generate respective Graphs also.

Is there any library available.




-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOsw-KpTgwnb-FCe0vXYjeWiT4y_y79TJRc%2BkL_R_P_Nvw%40mail.gmail.com.


Re: Django Admin Custom View Query Generation

2019-12-13 Thread Balaji Shetty
Thank you very much Derek.

You always provide nice help.

Can we generate graphs  for reports in  Django Admi n.




On Saturday, December 14, 2019, Derek  wrote:

> You can use built-in Django ORM methods to perform calculated operations
> on existing models (you don't need a new model). See: https://docs.
> djangoproject.com/en/3.0/topics/db/aggregation/
>
> For more complex operations, you can write "raw" SQL -see https://docs.
> djangoproject.com/en/3.0/topics/db/sql/
>
> The results can be rendered as HTML or converted to PDF (see:
> https://codeburst.io/django-render-html-to-pdf-41a2b9c41d16)
>
> The standard Django Admin list is NOT a suitable place to show these
> outputs directly - I would (and I have before) hook these up to an custom
> action that lets a user fill in report parameters in a form before
> generating the HTML (for display) or PDF (for download).
>
>
> On Thursday, 12 December 2019 19:51:14 UTC+2, Balaji wrote:
>>
>> Hi
>>
>> Can anyone please tell me how can we generate Custome Model view for
>> different report where we use avg, min , max, sum, count , group by clause.
>>
>> We have to generate this report in Django Admin Panel only.
>>
>> Can we generate respective Graphs also.
>>
>> Is there any library available.
>>
>>
>>
>>
>> --
>> Mr Shetty Balaji
>> Asst. Prof.
>> IT Department
>> SGGS I&T
>> Nanded. My. India
>>
>> --
> 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/8e0b3bb0-07dc-4765-b0a3-82b6dcc95589%40googlegroups.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOtaWp3Y4LO1gXVU5oc0TGi5vGXO4G9gYV2K50j3k%3Dc1mA%40mail.gmail.com.


Re: Python problem... Chetan is really Genius

2019-12-15 Thread Balaji Shetty
Yes...

Definitely  I am also Ghetan Fan.

He has tremendous knowledge and Practical Experience of Django.

Cheers for Chetan

On Sunday, December 15, 2019, Gil Obradors  wrote:

> Chetan, you're a genius!
>
> Missatge de Chetan Ganji  del dia dg., 15 de des.
> 2019 a les 16:28:
>
>> # input: h123456ello
>> # output: o123456lleh
>>
>> # input: th34isisast56ring3
>> # output: gn34irtsasi56siht3
>>
>>
>> order = {}
>> characters = ""
>> input_string = "h123456ello"
>> # input_string = "th34isisast56ring3"
>> counter = 0
>> output_string = ""
>>
>>
>> for index, character in enumerate(input_string):
>> order[index] = character
>>
>> for item in range(0, len(input_string)):
>> if input_string[item].isalpha():
>> characters += input_string[item]
>>
>> # reversing the string
>> characters = characters[::-1]
>>
>> for index, item in enumerate(range(0, len(input_string))) :
>> if input_string[item].isalpha():
>> order[index] = characters[counter]
>> counter += 1
>>
>> for index in range(0, len(input_string)):
>> output_string += order[index]
>>
>> print()
>> print(input_string)
>> print(output_string)
>> print()
>>
>>
>>
>>
>> Regards,
>> Chetan Ganji
>> +91-900-483-4183
>> ganji.che...@gmail.com
>> http://ryucoder.in
>>
>>
>> On Sun, Dec 15, 2019 at 8:14 PM Soumen Khatua 
>> wrote:
>>
>>> Hi Folks,
>>> I'm stucking in this problem from 5 hours but still I'm not bale to
>>> logic to solve this problem, Please help me guys to solve this problem:
>>>
>>> Example:-
>>> input: h123456ello
>>> output: o123456lleh
>>>
>>> input: th34isisast56ring3
>>> output: gn34irtsasi56siht3
>>>
>>> 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/CAPUw6Wa8LqGGnqbsiKvYrBw6WQkBa
>>> qjm9b8Re65PM3zJr1rdkA%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/CAMKMUjsLe0zo9_B70dNNq%2Bk_
>> xwOTGt-cs%2BGeqagM-wZk8yYzLA%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/CAK-JoTStv3AUaAt7gOJjUhXtmqxXgaDqE
> 3eC_fj5ak48Gb73Cg%40mail.gmail.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOv1xV2fzz-XG9v5OTy6R0WUWmeDLX_9FLUMnEhBFnb6ow%40mail.gmail.com.


Necessary Precautions to be taken in Software to pass security Audit

2019-12-18 Thread Balaji Shetty
Good Evening


 One query raised. My project is Government and it must pass through
Security Audits. Company may be indian Government.

It was built in Django with Sqlite backend. It is hosted on Pythonanywhere.
90% work is accomplished in backend only.

Only report and graph display are in frontend.

My backend is Sqlite. Should I switch to Postgresql for security reason.


What are additional precautions I must take to pass the audit for Software
Approval

Is there any web site giving guidance.


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOuPoODFfePd4iz1ZBPkBpcLQ6%3DkcR58KUuHrkc%3DCkMn5Q%40mail.gmail.com.


Re: Django Error - 'staticfiles' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls

2019-12-18 Thread Balaji Shetty
Thank you very much everyone for help.My problem is solved with version
updates.

On Tuesday, December 17, 2019, Bilim Tr  wrote:

>
>
> 10 Aralık 2019 Salı 19:00:32 UTC+3 tarihinde Balaji yazdı:
>>
>> Hi
>>
>> I am getting error for every Project.
>>
>> I  created new environment and reinstalled python and Django.
>>
>> emplateSyntaxError at /
>>
>> 'staticfiles' is not a registered tag library. Must be one of:
>> admin_list
>> admin_modify
>> admin_urls
>> cache
>> i18n
>> l10n
>> log
>> propeller
>> static
>> tz
>>
>>
>>
>>
>> --
>>
>>
>> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
>> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
>> *Official: bssh...@sggs.ac.in *
>> *  Mobile: +91-9270696267*
>>
>> --
> 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/14b01579-1a10-463d-b9e4-bded2569cb9a%40googlegroups.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOtkK5mWz8OjDr6tZJMkEfAppSXHtf%2Bo7CAc3QHjQJHsdA%40mail.gmail.com.


Suitable Frontend for Django Ract

2019-12-21 Thread Balaji Shetty
Hi

I want to know suitable frontend for Django. CURRENTLY I use bootstrap for
frontend.

React or Angular  or Vuejs or any other

It should be


Easy to learn
Provide highest security
Easily scalable
Can create mobile App


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOu6GSVSDg_miPQJ2tUw8rkuh4Pq-y85GZnQznQk_BRrAw%40mail.gmail.com.


How to make Django Application more secure

2019-12-31 Thread Balaji Shetty
Hi

How can we provide best security to Django Application hosted on
Pythonanywhere cloud.


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOtQNyjPHGra%2Bi7BcGJgCMa%2BxV7fUdaoiBpKQ7JkgWXpZA%40mail.gmail.com.


Re: How to make Django Application more secure

2020-01-02 Thread Balaji Shetty
Dear Jody

Thank you very much.

Entire Application built in backend is more secure than templates using
view??

On Thursday, January 2, 2020, Jody Fitzpatrick <
jody.lee.fitzpatr...@gmail.com> wrote:

> Django by itself is fairly secure, it's your coding that makes it not
> secure and the resources you use.
>
> 1.) Don't use simple passwords.
> 2.) Don't use /admin/ as your admin location. Do change it. - install
> something like honeypot to catch people trying to gain access to admin
> 3.) Don't forget you have decorators that can help keep thing secure like
> login_required and various others.
> 4.) Don't use hard coded sensitive data like.) hash keys, api keys, use
> environment variables.
> 5.) Maintain backups, the more frequent your data changes the more
> frequent you should backup.
>
> Hope this helps you some.
>
> --
> 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/823dc144-b7ee-44b3-b8d6-a1677f344728%40googlegroups.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOuO6n1_WZBf%3D4iu2Fah5bgDvPRBbyOsUoOkhd%3DfvUCZaw%40mail.gmail.com.


Necessary to learn React/ Angular with backend Django

2020-01-07 Thread Balaji Shetty
Hi

Currently i deployed application on pythonanywhere. It is online office
file management system with around 100 users under 10 different department
in hierarchical manner.

User and department may increase in future.

Entire application is developed in Django back end.

Used bootstrap for custom report generation.

question arises in My mind is

Is it Necessary to learn and implement in React/ Angular for front end.


Because I am comfortable with current implementation.


May I know what are gains i may get or what are the disadvantage i may
suffer in future.

Kindly guide me to avoid future inconvenience.


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com.


Re: Necessary to learn React/ Angular with backend Django

2020-01-08 Thread Balaji Shetty
Hello Dear Community

Thank you very much for your nice reply. Definitely your guidance will help
me a lot.



On Wednesday, January 8, 2020, Integr@te System 
wrote:

> Hi Shetty,
>
> You also consider your project serve local users, so unnecessary implement
> high interactive pages from internet clients.
>
> From online docs, you can learn any technique via small best practices and
> apply to your case with basic javascript knowledges or look at python libs,
> and then expand features as business change.
>
> Dont forget systems behide when business move beyond, at least data.
> Nice.
>
>
>
> On Wed, Jan 8, 2020, 01:38 Karan Mittal 
> wrote:
>
>> Hello friend,
>> In my opinion if it is working with current implementation you need not
>> add any react or angular.
>> Learning perspective they are good but implementation of the same in your
>> already working project may raise new errors.
>> That's my opinion, feel free to incorporate them once you have learned
>> and get the response to do so by your users.
>> Regards,
>> Karan Mittal
>>
>> On Tue, 7 Jan, 2020, 11:17 PM Balaji Shetty, 
>> wrote:
>>
>>> Hi
>>>
>>> Currently i deployed application on pythonanywhere. It is online office
>>> file management system with around 100 users under 10 different department
>>> in hierarchical manner.
>>>
>>> User and department may increase in future.
>>>
>>> Entire application is developed in Django back end.
>>>
>>> Used bootstrap for custom report generation.
>>>
>>> question arises in My mind is
>>>
>>> Is it Necessary to learn and implement in React/ Angular for front end.
>>>
>>>
>>> Because I am comfortable with current implementation.
>>>
>>>
>>> May I know what are gains i may get or what are the disadvantage i may
>>> suffer in future.
>>>
>>> Kindly guide me to avoid future inconvenience.
>>>
>>>
>>> --
>>> Mr Shetty Balaji
>>> Asst. Prof.
>>> IT Department
>>> SGGS I&T
>>> Nanded. My. India
>>>
>>> --
>>> 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/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGW
>>> maMxYMJQ5X1sQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com?utm_medium=email&utm_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/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%
>> 40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%40mail.gmail.com?utm_medium=email&utm_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/CAP5HUWpd7-Y7cV%3DG6UR1h_sPibr9gFmzBTQ0EDcTT7v0cDTWMg%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAP5HUWpd7-Y7cV%3DG6UR1h_sPibr9gFmzBTQ0EDcTT7v0cDTWMg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOvqJOyC5moCYaK68eTxp2d3OPXF7EoLQz5jSmAqE4by4g%40mail.gmail.com.


Can I access App Data in CMS

2020-01-17 Thread Balaji Shetty
Hi

I have to create static pages with Audio, video and image Gallery in
existing Django Software App.

How can I achieve it.

Should I create CMS and access Software App Data. is it possible to use
django App Data in CMS.

Which CMS we should prefer.


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOtASyF36xTkxs%3Dz_UgWV1V_Jfq%2BFMBrmehfM5MPBcrEwQ%40mail.gmail.com.


Re: Can I access App Data in CMS

2020-01-17 Thread Balaji Shetty
Hi

Thank you very much for your reply.

Can you please send me any meaningful web resources

On Saturday, January 18, 2020, kaito .  wrote:

> Yes
>
> On Sat, Jan 18, 2020, 2:48 AM Balaji Shetty 
> wrote:
>
>> Hi
>>
>> I have to create static pages with Audio, video and image Gallery in
>> existing Django Software App.
>>
>> How can I achieve it.
>>
>> Should I create CMS and access Software App Data. is it possible to use
>> django App Data in CMS.
>>
>> Which CMS we should prefer.
>>
>>
>> --
>> Mr Shetty Balaji
>> Asst. Prof.
>> IT Department
>> SGGS I&T
>> Nanded. My. India
>>
>> --
>> 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/CAECSbOtASyF36xTkxs%3Dz_UgWV1V_Jfq%
>> 2BFMBrmehfM5MPBcrEwQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOtASyF36xTkxs%3Dz_UgWV1V_Jfq%2BFMBrmehfM5MPBcrEwQ%40mail.gmail.com?utm_medium=email&utm_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/CAOgSYSD5ZYFaFTci0H2z8t9xZtWT5
> novtEOm_JcHEcKM2BeV5g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOgSYSD5ZYFaFTci0H2z8t9xZtWT5novtEOm_JcHEcKM2BeV5g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOss7nhX2z6rZbBXCL7dQD2KmKoLiGOM5r_6NY2dCiSROw%40mail.gmail.com.


Re: DjangoEveryDay. My practice website!

2020-01-19 Thread Balaji Shetty
Great

We follow you means ...

Are you making code available on github to improve further..

On Sunday, January 19, 2020, 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
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOtnvBqGo24hmoA5%2BA56P%2BtZ5VU5OBaSQpHm8VsdRE4sbg%40mail.gmail.com.


Re: Got an interview, need some idea for projects.

2020-01-24 Thread Balaji Shetty
Congrats Dear

It's not important how many concept you know. It's important regarding your
basics for Model, View class and function , Template,  Rest API and Admin
Basics with User, group Management , with and permission.

Most important is Data Base normailZation and Query languages.

As you are fresher, you may focus on this .
If possible, you may put project on Cloud to show demo.


All the Best...




On Thursday, January 23, 2020, Jack Lin  wrote:

>
>
> Hi Django users, I'm Jack who currently learning Django everyday
> 
> My practice projects is little tiny function for now. however I got an
> interview yesterday which is an Django Web Developer in Stock Company.
> 
>
> The contact person told me that I should prepare a project to show my
> skills. It make me wonder should I do something bigger rather than practice
> some teeny- tiny function :(
> I got a few knowledge and a lot of interest in stock. But I got no ideas
> what can I do on a website?
>
> Any ideas?
>
>
> Sincerely Yours
> Jack Sanchez, who learn DjangoEveryDay
> 
> .
>
> --
> 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/cd6cd293-ed76-49ad-8e70-a0511088912c%40googlegroups.com
> 
> .
>


-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

-- 
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/CAECSbOu_d9w0u%3DEChvOuiUryzsQtyZV%3Da%3Defjtm0Qp%3Da0eHgqg%40mail.gmail.com.


Refer web page to Another Whatsapp Number

2020-02-22 Thread Balaji Shetty
Hi

Can anyone please suggest me how can i achieve the following task

If my web site have a particular page which is liked by the user.
My web site user want to share.
 this page with his friend on whatsapp.
So web site will have share Button which will redirect him to Whatsapp
App. He will select his friend Whatapp number and page will be shared with
another user.

-- 


*Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
*SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
*Official: bsshe...@sggs.ac.in  *
*  Mobile: +91-9270696267*

-- 
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/CAECSbOtNqdf6a5Uh8h2RoznR4CNAn7usw9Wdibb6ZSBWdrevRw%40mail.gmail.com.