Django Model Forms.

2019-05-17 Thread kimeualexis
Hello, guys.
Is there a way to lay out Django Model form fields across the Browser 
rather than top-down?

Kindly assist.

-- 
You received this message because you are subscribed to the Google Groups 
"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/a15b2496-49a6-4ee3-ae44-487ea175bd5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Model Forms.

2019-05-17 Thread Joe Reitman
In your template you can identify each field by its name and use a table to 
render them in columns. e.g.

table
  table row
table data {{ form.username }}
table data {{ form.password }}

On Friday, May 17, 2019 at 2:23:14 AM UTC-5, kimeualexis wrote:
>
> Hello, guys.
> Is there a way to lay out Django Model form fields across the Browser 
> rather than top-down?
>
> Kindly assist.
>

-- 
You received this message because you are subscribed to the Google Groups 
"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/91849286-5271-48be-ae7d-b90c5ab59ea5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Model Forms.

2019-05-17 Thread Alex Kimeu
Thanks. Makes sense. Let me try it. Thanks.

On Fri, 17 May 2019, 14:18 Joe Reitman,  wrote:

> In your template you can identify each field by its name and use a table
> to render them in columns. e.g.
>
> table
>   table row
> table data {{ form.username }}
> table data {{ form.password }}
>
> On Friday, May 17, 2019 at 2:23:14 AM UTC-5, kimeualexis wrote:
>>
>> Hello, guys.
>> Is there a way to lay out Django Model form fields across the Browser
>> rather than top-down?
>>
>> Kindly assist.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "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/91849286-5271-48be-ae7d-b90c5ab59ea5%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/CACYP3VEqNWAukvQSf1DJOZ784oODbTxGxn0dZ71yOP6DNKzoPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: reg: Django model sequense of the fields

2019-05-17 Thread 'Akash Sinha' via Django users
Hello 

This happens for 2 reasons
1st. Those fields might be Foreign key, Foreign key fields are shown at the end 
in DB.

2nd.  You have added those fields later in our model class, if you will add new 
fields in model.py file those fields will be listed at the end.


 
 
  On Wed, May 8, 2019 at 9:22 PM, 'Amitesh Sahay' via Django 
users wrote:   Hello Users, 
I am seeing a very strange issue with my Django models. in my models.py, I have 
21 fields. Out of them , the 6th field is DASHBoard. However, when I see those 
fields in my postgres DB through PgAdminIII, it is listed at the very end of 
the list. 
Sorry, for security reasons I couldn't give the list of the fields here.
Could there be any explanation for this situation?


Regards,
Amitesh Sahay

-- 
You received this message because you are subscribed to the Google Groups 
"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/1048828608.1995499.1557330720573%40mail.yahoo.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/284735666.2028007.1558069879362%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.


Inherit permissions View (U.I.)

2019-05-17 Thread Rishi Dutta
How can I allow the company user say managers to grant access or revoke 
access from there junious. I want same view like permissions in user model. 
how can i inherit it exactly  in my cutomized model. Thank you 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To 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/67f2112e-1562-4f57-84b2-67756be62db9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Generate CUID Client Side

2019-05-17 Thread Mario R. Osorio
This question is OT however; *cuid *being a js library, what you have to do 
is have your templates include the necessary libraries and make use of them.





On Thursday, May 16, 2019 at 9:09:13 AM UTC-4, Timothy Cook wrote:
>
> I have a project where I want to generate a CUID client side to send to a 
> REST API service as the document name. 
>
> My question is how to best include the cuid library 
>  so that the client browser is 
> generating the CUID and how to implement this in the template so I can post 
> this cuid back to the view.
>
> Thanks,
> Tim
>
> -- 
> Timothy W. Cook, CEO
> Data Insights, Inc. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"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/9a4e9bd3-398c-4796-bc39-f895973b0feb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: reg: Django model sequense of the fields

2019-05-17 Thread Test Bot
[Just Curious] would it matter in any way what the position of field is in
the respective tables.

On Fri, May 17, 2019, 5:46 PM 'Akash Sinha' via Django users <
django-users@googlegroups.com> wrote:

