pywkhtmltopdf [Was: [mezzanine-users] Re: Images in .pdf Invoice]

2016-06-28 Thread Mike Dewhirst
Sorry for hijacking a thread from Mezzanine ... On 29/06/2016 11:22 AM, Sam Kingston wrote: I'm not sure if this will help you or not, but I developed a replacement library for xhtml2pdf (though not a drop-in): https://github.com/sjkingo/pywkhtmltopdf Thank you Sam :) Do you have a separate

Re: Serving static files

2016-06-28 Thread Ankush Thakur
Hmmm. One argument I read supporting separate servers is that it would save the main server a few socket connections. But this appears to be too little of a gain. The approach of using a CDN, I think, is much more sensible. Thanks once again, Tim! Regards, Ankush Thakur On Wed, Jun 29, 2016 at

Re: AUTH_PASSWORD_VALIDATORS not used when creating new users?

2016-06-28 Thread Farhan Khan
Even when I use User.objects.create_user() I am still not required to use a strong password. Considering that createsuperuser and changepassword are management commands, it seems odd that require a password that conforms with AUTH_PASSWORD_VALIDATORS there, but not with a function I would use

Re: Serving static files

2016-06-28 Thread Tim Graham
The concerns about needing a separate server are likely overblown. In particular, Whitenoise is a popular solution for static file serving using Python. See its FAQ: http://whitenoise.evans.io/en/stable/#isn-t-serving-static-files-from-python-horribly-inefficient On Tuesday, June 28, 2016 at

Re: How by help Python generate random image with vector figures.

2016-06-28 Thread Tim Graham
This probably isn't the best place to ask since it isn't Django related. On Tuesday, June 28, 2016 at 6:16:20 AM UTC-4, Seti Volkylany wrote: > > I need a pure python module from PyPI without additional packages on my OS. > -- You received this message because you are subscribed to the Google

Re: AUTH_PASSWORD_VALIDATORS not used when creating new users?

2016-06-28 Thread Tim Graham
Validation happens in the management commands (createsuperuser, changepassword) as well as the user creation forms. We assume that if you're creating a user using the command line, you know what you're doing. If you want to open a documentation ticket, we could add a note about this. On

Re: Serving static files

2016-06-28 Thread Ankush Thakur
Thanks but I'm afraid I wasn't able to grasp the point of that article. Could you break it down for me, please? ~~Ankush On Monday, June 27, 2016 at 10:07:43 PM UTC+5:30, ludovic coues wrote: > > It's not that the framework will come to an halt. It's that a server > serving static file

Re: How to use password_change function from django.contrib.auth.views

2016-06-28 Thread Tim Graham
You need a url() with name='password_change_done' -- instead you wrote 'change_password_done'. On Monday, June 27, 2016 at 11:39:23 AM UTC-4, Juan Sebastian Avila Rodriguez wrote: > > I tried to implement the password_change view but is not working. I only > add the code below to the urls.py:

Re: Confused about this aggregation example from the docs

2016-06-28 Thread Tim Graham
'book' (the model name) is the default value of ForeignKey.related_name for the publisher field on Book. class Book(models.Model): publisher = models.ForeignKey(Publisher, on_delete=models.CASCADE)

Re: error logging in after updating to 1.9

2016-06-28 Thread Tim Graham
Did you upgrade Django version by version as suggested in our upgrade guide [0] and fix deprecation warnings along the way? That might help alert you to the issue. [0] https://docs.djangoproject.com/en/dev/howto/upgrade-version/ On Tuesday, June 28, 2016 at 4:05:06 PM UTC-4,

Re: Contribute to Django - Python 3 or Python 2

2016-06-28 Thread Tim Graham
You can use either, but use Python 3. You can rely on the continuous integration server to test your pull request on Python 2 and debug any issues Can you given an example of "most places python2 is used"? In fact, the tutorial says, "This tutorial assumes you are using Python 3." On Tuesday,

Re: Contribute to Django - Python 3 or Python 2

2016-06-28 Thread Farhan Khan
I switched from Python2 to Python3 because I needed my Django code to fire off some TLSv1.2 code, that python2 could not do. I barely notice the difference between the two except in very small syntax differences. When I switched from python2 to python3, I literally did this: find ./ -name

Re: Django tests failing for development env

2016-06-28 Thread Tim Graham
If you're running the tests at the checkout point mentioned in the tutorial note, "If you’re using Python 3.5+, there will be a couple failures related to deprecation warnings that you can ignore. These failures have since been fixed in Django." On Tuesday, June 28, 2016 at 7:49:43 PM UTC-4,

Django tests failing for development env

