Re: Django App plugins

2018-07-29 Thread Melvyn Sopacua
On zondag 29 juli 2018 23:14:34 CEST Christian González wrote: > On zondag 29 juli 2018 11:02:30 CEST Christian González wrote: > > There might also be another reason and that is that in the Python > > community, there's a good realisation that downloadable and instantly > > installable plugins fo

Django template cheat sheet or ebook

2018-07-29 Thread aditya gupta
Can anyone tell me where I can find Django template cheat sheet or ebook. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.c

Re: I want to remove username unique and its validation from django i tried but not working

2018-07-29 Thread Phako Perez
You want to update an unique field as null which is wrong, you aren’t able to insert update a field marked as unique instead you can remove the entire row, if you wanted to track all users on your table you can add 2 fields to the table, 1 for the update date and other for a flag which can tell

Re: Django App plugins

2018-07-29 Thread Christian González
On zondag 29 juli 2018 11:02:30 CEST Christian González wrote: >> anyone? I wondered if I'm the only one that has such a use case? > > I think so. Why not distribute it as a Django **project** so the > plugins are reusable apps. I think that's the best idea yet. My application will be a -eh- "bigg

Re: Django Login Error

2018-07-29 Thread Melvyn Sopacua
On zondag 29 juli 2018 14:07:19 CEST Kasper Laudrup wrote: > On 2018-07-29 10:27, lalitaquasoft wrote: > > How to remove Unique username > > How would you expect user management to work if usernames are not unique? By using split fields. I've ran into this as well, as I want to allow the same u

Re: Django App plugins

2018-07-29 Thread Melvyn Sopacua
On zondag 29 juli 2018 11:02:30 CEST Christian González wrote: > anyone? > I wondered if I'm the only one that has such a use case? I think so. Why not distribute it as a Django **project** so the plugins are reusable apps. You can also nest apps, like "coolstuff.plugins.*". It may get tricky wi

Re: File-Backend or Filemanagement

2018-07-29 Thread Melvyn Sopacua
On zondag 29 juli 2018 10:50:58 CEST Muri Nicanor wrote: > i'm writing a Django application that has the management of textfiles on > the server as one of the requirements. I've already created a model that > parses the textfiles and provides a way of editing the files. To choose > the indivdiual

Re: Django Login Error

2018-07-29 Thread Deepak sharma
I recommend :* DON'T,* because it is by default UserIdentifier, It is used to make UserLogins and you have to override a lot of builtIns to achieve what you are trying to do. But if you still want to: `username` validator is defined in AbstractUser Class, and inheritence flow is like: Abst

Documentation on Template Inheritance

2018-07-29 Thread Tehem
The Template Inheritance documentation could use some more guidelines. First, It's not indicated in the Django Documentation that the *child *template is the actual view to be loaded, contrary to what its name would imply : Template inheritance allows you to build a base “skeleton” template

Re: Django Login Error

2018-07-29 Thread Kasper Laudrup
Hi, On 2018-07-29 10:27, lalitaquasoft wrote: How to remove Unique username How would you expect user management to work if usernames are not unique? Are you planning to differentiate users with identical usernames some other way? Kind regards, Kasper Laudrup -- You received this messa

File-Backend or Filemanagement

2018-07-29 Thread Muri Nicanor
Hi list, i'm writing a Django application that has the management of textfiles on the server as one of the requirements. I've already created a model that parses the textfiles and provides a way of editing the files. To choose the indivdiual textfiles i created a simple view that does a file listi

Re: Django App plugins

2018-07-29 Thread Ravi Kirana
Friends Can I use django from spyder On Sun, Jul 29, 2018 at 2:32 PM, Christian González < christian.gonza...@nerdocs.at> wrote: > > anyone? > I wondered if I'm the only one that has such a use case? Create a Django > application with downloadable extensions of the code? How do you do the > model

I want to remove username unique and its validation from django i tried but not working

2018-07-29 Thread lalitaquasoft
Getting this error :I have tried to change username nul but not working IntegrityError at /register/ UNIQUE constraint failed: superuser_user.username please help me on this issue . It will take too much time ` -- You received this message because you are subscribed to the Google Groups

Django Login Error

2018-07-29 Thread lalitaquasoft
IntegrityError at /register/ UNIQUE constraint failed: superuser_user.username How to remove Unique username -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email t

Re: Django App plugins

2018-07-29 Thread Christian González
anyone? I wondered if I'm the only one that has such a use case? Create a Django application with downloadable extensions of the code? How do you do the models/migrations? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

Re: Change the default route of a view

2018-07-29 Thread Andréas Kühne
If you are using DRF with normal URLs you just create a view that inherits from the delete, update and retrieve mixins. Something like this should work: from rest_framework import generics, mixins, permissions User = get_user_model() class UserProfileChangeAPIView(generics.RetrieveAPIView,