> Hello
>
> This happens for 2 reasons
>
> 1st. Those fields might be Foreign key, Foreign key fields are shown at
> the end in DB.
>
>
> 2nd.  You have added those fields later in our model class, if you will
> add new fields in model.py file those fields will be listed at the end.
>
>
>
>
> On Wed, May 8, 2019 at 9:22 PM, 'Amitesh Sahay' via Django users
>  wrote:
> Hello Users,
>
> I am seeing a very strange issue with my Django models.
> in my models.py, I have 21 fields. Out of them , the 6th field is
> DASHBoard. However, when I see those fields in my postgres DB through
> PgAdminIII, it is listed at the very end of the list.
>
> Sorry, for security reasons I couldn't give the list of the fields here.
>
> Could there be any explanation for this situation?
>
> Regards,
> Amitesh Sahay
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/1048828608.1995499.1557330720573%40mail.yahoo.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/284735666.2028007.1558069879362%40mail.yahoo.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/CAD%3DM5eRMBwtQfgEacV3SqDCh4zZMDPtJ_yarb1_eazMYpcuDAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to

2019-05-17 Thread Nelson Varela
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.
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-17 Thread Balaji Shetty
*Hi*


*I tried it 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
>>> *
>>>
>>>
>>> *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.
>>>
>>
>>
>> --
>> 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 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/CAM-7rO3_w8sTXxjAz0C0CoTvd%3Dnhqa%3Dbz8Q1ofQtFJrBF2Trbg%40mail.gmail.com
>> 

Re: PUT/DELETE Method not allowed

2019-05-17 Thread Andréas Kühne
Hi,

You need to provide more information for us to be able to help you. Can you
provide some more background information about:
1. What you are trying to do - and what you have previously done?
2. models.py, views.py or any other files you think can be relevant (or
code snippets from them)..

Just showing the error code is unfortunately not that easy for us
to understand because of djangos versitality - it can be used in so many
different ways!

Regards,

Andréas


Den tors 16 maj 2019 kl 17:32 skrev Prabakaran Balaji :

> Hi,
>
> Error - "detail": "Method \"PUT\" not allowed."
>
> Getting above error When I try to update the model. Can someone help me on
> this?
>
>
> Thanks,
> Prabu
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/CAK7fxT99v3BjpG3svU3sWh2_bvnEzLiGnhp-z3WiLTHV98Y4uA%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/CAK4qSCeHRSmBOXV%3Dnfa5WyUpM5NQz76DRyO4hm1rnWriQn2wOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: PUT/DELETE Method not allowed

2019-05-17 Thread Prabakaran Balaji
Thanks for looking into this.

Attaching the files(models.py, views.py and urls.py from app) for
reference, please look into this and give some feedback

Thanks,
Prabu

On Fri, May 17, 2019 at 9:16 PM Andréas Kühne 
wrote:

> Hi,
>
> You need to provide more information for us to be able to help you. Can
> you provide some more background information about:
> 1. What you are trying to do - and what you have previously done?
> 2. models.py, views.py or any other files you think can be relevant (or
> code snippets from them)..
>
> Just showing the error code is unfortunately not that easy for us
> to understand because of djangos versitality - it can be used in so many
> different ways!
>
> Regards,
>
> Andréas
>
>
> Den tors 16 maj 2019 kl 17:32 skrev Prabakaran Balaji <
> prabu.b...@gmail.com>:
>
>> Hi,
>>
>> Error - "detail": "Method \"PUT\" not allowed."
>>
>> Getting above error When I try to update the model. Can someone help me
>> on this?
>>
>>
>> Thanks,
>> Prabu
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "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/CAK7fxT99v3BjpG3svU3sWh2_bvnEzLiGnhp-z3WiLTHV98Y4uA%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/CAK4qSCeHRSmBOXV%3Dnfa5WyUpM5NQz76DRyO4hm1rnWriQn2wOA%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/CAK7fxT8aiHdU22Ez5npQJbaHfaBKK8wm0EZ_%3Dkp2tJKYzC7ynA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
from django.db import models

