Re: django 1.11 run error

2017-11-22 Thread ngn zone
Thanks k2527806 , Actually my virtualenv is activated and all the commands "python manage.py migrate " is run while it is activated. So I still wonder what might be wrong. Is it the django installation or the virtualenv installation? I wonder On Wednesday, November 22, 2017 at 10:51:09 PM UTC

Re: How do you access parent object values in an admin inline

2017-11-22 Thread Matemática A3K
On Wed, Nov 22, 2017 at 5:38 PM, test wrote: > Thanks for the response. > > I'm still kind of confused. > So I save the request by overriding the function. > You save the object in the request so you can access it from the inline for further processing, like showing or hiding something > Then

Re: django 1.11 run error

2017-11-22 Thread nerdfiles
pyenv also allows for a .local file to autoload the environment On Wednesday, November 22, 2017 at 3:51:09 PM UTC-6, k2527806 wrote: > > If you use virtualenv, first of all activate the virtualenv > > On Nov 22, 2017 8:12 PM, "ngn zone" > > wrote: > > Hello all, > > I am new to Django. I am try

Re: django 1.11 run error

2017-11-22 Thread mohammad k
If you use virtualenv, first of all activate the virtualenv On Nov 22, 2017 8:12 PM, "ngn zone" wrote: Hello all, I am new to Django. I am trying to run a project and when I run "python manage.py makemigrations " I get the following error message. What am I doing wrong? python manage.py mak

Re: How do you access parent object values in an admin inline

2017-11-22 Thread test
Thanks for the response. I'm still kind of confused. So I save the request by overriding the function. Then I can only read the request by overriding a function in the inline. How do I change the model in the overrided function in the inline. On Wednesday, November 22, 2017 at 1:54:08 PM UTC-5

Re: How do you access parent object values in an admin inline

2017-11-22 Thread Matemática A3K
On Wed, Nov 22, 2017 at 3:21 PM, test wrote: > For example: > > class AnswerInLine(admin.TabularInline): > model = Answers > > class QuestionAdmin(admin.ModelAdmin): > inlines = [AnswerInLine] > > > I want to change the model in the AnswerInLine depending on what the > QuestionAdmin value is

How do you access parent object values in an admin inline

2017-11-22 Thread test
For example: class AnswerInLine(admin.TabularInline): model = Answers class QuestionAdmin(admin.ModelAdmin): inlines = [AnswerInLine] I want to change the model in the AnswerInLine depending on what the QuestionAdmin value is -- You received this message because you are subscribed

django 1.11 run error

2017-11-22 Thread ngn zone
Hello all, I am new to Django. I am trying to run a project and when I run "python manage.py makemigrations " I get the following error message. What am I doing wrong? python manage.py makemigrations Traceback (most recent call last): File "manage.py", line 9, in dotenv.read_dotenv()

Re: AttributeError: 'TemplateResponse' object has no attribute '_reason_phrase'

2017-11-22 Thread Tim Graham
I tried a Google search for the last line of the error message and came to https://code.djangoproject.com/ticket/25964. Conclusion: try clearing your cache. On Wednesday, November 22, 2017 at 3:29:42 AM UTC-5, Web Architect wrote: > > Hi, > > We recently migrated from Django 1.8 to Django 1.11.7

Re: Building a web app for use of third party python package

2017-11-22 Thread Derek
>From what you have said, this is not too hard. You need a basic view to handle the upload, which is in turn will make a call to the specialised method for processing of the file (and zip creation) before returning the result to the user. A quick Google shows some relevant examples: * https:/

Re: AttributeError: 'TemplateResponse' object has no attribute '_reason_phrase'

2017-11-22 Thread Jason
what is the code for the render call? -- 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 Speed up Loading the First Page of Django Project?

2017-11-22 Thread Jason
Regardless, your solution is not a good one, because you shifted from a password hashing algorithm that enables protection against brute-force attacks to a different algorithm with no similar protection. I would highly suggest you read https://docs.djangoproject.com/en/1.11/topics/auth/password

AttributeError: 'TemplateResponse' object has no attribute '_reason_phrase'

2017-11-22 Thread Web Architect
Hi, We recently migrated from Django 1.8 to Django 1.11.7. We have an ecommerece site running on Django. When we are trying to access a page, following exception is occuring: Traceback (most recent call last): File "/usr/local/lib/python2.7/wsgiref/handlers.py", line 85, in run self.res