2016-06-28 Thread premdjango
I want to contribute to Django community, so I was trying to setup my env using the following doc - https://docs.djangoproject.com/en/dev/intro/contributing/ I ran the tests and get the following output - == FAIL:

Contribute to Django - Python 3 or Python 2

2016-06-28 Thread premdjango
Hello, Im trying to contribute to Django project and started with this document. https://docs.djangoproject.com/en/dev/intro/contributing/ Here in couple of places I see Python3 is being used but in most places python2 is used. Should I use Python 3 or Python 2? -- You received this message

Re: running devel server in docker container

2016-06-28 Thread Larry Martell
On Tue, Jun 28, 2016 at 5:11 PM, Michal Petrucha wrote: > On Tue, Jun 28, 2016 at 05:01:20PM -0400, Larry Martell wrote: >> I am trying to run the devel server in a docker container. On the >> physical machine I don't have port 8000 available and I usually use >>

Re: running devel server in docker container

2016-06-28 Thread Michal Petrucha
On Tue, Jun 28, 2016 at 05:01:20PM -0400, Larry Martell wrote: > I am trying to run the devel server in a docker container. On the > physical machine I don't have port 8000 available and I usually use > 8006 for the devel server. Outside of the docker container I can > connect to 8006. Inside the

running devel server in docker container

2016-06-28 Thread Larry Martell
I am trying to run the devel server in a docker container. On the physical machine I don't have port 8000 available and I usually use 8006 for the devel server. Outside of the docker container I can connect to 8006. Inside the container I tried both: manage.py runserver 0.0.0.0:8006 and just

error logging in after updating to 1.9

2016-06-28 Thread Larry Martell
I had a 1.6 app and I updated to 1.9. Now when I try to login it fails and I see this in the logs. This works in 1.6. Any ideas what the issue is? [28/Jun/2016 17:43:51] DEBUG [django.template:923] Exception while resolving variable 'STATIC_URL' in template 'registration/login.html'. Traceback

Tip: django-admin-easy

2016-06-28 Thread Ezequiel Bertti
Guys, I did release a new version of django-admin-easy. Version 0.3 It is a collection of mixin, decorators and fields to be used on django-admin. It made what was already simple into something easy Please, let me know if you have some suggestions, get some issue or want to collaborate.

How to create the template "groups part" users admin. In my app?

2016-06-28 Thread Fellipe Henrique
Hello, I have 2 model... Model A and B... Model A can has N records of B... That's simple to do in django... But I want to build the HTML part.. Using the same mechanism which django use on Groups... In one side show me all records of B, and I can select one or more to add in A model... How can

Re: Implementing user alias in django.

2016-06-28 Thread Asif Saifuddin
Thanks I will try your suggested way. On Tuesday, June 28, 2016 at 6:36:02 PM UTC+6, Asif Saifuddin wrote: > > Hi, > > I'm planning to implement user alias in django. A user can create many > alias and each alias will work like and full user. each alias will have > different newsfeed/user

Re: HTTP2 Server Push with Django?

2016-06-28 Thread Bobby Mozumder
No these are for push at the app layer, for functionality purposes. HTTP/2 server push is meant for speeding up website responsiveness, by delivering static assets before the request for them are even made. -bobby > On Jun 28, 2016, at 12:34 PM, Mario R. Osorio wrote: >

Re: HTTP2 Server Push with Django?

2016-06-28 Thread Mario R. Osorio
Here are some resources: - Django Push HTTP Response to users - Django Packages - django-push-notifications

Re: wsgi setup + django 1.9 + python 3.5.1 on mac os x

2016-06-28 Thread Coulson Kgathi
ok thanks c.t.kgathi On 28 Jun 2016 16:57, "Avraham Serour" wrote: > most are for linux, but I believe you can adapt > > > https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04 >

Re: wsgi setup + django 1.9 + python 3.5.1 on mac os x

2016-06-28 Thread Avraham Serour
most are for linux, but I believe you can adapt https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04 https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/uwsgi/

Getting "SMTPServerDisconnected: Connection unexpectedly closed: [Errno 104] Connection reset by peer" errors when using django.core.mail.send_mail in the loop

2016-06-28 Thread Haomin Zhang
Create a command like below, which send a mail to the user if the date meet the requirement: class Command(BaseCommand): help= 'Send mail to user regularly if there have contacts needs reminder' def handle(self, *args, **options): now = timezone.now().date()

Re: Deploying Django via wsgi

2016-06-28 Thread Coulson Kgathi
how did you do that? please assist On Saturday, 19 March 2016 00:22:18 UTC+2, parall...@gmail.com wrote: > > Thank you all for your replies. It turned out to be something simple. > Since Django was installed in a virtualenv I needed to include the path to > the Django libs in the wsgi paths.