class Agent(models.Model):
name = models.CharField(max_length=100)
address = models.TextField()
age = models.CharField(max_length=10)
rating = models.CharField(max_length=100)
code = models.CharField(max_length=50,primary_key=True)
bank_details = models.TextField()from django.conf.urls import include, url
from policy import views
from rest_framework.urlpatterns import format_suffix_patterns

# Class based view url update
urlpatterns = [
url('agent/', views.AgentList.as_view()),
url('agent/', views.AgentDetail.as_view()),
]
from policy.models import Agent, Customer
from policy.serializers import AgentSerializer


class AgentList(generics.ListCreateAPIView):
queryset = Agent.objects.all()
serializer_class = AgentSerializer

class AgentDetail(generics.RetrieveUpdateDestroyAPIView):
queryset = Agent.objects.all()
serializer_class = AgentSerializer

Re: While registering the user with django form, it gives "UNIQUE constraint failed: auth_user.username" error

2019-05-17 Thread RAJENDRA MYTHILI 17BIS0120
I'm facing the same issue ... Did you figure out what's wrong?

On Saturday, October 6, 2018 at 6:28:09 AM UTC-7, Jaydeep Borkar wrote:
>
> When I try to register a user using Django form, it gives me "UNIQUE 
> constraint failed: auth_user.username". When I tried registering the first 
> user, it worked, but I couldn't see that entry in my database. When I tried 
> registering the second user, it's giving me this error. Please, help me 
> through this. I have spent a considerable amount of time on this and I'm 
> stuck. 
>
> This is my code: 
>
> forms.py 
> from django import forms
> from django.contrib.auth.models import User
> from volunteer.models import UserProfileInfo
>
> class UserForm(forms.ModelForm):
>
> class Meta():
> model = User
> fields = ('email','first_name','last_name')
>
>
>
>
> views.py 
> from django.shortcuts import render
> from volunteer.forms import UserForm
>
>  
>
> def register(request):
>
> registered = False
>
> if request.method =="POST" :
> user_form = UserForm(data=request.POST)
>
> if user_form.is_valid():
>
> user = user_form.save()
> user.save()
>
> registered = True
>
> else:
> print(user_form.errors)
>
> else:
> user_form = UserForm()
>
> return render(request, 'volunteer/volunteer.html',
>  {'user_form':user_form,
>   'registered':registered})
>
>  
>   
>
>
> 
>
>
>
> models.py 
> from django.db import models
> from django.contrib.auth.models import User
>
> class UserProfileInfo(models.Model):
>
> user=models.OneToOneField(User)
>
> def __str__(self):
> return self.user.first_name
> return self.user.last_name
> return self.user.email
>
>
>
>
>
>
>
> urls.py
> from django.conf.urls import url
>
> from . import views
>
> app_name = 'volunteer'
>
> urlpatterns = [
>
>  url(r'^', views.register, name='register'),
> ]
>
>
>
> admin.py
> from django.contrib import admin
> from volunteer.models import UserProfileInfo
>
> # Register your models here.
> admin.site.register(UserProfileInfo)
>
>
>
> volunteer.html file which has the user form
> 
> 
> 
> 
>  
>  
> 
>
>  
> https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css";>
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
> ">
> https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js
> ">
>  https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js
> ">
>  
>   
>  
>   
>
>  
> {% if registered %}
>Thanks!
> {% else %}
>   Register
>
>
>  
> {% csrf_token %}
> {{ user_form.as_p }}
>  
>
>  {% endif %}
>
>   
>
>  
>  
>
> 
>  
>
>
>
> I feel there's some problem in views.py or models.py, or volunteer.html. 
> or maybe something else. Please, guide me through this. 
> Thanks 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 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/c59e6938-86fd-4cfc-90ed-3053032b8e2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: While registering the user with django form, it gives "UNIQUE constraint failed: auth_user.username" error

2019-05-17 Thread Guru Murthy
Hi,
Your _str function name is only one name is give in that model

Regards
Gurumurthy P


