Password reset custom view

2017-04-08 Thread sarfaraz ahmed
urlpatterns = [ url(r'^login/',login,name='login'), url(r'^auth_view/',auth_view, name='auth_view'), url(r'^signup_success/',signup_success,name='signup_success'), url(r'^signup/',signup,name='signup'),

Re: Annotated queryset + Prefetch object

2017-04-08 Thread Simon Charette
Hello Jose, I wouldn't be surprised if this was caused by a Django bug with prefetches doing weird things when the same model is referenced through different relations[0]. Simon [0] https://code.djangoproject.com/ticket/26318 Le samedi 4 mars 2017 13:36:20 UTC-5, Jose Kilo a écrit : > > Hi

Re: Django Music streaming

2017-04-08 Thread Camilo Torres
Hi, you forgot to include the error you get and probably other relevant information. You may be interested in reading these articles: https://developer.jboss.org/wiki/HowToAskAForumQuestion?_sscc=t https://www.biostars.org/p/75548/ On Saturday, April 8, 2017 at 12:38:57 PM UTC-4, IaMtheMcee

Re: Binding data to one o many forms from one view - BadHeaderError at - Header values can't contain newlines ()

2017-04-08 Thread Camilo Torres
Hi, Inside your "post" method, you have this line: context = super(AccountProfilesView, self).post(request, *args, **kwargs) in that case "context" is a HttpResponse object[0]. May be, from the name you use for the variable, you think this is a simple dict as those used to pass context to

Re: How to get a mentor

2017-04-08 Thread Babatunde Akinyanmi
I'd joyfully be of assistance. Email me. On 5 Apr 2017 16:47, "Joe Landrigan" wrote: > Thanks Mark! I'll take all the free mentoring I can get. ;) I could use > both types of mentors, but wasn't expecting an entrepreneurial mentor on a > Django site. The idea is actually

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-08 Thread shahab emami
thank you fabio I needed this line: 'secretballot.middleware.SecretBallotIpUseragentMiddleware', my problem solved thanks again On Saturday, April 8, 2017 at 3:52:51 PM UTC+4:30, Fabio Caritas Barrionuevo da Luz wrote: > > Hello Shahab. > > Perhaps the real problem is that you apparently have

Binding data to one o many forms from one view - BadHeaderError at - Header values can't contain newlines ()

2017-04-08 Thread Bernardo Garcia
I have the following forms to each user profile class UserUpdateForm(forms.ModelForm): class Meta: widgets = {'gender':forms.RadioSelect,} fields = ("username", "email", "is_student", "is_professor", "is_executive",) model =

Re: Filter list dict in JsonField Postgres

2017-04-08 Thread Camilo Torres
Hi. I have been thinking more about this. I think you cannot filter the list in the query with the JSONField from django. At most, you can get the object and filter the field in the resulting list. Example with this simple model: from django.db import models from django.contrib.postgres.fields

Re: ORM for structured Logs

2017-04-08 Thread Scot Hacker
On Tuesday, April 4, 2017 at 5:18:42 AM UTC-7, guettli wrote: > > In the past I was told: Don't store logs in the database. > For general purposes, I agree with this. Logging is a python standard, logs can be verbose, logrolling solutions are well established (and built in), etc. However, there

Re: Django Music streaming

2017-04-08 Thread IaMtheMcee
> > setting up audiotracks in a new project.. im forced to use the example > project, whose structure i don't fully understand.. the documentation says.. Add ``audiotracks`` to your app ~~~ Edit ``settings.py`` and add ``audiotracks`` to your list of

Re: Django Music streaming

2017-04-08 Thread ludovic coues
Could you tell what kind of trouble you have ? 2017-04-08 17:00 GMT+02:00 IaMtheMcee : > Hi, i'm new to django.. I want to make a music streaming service much like > itunes where users can purchase and download music. I'm using the > audiotracks django package to handle

Re: Theming