Re: wsgi setup + django 1.9 + python 3.5.1 on mac os x

2016-06-28 Thread Coulson Kgathi
deploying my mac as a server could you point me to the proper documentation to deploy using nginx+uwsgi so i can try it On Tue, Jun 28, 2016 at 4:49 PM, Avraham Serour wrote: > it seems it doesn't have cffi installed > > but why do you want to do this? are you using the mac

wsgi setup + django 1.9 + python 3.5.1 on mac os x

2016-06-28 Thread Coulson Kgathi
I am getting an error trying to setup my django project on apache2 mac os x, django 1.9, python 3 my wsgi.py looks like this import os import sys VIRTUALENV_PATH = '/Users/ckgathi/.virtualenvs/bcpp-interview/' SOURCE_ROOT_PATH = '/Users/ckgathi/source' LOCAL_PROJECT_RELPATH =

Re: wsgi setup + django 1.9 + python 3.5.1 on mac os x

2016-06-28 Thread Avraham Serour
it seems it doesn't have cffi installed but why do you want to do this? are you using the mac as server of are you setting up your development environment? for development you may just use manage.py runserver, you don't need to setup apache for the server I recommend using nginx+uwsgi, the

Re: Implementing user alias in django.

2016-06-28 Thread ludovic coues
I would separate user and account. User is one person and is used to connect. Account have newsfeed and follow other user. Each user can manage as many account as he want. Many user can manage the same account. All that can be transparent to your user if you setup an account matching the user

Re: django form data not saving to database

2016-06-28 Thread kaustubh tripathi
I removed 'default' attribute and replaced OneToOneField with ForeignKey of Post Model still it is not saving to database. Do I need to override the save method as I did in Category Model. If yes,then any solution?? On Tuesday, June 28, 2016 at 5:44:16 PM UTC+5:30, kaustubh tripathi wrote: > >

Re: HTTP2 Server Push with Django?

2016-06-28 Thread Bobby Mozumder
The h2o server (https://h2o.examp1e.net) looks like it supports http/2 push, but it doesn’t have WSGI capability for Django. -bobby > On Jun 28, 2016, at 9:09 AM, Fabio C. Barrionuevo da Luz > wrote: > > as far as I know, there is still no any web server that fully

Re: django form data not saving to database

2016-06-28 Thread Luis Zárate
models.OneToOneField(Category,default='category') This is not set in form and not set in view and is not null so when you do post.save() error was raised and post is not saved. I don't sure that you can pass str as default for OnetoOne and I am not sure that you need a OnetoOne field I think

Re: HTTP2 Server Push with Django?

2016-06-28 Thread Fabio C. Barrionuevo da Luz
as far as I know, there is still no any web server that fully implements the "push" capability from HTTP2 specification. let me know if any web server now implements "push" capability completely On Tue, Jun 28, 2016 at 9:46 AM, Bobby Mozumder wrote: > Does anyone know of

Re: Best way to implement list pattern

2016-06-28 Thread Luis Zárate
Maybe with generic view https://docs.djangoproject.com/en/1.9/topics/class-based-views/ Especially with https://docs.djangoproject.com/en/1.9/topics/class-based-views/generic-display/ There is a lot information about how to implement what you need. El martes, 28 de junio de 2016, Jean-Noël

HTTP2 Server Push with Django?

2016-06-28 Thread Bobby Mozumder
Does anyone know of an http/2 server with server push capability that can work with Django? It looks like nginx supports http2 with uWSGI, but it doesn’t actually support server push capability. I also found the h2o server, but it doesn’t look like it supports uWSGI yet.. Any other options

Implementing user alias in django.

2016-06-28 Thread Asif Saifuddin
Hi, I'm planning to implement user alias in django. A user can create many alias and each alias will work like and full user. each alias will have different newsfeed/user follow other user/alias and each alias can do every action a real user can do. How should I implement this user

django form data not saving to database

2016-06-28 Thread kaustubh tripathi
Hi everyone! I am creating a simple webapp using django where a user can login, choose one of the given category and create a post under the chosen category. I am having trouble in creating a post. When I create a new post through django form the date isn't saved to database. I log in to the

Best way to implement list pattern

2016-06-28 Thread Jean-Noël Colin
Hi I'm rather new to Django, but familiar with Java based web framework; I'd like to implement a simple list screen, so in the top part, have a list of objects, and when selecting one of them, loading the details in a form at the bottom where you can edit; there should also be a link in the

How by help Python generate random image with vector figures.

2016-06-28 Thread Seti Volkylany
I need a pure python module from PyPI without additional packages on my OS. -- 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