On Fri, 17 May, 2019, 10:21 PM RAJENDRA MYTHILI 17BIS0120, <
rajendra.mythili2...@vitstudent.ac.in> wrote:

> I'm facing the same issue ... Did you figure out what's wrong?
>
> On Saturday, October 6, 2018 at 6:28:09 AM UTC-7, Jaydeep Borkar wrote:
>>
>> When I try to register a user using Django form, it gives me "UNIQUE
>> constraint failed: auth_user.username". When I tried registering the first
>> user, it worked, but I couldn't see that entry in my database. When I tried
>> registering the second user, it's giving me this error. Please, help me
>> through this. I have spent a considerable amount of time on this and I'm
>> stuck.
>>
>> This is my code:
>>
>> forms.py
>> from django import forms
>> from django.contrib.auth.models import User
>> from volunteer.models import UserProfileInfo
>>
>> class UserForm(forms.ModelForm):
>>
>> class Meta():
>> model = User
>> fields = ('email','first_name','last_name')
>>
>>
>>
>>
>> views.py
>> from django.shortcuts import render
>> from volunteer.forms import UserForm
>>
>>
>>
>> def register(request):
>>
>> registered = False
>>
>> if request.method =="POST" :
>> user_form = UserForm(data=request.POST)
>>
>> if user_form.is_valid():
>>
>> user = user_form.save()
>> user.save()
>>
>> registered = True
>>
>> else:
>> print(user_form.errors)
>>
>> else:
>> user_form = UserForm()
>>
>> return render(request, 'volunteer/volunteer.html',
>>  {'user_form':user_form,
>>   'registered':registered})
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> models.py
>> from django.db import models
>> from django.contrib.auth.models import User
>>
>> class UserProfileInfo(models.Model):
>>
>> user=models.OneToOneField(User)
>>
>> def __str__(self):
>> return self.user.first_name
>> return self.user.last_name
>> return self.user.email
>>
>>
>>
>>
>>
>>
>>
>> urls.py
>> from django.conf.urls import url
>>
>> from . import views
>>
>> app_name = 'volunteer'
>>
>> urlpatterns = [
>>
>>  url(r'^', views.register, name='register'),
>> ]
>>
>>
>>
>> admin.py
>> from django.contrib import admin
>> from volunteer.models import UserProfileInfo
>>
>> # Register your models here.
>> admin.site.register(UserProfileInfo)
>>
>>
>>
>> volunteer.html file which has the user form
>> 
>> 
>> 
>> 
>>
>>
>> 
>>
>>
>> https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css";>
>> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
>> ">
>> https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js
>> ">
>>  https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js
>> ">
>>
>> 
>>
>> 
>>
>>  
>> {% if registered %}
>>Thanks!
>> {% else %}
>>   Register
>>
>>
>>  
>> {% csrf_token %}
>> {{ user_form.as_p }}
>>  
>>
>>  {% endif %}
>>
>>  
>>
>>
>>  
>>
>> 
>> 
>>
>>
>>
>> I feel there's some problem in views.py or models.py, or volunteer.html.
>> or maybe something else. Please, guide me through this.
>> Thanks 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 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/c59e6938-86fd-4cfc-90ed-3053032b8e2d%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/CAMgkGLVWrHfW08EAY2DWhnKEioyXgOie%3D6vkv-Vr9oSVhGG%3Dsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Training

2019-05-17 Thread Chetan Ganji
You need this one.

https://www.youtube.com/watch?v=KsLHt3D_jsE&list=PLEsfXFp6DpzRcd-q4vR5qAgOZUuz8041S


Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Thu, May 16, 2019 at 10:02 PM Scyil sharma 
wrote:

> Can anyone suggest the best Django summer training in 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/7093afe7-4a42-4c5b-8c53-fe12c7e7699d%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/CAMKMUjtLR%2BQd8ZKxzD6%2B%2Br_cGP5%3D66ojJC6rSZX5KDnMrNh-ng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Porting Django app

2019-05-17 Thread Chetan Ganji
I understand the pain of a Linux user ;) You don't need to port anything at
all ;-)

RE:  nothing can be web based, it must be in house and
disconnected from the external web.