2017-04-08 Thread Russell Keith-Magee
Hi Clinton, On Sat, Apr 8, 2017 at 4:05 PM, Clinton Blackburn < clinton.blackb...@gmail.com> wrote: > Russ, > > How would this work for base/nested templates? Say my view is rendering > the potential templates ['my-theme/page.html', 'page.html'], and the > templates inherits base.html. Do I have

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-08 Thread Samuel Brunel
Sorry. I think i'ts in "tokens and SecretBallotMiddleware" Have à look to http://www.pygarden.com/pkg/django-likes, http://stackoverflow.com/questions/1954/django-likes-setup-and-error, http://stackoverflow.com/questions/16179080/django-django-secretballot-middleware Le ven. 7 avr. 2017

Django Music streaming

2017-04-08 Thread IaMtheMcee
Hi, i'm new to django.. I want to make a music streaming service much like itunes where users can purchase and download music. I'm using the audiotracks django package to handle my upload and streaming, but im having trouble with it.. any pointers? -- You received this message because you are

Re: Extending a image and adding text on the extended area using python pil

2017-04-08 Thread ludovic coues
Look like a question for the pil mailing list. Anyway, stackoverflow suggest that you create a new image then paste the old image onto the new one. Here is the code from stackoverflow newImage = Image.new(mode, (newWidth,newHeight)) newImage.paste(srcImage, (x1,y1,

Extending a image and adding text on the extended area using python pil

2017-04-08 Thread Aamu Padi
I am creating QRcode for each ticket. The QRcode is in image format. ​I want to extend this image vertically on both the sides (i.e. Top and Bottom). And in the extended area I want to add some additional data like this: Theater Name _ || |

Re: Theming

2017-04-08 Thread Clinton Blackburn
Russ, How would this work for base/nested templates? Say my view is rendering the potential templates ['my-theme/page.html', 'page.html'], and the templates inherits base.html. Do I have to override base.html for every theme if I want base.html (or any other child/parent template) to be

Re: Just learning about auth in django and getting error NoReverseMatch ; Exception Value: Reverse for 'password_reset_done' with arguments

2017-04-08 Thread ludovic coues
It's hard to tell what is wrong without the full traceback or thecode causing the exception. I would suggest to replace reverse("password_reset_done") with reverse("myapp:password_reset_done"). Might be as simple as that. 2017-04-07 19:55 GMT+02:00 Thames Khi : > My example

Re: How to structure this django application

2017-04-08 Thread Rich Shepard
On Sat, 8 Apr 2017, Sithembewena Lloyd Dube wrote: Do take the time to peruse the book. It would be time well spent. Also, do keep in mind that the recommendations therein do not apply to a Django blog or CRM sustem etc, per se. They would apply just as well if you were building a RESTful

Re: Converting Django app into a Desktop app

2017-04-08 Thread officeworked
Hello, It can be helped by see. A lot of apps. www.apparelexportgr.com On Wednesday, December 19, 2012 at 3:39:21 AM UTC+6, Chris Cogdon wrote: > > Personally, I'd prefer something that didn't require packaging up > additional programs (xampp and python, in this example). > > It should be

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-08 Thread Fabio C. Barrionuevo da Luz
Hello Shahab. Perhaps the real problem is that you apparently have not completed a good tutorial to learn how django works and how to use it. I would recommend these two tutorials: https://tutorial.djangogirls.org/ and http://www.marinamele.com/taskbuster-django-tutorial said that, this is the

Re: Theming

2017-04-08 Thread Russell Keith-Magee
On Sat, Apr 8, 2017 at 1:28 AM, Clinton Blackburn < clinton.blackb...@gmail.com> wrote: > Has anyone solved site-aware theming? I have a multi-tenant site (using > sites framework) and I want to render custom templates for each site. My > current design calls for a default design, and overrides

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-08 Thread shahab emami
I knew where middleware is myself. if you read my first post you will see that . my question is: what i have to add to middleware? On Friday, April 7, 2017 at 7:16:36 PM UTC+4:30, shahab emami wrote: > > hello > i have a simple question > please help me if you can > > > i want to install this