Re: password_reset error

2017-04-10 Thread ludovic coues
That should be all the information needed to fix the problem :) TL:DR: use `{{ protocol }}://{{ domain }}{% url 'user_management:password_reset_confirm' uidb64=uid token=token %}` on line 5 of your email template. Long answer: The amount of information you provided last time would have been enoug

Re: Displaying multiple images in a blog post

2017-04-10 Thread ludovic coues
I would be a bit wary of a django blog making use of template tag. Anyway, I believe your code should be more like that: {{ post.images[2].image.url }}. Personally, I would delegate fetching the url to another part of the code. Something like one endpoint would return a list of images. A piece of

Re: password_reset error

2017-04-10 Thread sarfaraz ahmed
Thanks... I tried... everythings... It worked.. On 10 April 2017 at 13:21, ludovic coues wrote: > That should be all the information needed to fix the problem :) > > TL:DR: > use `{{ protocol }}://{{ domain }}{% url > 'user_management:password_reset_confirm' > uidb64=uid token=token %}` on

Re: ORM for structured Logs

2017-04-10 Thread guettli
Thank you for sharing. Yes, the model is not difficult, that's why everybody helps himself up to now. Maybe this is the best solution and there is not much in common. The things which are in common (ORM, Admin-Interface) are already provided by django. It's just a bit of glue-code to get it w

Yet Another Can't get static files to show up in shared linux website on Godaddy

2017-04-10 Thread Anthony Percy
Hi all, Sorry to ask this question but I cant get my static files in Mezzanine to show up on a Godaddy hosted site e.g http://www.murraybridge.co I have had to use "pip install flup" and "pip install django-fastcgi-server" as Godaddy seems to have the fcgi module active on the apache webserver w

Run model check with Django 1.11 as deployment check only?