As there would be multiple users using the same instance of the software, a
web app is that they need.
That way all the data and the actual app is located in a centralised
location.

Use any stack, you will end up creating a webapp for this scenario.

*Solution - *
Create the app in Python 3.7 and Django 2.2. Give them a desktop pc with
Ubuntu 18.04 LTS installed.
Install Nginx + Gunicorn + Python 3.7 + Django 2.2 on this desktop. Get
everything up and running.
This desktop becomes their new server for this app.

The only difference here will be that instead of hosting the server on at a
hosting providers location i.e. in the cloud,
above server would would be located locally on their premises. This server
would be different from their servers/pcs.
So they would have to use the app in a LAN setting i.e. access the app
using local ip instead of a web domain.
Just remember to charge them for the desktop server you will provide ;-)

Use AMD Ryzen or Threadripper for the server as they have more cores and
threading enabled,
they will be better than intel based cpus for a server pc.

If they don't want your server, ask them to buy a separate one for this app.

This way,

   1. They can use whichever OS they want to use.
   2. Keep their security policy "NADA, NOT GONNA INSTALL THAT".
   3. Get more security as their webserver need not be connected to
   internet at all.
   4. They don't have to install any third party softwares on their so
   called secure servers/pcs.
   5. Store everything in a centralised location.
   6. You don't have to learn C or C++.
   7. You get to pay me $1000 for consulting, LOLZ. Just kidding :)


I hope it helps :)


Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Thu, May 16, 2019 at 3:29 PM RLM  wrote:

> Hello all.
> I eventually will need to put my dedicated Django app on another system
> owned by a Public institution. The app correlates each data set of 26
> million plus samples to a QR code for each.
> Security is major  so nothing can be web based, it must be in house and
> disconnected from the external web.
>
> A problem is I'm developing on Linux and Mac and much of the world uses
> Windows 10 et al.
>
> Installation of python3, Django, mysql and the app would rely on the IT
> people at the institution who do not like installing software on secure
> systems.
> I would also point out that schools here also fall into the "will not
> install that software" category significantly limiting student's ability
> to learn modern systems.
>
> I trialed compiling Python3 app to an .exe file, works ok, but am
> concerned that P3/Django will not do so.
>
> Bio: I'm in my 70's, been developing web apps for 25 years and do not
> want to learn C and C++.
>
> Can anyone advise me how to go about providing the system at minimum
> problems for the IT sector of the institution.
> Thanks in  advance
>
> Roger
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/f68670b3-a75d-61ef-2f5b-61065e5a9f56%40gmail.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/CAMKMUjveUrmMxHA8fgd_1vuUnw6mkSZvjS66NtiQ%3DRTD2ERdiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Legacy DB: ID is null when .save or .create

2019-05-17 Thread Mei B
I'm using a legacy DB with postgres. In one of my models:

class case(models.Model):
 id = models.AutoField(primary_key=True)
 case_id = models.ForeignKey(.)
 user_id = models.ForeignKey(...)

When I'm saving or creating a new case object, I always get "null value in 
column 'id' violates not-null"

How do I get this to auto-increment?

-- 
You received this message because you are subscribed to the Google Groups 
"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/5d621db9-39e8-44c8-92e2-80fdabc760af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Legacy DB: ID is null when .save or .create

2019-05-17 Thread Sanjeev Singh
Hey, in django there is a `id` column by default get created for every
object you create which will auto-increment so need to create here. In your
case your model should be look like this:

*class Case(models.Model):*
* case_id = models.ForeignKey(.)*
* user_id = models.ForeignKey(...)*


*And suppose to get the model of id=1:*



*Case.objects.get(id=1)thanks,Sanjeev*

On Sat, May 18, 2019 at 1:42 AM Mei B  wrote:

