Password Reset using a URL with token

2017-08-14 Thread Anil Mor
Hi, I am facing an issue while implementing the password reset functionality. This is the error that I am facing, don't know where I am wrong. NoReverseMatch at /music/password_reset/ Reverse for 'password_reset_done' not found. 'password_reset_done' is not a valid view function or

How to save an invoice document with new record creation in the database

2017-08-14 Thread Alexander Joseph
Hello, I have an app for creating invoices, but I'd like to be able to save a .docx of the invoice when the user creates the invoice (I'm using docx library). I'm very new to django so any direction you can give I appreciate. I'd like to know the proper way to go about doing this. Right now I

Re: Tutorial writing views help

2017-08-14 Thread Sol Chikuse
Hi Kareem, In your template you have your code as: {% for question in latest_question %} According to your context dictionary in your index view, the above template code should be: {% for question in latest_question_list %} And then you should go to the url 127.0.0.1:8000/polls/ Regards.

RE: Tutorial writing views help

2017-08-14 Thread Matthew Pava
And are you navigating to http://127.0.0.1:8000/polls/ ? I don’t think you should have anything at http://127.0.0.1:8000/ or so it seems. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Kareem Hart Sent: Monday, August 14, 2017 4:05 PM To: Django users

Re: Tutorial writing views help

2017-08-14 Thread Kareem Hart
> > *I've found my mistake with the index.html file.* > {% for question in latest_question %} {{question.question_text}} herf is suppose to be href. But http://127.0.0.1:8000/ still says page not found. -- You received this message because

Re: regarding virtualenv and python version 3.5 or 3.4 or other versions

2017-08-14 Thread Andréas Kühne
If you want something to scale - make sure that you make the right prerequisites for that. We run on virtual machines and have custom built images that get spun up automatically if the system needs to scale (it scales horizontally). That way I know what I have on the machines and can upgrade to

Re: regarding virtualenv and python version 3.5 or 3.4 or other versions

2017-08-14 Thread Simon Charette
Hello there, I'd strongly suggest you use the same version of Python on your development machines and on your servers. You should be able to install a pre-compiled version of Python 3.5 on Ubuntu 14.04 LTS by adding the deadsnakes PPA[0] running apt-get update and then apt-get install

Re: Tutorial writing views help

2017-08-14 Thread Kareem Hart
*Here is my template.* > *index.html* >> > {% if latest_question_list %} {% for question in latest_question %} {{question.question_text}} {% endfor %} {% else %} No polls are available. {% endif %} *Here is my command prompt log.* Microsoft Windows [Version

Re: regarding virtualenv and python version 3.5 or 3.4 or other versions

2017-08-14 Thread Antonis Christofides
Hi, I generally disagree. Compiling Python on production can take some time (e.g. you may get some compilation parameters wrong) and makes security upgrades harder; instead of "apt update && apt upgrade" you'll be needing to recompile Python. It might not seem like a big deal, but if today you

Re: JavaScriptCatalog: it's big or not?

2017-08-14 Thread Tim Graham
Quoting Claude from https://code.djangoproject.com/ticket/28434#comment:2, "There is a ​specific test for that in the Django test suite. It may be the test is missing something, but you should explore that

Re: How to add logo to django header

2017-08-14 Thread Yogesh Mishra
Thanx On Thursday, July 28, 2016 at 1:36:17 PM UTC+5:30, Gauri Shirsath wrote: > > Hi, > > I want to show company logo instead of 'Django Administrator' heading. > Can someone please guide me. > > Regards, > Gauri > -- You received this message because you are subscribed to the Google Groups

Re: Use one correspondig database user for each application user

2017-08-14 Thread Jani Tiainen
Hi. Django doesn't use connection pooling. That's beyond scope of Django. Normally Django opens connection per worker thread and keeps it open as long as there is no unrecovable error or connection exceeds MAX_AGE setting See

Only admin can create an object from a model

2017-08-14 Thread Prithviraj Mitra
I want the admin only to create a object from a model. Is it possible? #EmailAddress.objects.create(user=instance, email=instance.email) >From models.py class EmailAddress(models.Model): user = models.OneToOneField(User, unique=True, related_name ='address') email = models.EmailField()

Re: Use one correspondig database user for each application user

2017-08-14 Thread guettli
Am Freitag, 21. Juli 2017 19:55:17 UTC+2 schrieb Fred Stluka: > > Answer: Connection pooling > > Sharing a single DB user for all/multiple Web app users allows > connection pooling. Otherwise, you have to create a new DB > connection for each HTTP request, or at least for each web app > user.

Re: Tutorial writing views help

2017-08-14 Thread Sol Chikuse
Hi Kareem, Regarding the 404 page error, you do not have to put a dot (.) at the end of your URL. Django does not have such kind of a pattern match in your urls. *127.0.0.1:8000/polls/ *is the correct URL. Having said that, how does your index template look like?