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 e

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 la

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 }

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

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 "Djan

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

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 fie

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

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 dif

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

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 yo

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

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

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

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 da

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' vi

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(...)*

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,

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

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 t

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

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. Th

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/quickst