> I'm using a legacy DB with postgres. In one of my models:
>
> class case(models.Model):
>  id = models.AutoField(primary_key=True)
>  case_id = models.ForeignKey(.)
>  user_id = models.ForeignKey(...)
>
> When I'm saving or creating a new case object, I always get "null value in
> column 'id' violates not-null"
>
> How do I get this to auto-increment?
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/5d621db9-39e8-44c8-92e2-80fdabc760af%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/CA%2Btz_AAxc1WPtyz%2Bc7%3D%2BGtFiLzmReLYSmobD3QdhBJpg_jxe4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: Legacy DB: ID is null when .save or .create

2019-05-17 Thread Matthew Pava
You may need to reset your auto increment counter in PostgreSQL. I remember 
having this problem once.
https://stackoverflow.com/questions/5342440/reset-auto-increment-counter-in-postgres


From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Mei B
Sent: Friday, May 17, 2019 2:56 PM
To: Django users
Subject: Legacy DB: ID is null when .save or .create

I'm using a legacy DB with postgres. In one of my models:

class case(models.Model):
 id = models.AutoField(primary_key=True)
 case_id = models.ForeignKey(.)
 user_id = models.ForeignKey(...)

When I'm saving or creating a new case object, I always get "null value in 
column 'id' violates not-null"

How do I get this to auto-increment?
--
You received this message because you are subscribed to the Google Groups 
"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/5d621db9-39e8-44c8-92e2-80fdabc760af%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/c0d915c7229a4bcfb6df1b0a99c3b99a%40iss2.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


Re: Generate CUID Client Side

2019-05-17 Thread Timothy Cook
On Fri, May 17, 2019 at 10:23 AM Mario R. Osorio 
wrote:

> This question is OT however; *cuid *being a js library, what you have to
> do is have your templates include the necessary libraries and make use of
> them.
>
>
>
Well, it's not exactly off topic. I am specifically asking about
integration with Django templates so that I can generate CUIDs in the
client browser.
Currently, I do it in the view via the Python library
. But that always uses the information
from the server.
But thanks anyway.



>
>
>
> On Thursday, May 16, 2019 at 9:09:13 AM UTC-4, Timothy Cook wrote:
>>
>> I have a project where I want to generate a CUID client side to send to a
>> REST API service as the document name.
>>
>> My question is how to best include the cuid library
>>  so that the client browser is
>> generating the CUID and how to implement this in the template so I can post
>> this cuid back to the view.
>>
>> Thanks,
>> Tim
>>
>> --
>> Timothy W. Cook, CEO
>> Data Insights, Inc.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "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/9a4e9bd3-398c-4796-bc39-f895973b0feb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Timothy W. Cook, CEO
Data Insights, Inc.

-- 
You received this message because you are subscribed to the Google Groups 
"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/CAENjPc-JDiJzDRV_QC142rcW_nALorEUtFmF3RrWtgZiADgaKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: While registering the user with django form, it gives "UNIQUE constraint failed: auth_user.username" error

2019-05-17 Thread Joe Reitman
I'm not sure what your objective is but you don't need to create another 
model to store user data. User data is stored in the auth.models. It has 
fields already available for what your trying to accomplish. 