2017-04-10 Thread Carsten Fuchs
Dear Django group, with Django 1.10, I used a model check like this: class Status(models.Model): id = models.AutoField(primary_key=True) MAX_ID = 38 text = models.CharField(max_length=20, blank=True) @classmethod def check(cls, **kwargs): errors = super(Status

RE: Run model check with Django 1.11 as deployment check only?

2017-04-10 Thread Matthew Pava
I would argue that your code should be able to run successfully with an empty database. I would change your assignment of maxID to this: maxID = cls.objects.aggregate(Max('id'))['id__max'] or 0 I often add the 'or 0' to my aggregates because I never really know if my aggregate will deal with an

what do i have to do first

2017-04-10 Thread Cyprus Carolyne
I am new to this platform, anyone help me find out how to start the journey, I have windows ten, what do i have to install on my pc to get started? thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: JsonField icontains filter generates invalid SQL

2017-04-10 Thread Simon Charette
Hello there, I'm not sure where you determined the SQL that caused the error but I'm pretty sure this was caused by "my_model"."data" -> 'name' not being wrapped in a parenthesis before the ::text cast. This has been fixed in Django 1.11[0]. Cheers, Simon [0] https://github.com/django/django/

what do i have to do first

2017-04-10 Thread Camilo Torres
Hi, Read the First Steps section: https://docs.djangoproject.com/en/1.11/ -- 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

Yet Another Can't get static files to show up in shared linux website on Godaddy

2017-04-10 Thread Camilo Torres
Hi You may want to review: https://docs.djangoproject.com/en/1.11/howto/static-files/deployment/ You may also want to make sure your server supports wsgi deployments: https://docs.djangoproject.com/en/1.11/howto/deployment/ -- You received this message because you are subscribed to the Google Gr

Re: Django 1.11 doesn't work well behind pgBouncer

2017-04-10 Thread Sergey Fursov
Accepted ticket - https://code.djangoproject.com/ticket/28062 2017-04-06 22:30 GMT+03:00 Sergey Fursov : > Hi! > > In our application stack we connect from our web/background workers to > postgres database through dedicated pgBouncer service. > pgBouncer use transaction pooling > Connections work

Re: Run model check with Django 1.11 as deployment check only?

2017-04-10 Thread Carsten Fuchs
Hi Matthew, Am 10.04.2017 um 15:51 schrieb Matthew Pava: I would argue that your code should be able to run successfully with an empty database. I would change your assignment of maxID to this: maxID = cls.objects.aggregate(Max('id'))['id__max'] or 0 Normally, I would happily agree. However,

using HTTPHandler cause Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-10 Thread Philip Lee
I also posted The question here http://stackoverflow.com/questions/43185804/using-httphandler-cause-django-server-side-shows-http-400-and-invalid-http-host I am using HTTPHandler to send logging messages to a Django Web

RE: Run model check with Django 1.11 as deployment check only?

2017-04-10 Thread Matthew Pava
Hi Carsten, I wish I could provide more help. I had no idea there was a check method or a system check framework until your message. https://docs.djangoproject.com/en/1.11/topics/checks/ I have learned something new. One thing mentioned in the topic guide above is this: If you need to run syste

Inheritance models from Django 1.8.2 to Django 1.11

2017-04-10 Thread Dmitriy Yusupov
Hello, I have the task of convert the project from django version 1.8.2 to version 1.11. Faced a problem with which I can not cope. That model of tables, which worked excellently in 1.8.2, stopped working in version 1.11, and falls out with an error: core.CarModel.manufacture: (models.E0

using HTTPHandler cause Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-10 Thread Camilo Torres
Hi, Try with this configuration instead: _TARGET = 'http://192.168.8.100:8000' Notice you missed http:// there. -- 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

Inheritance models from Django 1.8.2 to Django 1.11

2017-04-10 Thread Camilo Torres
Hi, May be you can define your field usind "db_column": manufact = models.ForeignKey(Manufacture, verbose_name=u'Manufacture', db_column='manufacture') https://docs.djangoproject.com/en/1.11/ref/models/fields/#db-column -- You received this message because you are subscribed to the Google Grou

New to django and ORM. So a basic question about data inserts

2017-04-10 Thread Cassium
Say I am collecting residence history and I allow the user to submit up to five previous addresses. I have a PEOPLE model and RESIDENCES model and anticipate a many-to-many relationship between. Back when I was working with Joomla I would have manages these models (well, tables) with a table in

Re: New to django and ORM. So a basic question about data inserts

2017-04-10 Thread Lachlan Musicman
-- The most dangerous phrase in the language is, "We've always done it this way." - Grace Hopper On 11 April 2017 at 05:35, Cassium wrote: > Say I am collecting residence history and I allow the user to submit up to > five previous addresses. I have a PEOPLE model and RESIDENCES model and >

Re: django sample projects

2017-04-10 Thread Bledi
Hi Shahab, I am in a similar position like you. I strongly suggest you do the following tutorial: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django Its made by Mozilla Developers and it is amazing! Good luck! On Monday, March 27, 2017 at 12:27:59 PM UTC-4, Shahab Emami wrote:

Django relationships and the admin page

2017-04-10 Thread Liam H
Hi, I'm new to Django, programming, web apps, the whole lot. I've been working on an app for a while now, but I'm having trouble figuring out how to organise my models in an effective way. Im using Django 1.10 and Python 2.7. Here's a rough example of the structure I'm trying: class Site(model

Re: Django relationships and the admin page

2017-04-10 Thread Lachlan Musicman
On 11 April 2017 at 07:32, Liam H wrote: > Hi, > > I'm new to Django, programming, web apps, the whole lot. I've been working > on an app for a while now, but I'm having trouble figuring out how to > organise my models in an effective way. Im using Django 1.10 and Python 2.7. > > Here's a rough e

Re:using HTTPHandler cause Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-10 Thread Zhao Lee
No, that would cause the following exception --- Logging error --- Traceback (most recent call last): File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\http\client.py", line 798, in _get_hostport port = int(host[i+1:]) ValueError: invalid literal for int() with base 10: '//e