Re: Admin form in intermediate page

2019-11-20 Thread Derek
This is an old post but one that helped me when I first working on this: https://www.jpichon.net/blog/2010/08/django-admin-actions-and-intermediate-pages/ On Tuesday, 19 November 2019 16:54:25 UTC+2, Thiago Luiz Parolin wrote: > > I have a form in admin that when selecting a particular action, pr

Re: Why I am not able to see the post that I write on this group?

2019-11-20 Thread Derek
I can see it - but I guess that does not help you? On Wednesday, 20 November 2019 13:50:01 UTC+2, tramites xpress drive wrote: > > Why I am not able to see the post that I write on this group? > -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: reg: django Model for MCQs type project

2019-11-20 Thread Yoo
Have a Test model which as a unique identifier (BigAutoField). Get a Questions model with a foreign key to a test and a charfield for the question itself (you can add BrinIndex for optimization). You can add a booleanfield if the question is optional and whatever else you need (like the correct

Re: Problem trying to use postgresql and psycopg2 in a django project

2019-11-20 Thread Yoo
Hey, I think for OSX (Mac) or anything using the Darwin OS (basically apple) has to use psycopg2’s binary. Just install psycopg2-binary and it should work. On Wednesday, November 20, 2019 at 6:50:01 AM UTC-5, tramites xpress drive wrote: > Hi, I Have been trying to setup my django 2 developement

Re: Django authentication best practice

2019-11-20 Thread Yoo
Whenever I deploy an app, I always use cookiecutter-django. I’m pretty sure there is an option lying somewhere in the settings that let you disable username. If not, I believe the BaseUser model has the option of the unique identifier or username be set to the email itself. Otherwise, you can d

Re: Correct Design: one app depending on another app

2019-11-20 Thread Andrew C.
I’m not sure what you mean by content management, so I’m gonna take a guess: website builder like Weebly or Wix. You need a NoSQL database, completely unstructured data. Kind of like a crime file drawer with folders dedicated to each case and all its evidence. Some folders only have one piece of ev

Re:

2019-11-20 Thread Paras Jain
i need the code i am not able to understand by reading documenetation On Thu, Nov 21, 2019 at 1:34 AM Kasper Laudrup wrote: > Hi Paras, > > I hope I'm mistaken but these lines: > > On 20/11/2019 18.52, Paras Jain wrote: > > user = User.objects.get(email=email) > >

Re:

2019-11-20 Thread Paras Jain
but i have passed two argument in login function its showing error if user.type == 'Normal': print('hobbies : ', user.hobbies) return detail(request, user) def detail(request): print('hobbies : ', user.hobbies) return render(request, 'company/detail.html',

Re: DRF UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6

2019-11-20 Thread Aldian Fazrihady
I guess texts in your database is encoded using other than UTF-8. Please change `getline(self.filename, ..)` to `getline(self.filename.decode('utf-16'), ..` On Mon, Oct 21, 2019 at 7:48 PM Kerstin Rohm < kerstin.r...@ibmt.fraunhofer.de> wrote: > Dear Django Community, > > > we have a curious enc

Re: DRF UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6

2019-11-20 Thread Sarah Werker
On Monday, October 21, 2019 at 8:49:02 AM UTC-4, Kerstin Rohm wrote: > Dear Django Community, > > I think you should call me at 574-217-1330 or text and we can discuss it > > > we have a curious encoding error and we are running out of ideas to > solve the problem. > > > We build a Django REST

Re:

2019-11-20 Thread Kasper Laudrup
Hi Paras, I hope I'm mistaken but these lines: On 20/11/2019 18.52, Paras Jain wrote:                 user = User.objects.get(email=email)                 if user.password == password: Makes it look like you are storing users passwords in cleartext. If that is correct, then please don't d

Re:

2019-11-20 Thread Jordan Micle
> > def detail(request,user): > print('hobbies : ', user.hobbies) > return render(request, 'company/detail.html',{'details':user}) > change detail function like this def detail(request): print('hobbies : ', user.hobbies) return render(request, 'company/detail.html',{'details':req

[no subject]

2019-11-20 Thread Paras Jain
my render function its not working in detail function its not rendering to detail.html.please help any one views.py: def detail(request,user): print('hobbies : ', user.hobbies) return render(request, 'company/detail.html',{'details':user}) def login(request): if request.method == 'POS

Re: Directly Accessing Dictionary Values

2019-11-20 Thread Andrew Stringfield
I have not! I did see something about that on a website. Would it go something like: dictionary_name.fieldname.0 ? I will try it out later today. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: Directly Accessing Dictionary Values

2019-11-20 Thread Jim Illback
Have you tried for the first element, and so forth? Of course, you have to keep track of the number of entries. > On Nov 20, 2019, at 5:57 AM, Andrew Stringfield wrote: > > Okie-dokie. Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re:

2019-11-20 Thread Paras Jain
'user = User.objects.get(email=email) ' i have to pass this 'user' instance from login function to detail function in django views.py: def login(request): if request.method == 'POST': email = request.POST['email'] password = request.POST

Re:

2019-11-20 Thread Bob Gailer
On Nov 20, 2019 10:27 AM, "Paras Jain" wrote: > > how to take pass one object of one function to other in django I do not understand your question. Perhaps someone else will understand it and give you the answer you're seeking. If you don't get an answer please try restating your question or give

[no subject]

2019-11-20 Thread Paras Jain
how to take pass one object of one function to other in django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view

Re: bootstrap4 panel as card plugin is not working in djangocms

2019-11-20 Thread হজমুলা খান
hi everyone sorry for the post as i have solved it by myself rght now using text plugin. i am sharing the code, if any one needs: Card title Card subtitle Some quick example text to build on the card title and make up the bulk of the card's content. actually i copied it fro

bootstrap4 panel as card plugin is not working in djangocms

2019-11-20 Thread হজমুলা খান
hi i am working on a project of bootstrap4 website where i require to make panels in 3 columns. i am using djangocms (the latest version). but there is no panel under any column. so i tried with card but this plugin has no title and text option. what should i do? -- You received this message

Re: Directly Accessing Dictionary Values

2019-11-20 Thread Andrew Stringfield
Okie-dokie. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit http

Re: Directly Accessing Dictionary Values

2019-11-20 Thread Suraj Thapa FC
You can't On Wed, 20 Nov 2019, 3:57 pm Andrew Stringfield, wrote: > First, thank you for the reply Suraj! I think that I misstated what I was > really trying to do. I am trying to access the dictionary values directly > in the Template and not in the View. I am trying to remove: > > {

Correct Design: one app depending on another app

2019-11-20 Thread Random Body Parts
So I want to realise a small content management system. I want to make an app that allows for the creation of site content. A site content element can be a headline, an image, a block of text, etc... Individual content elements will be associated with a content container, which is essentially a

Problem trying to use postgresql and psycopg2 in a django project

2019-11-20 Thread tramites xpress drive
*Hi, I Have been trying to setup my django 2 developement environment and to connect it to postgresql but whern I change the parameters in settings.py on the sections of DATABASES to use POSTGRES and Psycopg2 I Receive the following error* eztve) Indiras-MBP-16a3:ezt Sindira$ python manag

Re: mysql data connectivity problem

2019-11-20 Thread Bill Hughes
no From: django-users@googlegroups.com on behalf of Franz Ulenaers Sent: Tuesday, November 19, 2019 5:15 PM To: Django users Subject: Re: mysql data connectivity problem Hi, Do you want to write a python program which read a sqlite3 database and maybe do some

Why I am not able to see the post that I write on this group?

2019-11-20 Thread tramites xpress drive
Why I am not able to see the post that I write on this group? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view

Django authentication best practice

2019-11-20 Thread mmk mmk
I want to replace django default username and password authentication with email and password authentication, i have many solution like extends Abstractbaseuser or using 3rd part like django-allauth . My question now which is best practice to using to do this? -- You received this message becau

Re: mysql data connectivity problem

2019-11-20 Thread Chaithanya Reddy
Post a pic of what is error First connect with the internet Run it on any other any browser And next post it what is error, so we can check where the error gets -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

Re: mysql data connectivity problem

2019-11-20 Thread Chaithanya Reddy
Check whether any database connection u have given in your pc ex:- if u have already installed any mysql data base in your pc, then uninstall that mysql application, restart the pc After that u can connect to the database of django Next time post with a pic(what is the error is..??) So that i can

Re: Directly Accessing Dictionary Values

2019-11-20 Thread Andrew Stringfield
First, thank you for the reply Suraj! I think that I misstated what I was really trying to do. I am trying to access the dictionary values directly in the Template and not in the View. I am trying to remove: {% for question in unique_key_object %} {{ question.filename }