On Saturday, October 6, 2018 at 8:28:09 AM UTC-5, Jaydeep Borkar wrote:
>
> When I try to register a user using Django form, it gives me "UNIQUE 
> constraint failed: auth_user.username". When I tried registering the first 
> user, it worked, but I couldn't see that entry in my database. When I tried 
> registering the second user, it's giving me this error. Please, help me 
> through this. I have spent a considerable amount of time on this and I'm 
> stuck. 
>
> This is my code: 
>
> forms.py 
> from django import forms
> from django.contrib.auth.models import User
> from volunteer.models import UserProfileInfo
>
> class UserForm(forms.ModelForm):
>
> class Meta():
> model = User
> fields = ('email','first_name','last_name')
>
>
>
>
> views.py 
> from django.shortcuts import render
> from volunteer.forms import UserForm
>
>  
>
> def register(request):
>
> registered = False
>
> if request.method =="POST" :
> user_form = UserForm(data=request.POST)
>
> if user_form.is_valid():
>
> user = user_form.save()
> user.save()
>
> registered = True
>
> else:
> print(user_form.errors)
>
> else:
> user_form = UserForm()
>
> return render(request, 'volunteer/volunteer.html',
>  {'user_form':user_form,
>   'registered':registered})
>
>  
>   
>
>
> 
>
>
>
> models.py 
> from django.db import models
> from django.contrib.auth.models import User
>
> class UserProfileInfo(models.Model):
>
> user=models.OneToOneField(User)
>
> def __str__(self):
> return self.user.first_name
> return self.user.last_name
> return self.user.email
>
>
>
>
>
>
>
> urls.py
> from django.conf.urls import url
>
> from . import views
>
> app_name = 'volunteer'
>
> urlpatterns = [
>
>  url(r'^', views.register, name='register'),
> ]
>
>
>
> admin.py
> from django.contrib import admin
> from volunteer.models import UserProfileInfo
>
> # Register your models here.
> admin.site.register(UserProfileInfo)
>
>
>
> volunteer.html file which has the user form
> 
> 
> 
> 
>  
>  
> 
>
>  
> https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css";>
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
> ">
> https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js
> ">
>  https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js
> ">
>  
>   
>  
>   
>
>  
> {% if registered %}
>Thanks!
> {% else %}
>   Register
>
>
>  
> {% csrf_token %}
> {{ user_form.as_p }}
>  
>
>  {% endif %}
>
>   
>
>  
>  
>
> 
>  
>
>
>
> I feel there's some problem in views.py or models.py, or volunteer.html. 
> or maybe something else. Please, guide me through this. 
> Thanks 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 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/ec026d1c-9724-4826-b187-cd80ff30744a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: i am new i want full details of Django

2019-05-17 Thread omar ahmed
if you know python basic go to 
https://www.djangoproject.com/

On Thursday, May 16, 2019 at 4:00:02 PM UTC+2, Sanjay K wrote:
>
> could u please provide the basic books
>

-- 
You received this message because you are subscribed to the Google Groups 
"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/cfac3470-75b2-426e-a85a-e10c2443a2b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Porting Django app

2019-05-17 Thread Ganesh Babu
i understand what you are saying..  To collect private IP address or create
as Virtual host in LINUX server, its should available.

On Thu, May 16, 2019 at 3:29 PM RLM  wrote:

> Hello all.
> I eventually will need to put my dedicated Django app on another system
> owned by a Public institution. The app correlates each data set of 26
> million plus samples to a QR code for each.
> Security is major  so nothing can be web based, it must be in house and
> disconnected from the external web.
>
> A problem is I'm developing on Linux and Mac and much of the world uses
> Windows 10 et al.
>
> Installation of python3, Django, mysql and the app would rely on the IT
> people at the institution who do not like installing software on secure
> systems.
> I would also point out that schools here also fall into the "will not
> install that software" category significantly limiting student's ability
> to learn modern systems.
>
> I trialed compiling Python3 app to an .exe file, works ok, but am
> concerned that P3/Django will not do so.
>
> Bio: I'm in my 70's, been developing web apps for 25 years and do not
> want to learn C and C++.
>
> Can anyone advise me how to go about providing the system at minimum
> problems for the IT sector of the institution.
> Thanks in  advance
>
> Roger
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/f68670b3-a75d-61ef-2f5b-61065e5a9f56%40gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Best Regards
Sri Ganesh Babu.S
Sr. Software Engineer,

*Doyen Solutions*

-- 
You received this message because you are subscribed to the Google Groups 
"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/CAJZVxAv1nSpLNett9kTmRKXEVsheePwqXTM2%2BGbE50rqtTW3Mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


FCM notification using Django Rest Framework

2019-05-17 Thread Mr. Shivprasad
Hii
 This is shivprasad, Im working on Django !.8 And Python 2.7 I want to
built django FCM Notification Any One have idea About this ? Becouse I get
Documents ON django fcm but this is Compatible for on python 3.4 and above,
And Django 1.11

 https://django-fcm.readthedocs.io/en/latest/quickstart.html

How I built using Python 2.7 and django 1.8 ?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To 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/CAFR1ACQYH7n_75A-iXCeVEB2zX8kxJou7_AREhp5VubrQEn7Yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.