Re: request to post UnboundLocalError

2022-10-24 Thread Yusuf Olamilekan muktar
Hello, The variable 'contact' on line 27 is messing with python as the model name 'contact' is not being recognized but instead, the variable is being recognized. I'd advise you to change the variable name. i.e. contact = contact() to contact_var = contact(...) contact_var.save() [image: Ma

Re: request to post UnboundLocalError

2022-10-23 Thread Jitendra kumar Patra
Declare the contact variable before the return statement On Mon, 24 Oct, 2022, 00:52 Deepak kumar, wrote: > please check to pdf and send to my email dk9284...@gmail.com > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe fro

Re: Request for guidance of using Social-auth-app django

2020-12-09 Thread Shahprogrammer
Check this out https://github.com/omab/django-social-auth On Wednesday, 9 December 2020 at 19:49:50 UTC+5:30 professional...@gmail.com wrote: > Dear All > > Can anyone help for implementing social-auth-app-django package for social > authenication of facebook, google and apple ID. > > Its ver

Re: Request for admins

2020-10-14 Thread Damanjeet Singh
I agree with you. On Sun, 11 Oct 2020, 21:14 o1bigtenor, wrote: > Greetings > > The list volume seems to have attracted those that purport to offer > help or services. > > Is it possible that the volume of this has reached a point where there > is a separate list for just that. > That would be a

Re: Request for admins

2020-10-12 Thread Kasper Laudrup
On 12/10/2020 14.52, Theresa Taye wrote: I agree with you, only that adding him to spam is not enough because I noticed reasonable mails from people that he replies to also go to the spam box. Since the asshole in question is using a gmail account, I think the correct thing to do is to repo

Re: Request for admins

2020-10-12 Thread Theresa Taye
I agree with you, only that adding him to spam is not enough because I noticed reasonable mails from people that he replies to also go to the spam box. On Oct 11, 2020 21:14, "o1bigtenor" wrote: > Greetings > > The list volume seems to have attracted those that purport to offer > help or services

Re: Request for admins

2020-10-11 Thread o1bigtenor
On Sun, Oct 11, 2020 at 3:20 PM Agnese Camellini wrote: > > I full aree with you. This is spamming! > I agree and that address is listed as spam for my mail system. As I thought about it there are legitimate offers and requests for service so didn't want to preclude those - - - that is what promp

Re: Request for admins

2020-10-11 Thread Agnese Camellini
I full aree with you. This is spamming! Il Dom 11 Ott 2020, 22:14 o1bigtenor ha scritto: > Greetings > > The list volume seems to have attracted those that purport to offer > help or services. > > Is it possible that the volume of this has reached a point where there > is a separate list for jus

Re: Request to be added to the Django organisation on GitHub

2020-04-08 Thread Nwaobi Daniel
Thanks On Wed, Apr 8, 2020, 5:36 PM Dylan Reinhold wrote: > If you are looking to contribute to django please see : > https://docs.djangoproject.com/en/dev/internals/contributing/ > > If you just want to use it and code with it, see > https://www.djangoproject.com/start/ > > Regards, > Dylan > >

Re: Request to be added to the Django organisation on GitHub

2020-04-08 Thread Dylan Reinhold
If you are looking to contribute to django please see : https://docs.djangoproject.com/en/dev/internals/contributing/ If you just want to use it and code with it, see https://www.djangoproject.com/start/ Regards, Dylan On Wed, Apr 8, 2020 at 9:08 AM Nwaobi Daniel wrote: > Hi! Goodday, > > I wo

Re: Request to disallow using django name in third party django packages name

2020-02-20 Thread אורי
It's very useful that packages that use Django also include "django" in their names. I don't think there is any reason to disallow it. בתאריך יום ה׳, 20 בפבר׳ 2020, 14:23, מאת Abhilash Nair ‏: > Hi everyone, > > I am new to Django. Whenever I try to search for way to implement certain > ideas usi

Re: Request to disallow using django name in third party django packages name

2020-02-20 Thread Omkar Parab
All the third party apps are open source. Codes are available on github. You can create your own. Just like you, they've also created, and kept public. On Thu, Feb 20, 2020, 6:57 PM 'Artem Vasin' via Django users < django-users@googlegroups.com> wrote: > Hi! > > *Tl;dr no I don’t think so, actual

Re: Request to disallow using django name in third party django packages name

2020-02-20 Thread 'Artem Vasin' via Django users
Hi! Tl;dr no I don’t think so, actually it’s very useful. IMHO, you are barking at the wrong tree. As I see it, and I think many would agree with me, using third-party libraries instead of implementing your own, are the way to go in Django and Python and open-source community in general. It gi

Re: Request for an internship

2020-01-09 Thread neha somani
Can u pl send me your detailed CV On Thu, 9 Jan 2020, 9:48 am Bryan Maxx, wrote: > I'm looking for an internship in the field of ICT,IT,MEDICINE, and > PHYSICS. Incase you can offer or know of one, kindly inform me. Thank you. > > -- > You received this message because you are subscribed to the

Re: Request

2019-11-16 Thread Integr@te System
Hi Guy, Plz see community with people for help in specific problem by sharing knowledges or contract with selected person for your project then get help here. On Sat, Nov 16, 2019, 19:27 Motaz Hejaze wrote: > Search man > > On Sat, 16 Nov 2019, 1:39 pm Tosin Ayoola, wrote: > >> Hey guy, need a

Re: Request

2019-11-16 Thread Motaz Hejaze
Search man On Sat, 16 Nov 2019, 1:39 pm Tosin Ayoola, wrote: > Hey guy, need a little help on developing a school management system > project, can I get a github repo link, to get little help > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gro

Re: Request to provide the details of how to integrate django app with selenium chrome web driver

2019-10-02 Thread Dilipkumar Noone
Hi, Can some one please share where to place a chrome driver [.exe] file in a django project which launches a webpage to perform click operations using selenium. Please share any document or videos for the same, Regards, N.Dilip kumar. On Wed, Oct 2, 2019 at 3:15 PM Dilipkumar Noone wrote: >

Re: Request to provide the details of how to integrate django app with selenium chrome web driver

2019-10-02 Thread Dilipkumar Noone
Dear Deep L Sukhwani, The below statement clarifies my doubt. Here, your Django app is running on a different process and you are triggering selenium

Re: Request to provide the details of how to integrate django app with selenium chrome web driver

2019-10-01 Thread Deep Sukhwani
Still not clear on what is the automation task. From your original questions: 1.Under one tab ,provide a button name "ApplyGSP" > 2.click on "ApplyGSP" button should open a form ,which required below > input from the user. > >*a)*model_no* b)*model_name *c)*os_version *d)*requested_time *e)*us

Re: Request to provide the details of how to integrate django app with selenium chrome web driver

2019-10-01 Thread Dilipkumar Noone
Hi, If i use selenium webdriver regular way in my django app, will it not cause time consuming to perform the automation task on chrome webdriver ? So to save the time , can i launch browser and perform automation task using celery delay() method. Regards, N.Dilip Kumar. On Tuesday, October 1,

Re: Request to provide the details of how to integrate django app with selenium chrome web driver

2019-09-30 Thread Deep Sukhwani
What exactly do you want to use celery for? Using selenium webdriver the regular way should suffice here. Regarding copying from one field and pasting into another, you might be able to work with .get_text() method in selenium to read text from one field, store it in a variable and then .send_keys

Re: Request to provide the details of how to integrate django app with selenium chrome web driver

2019-09-30 Thread Dilipkumar Noone
On Monday, September 30, 2019 at 9:22:16 PM UTC+5:30, Dilipkumar Noone wrote: > > I am new to Django. > > I have a requirement to develop a django application with the requirement > as stated below: > > 1.Under one tab ,provide a button name "ApplyGSP" > 2.click on "ApplyGSP" button should ope

Re: request module

2019-09-24 Thread dandu sreenivasulu
Thanks Deep, i will raise on stackoverflow... On Tue, Sep 24, 2019 at 9:39 AM Deep Sukhwani wrote: > The right place for this would be "requests" community - > https://2.python-requests.org/en/master/community/support/#e-mail > > The best immediate course of action would be to post a question o

Re: request module

2019-09-23 Thread Deep Sukhwani
The right place for this would be "requests" community - https://2.python-requests.org/en/master/community/support/#e-mail The best immediate course of action would be to post a question on stackoverflow.com and tag the question with *python-requests* -- Regards Deep L Sukhwani On Mon, 23 Sep 2

Re: request for advice

2019-08-11 Thread Gil Obradors
For starting sqlite is enought! And better if you havn t got skills about sysadmin and postgresql Postgresql have more benkmarch, you can search posts in google But is not good idea buy a bus to carry 2 people. ( my opinion ) El dg., 11 d’ag. 2019, 18:51, ajoeiam va escriure: > Greetings > >

Re: Request & Response >> Device send HTTP request to web server

2019-03-19 Thread Sabuhi Shukurov
I was wondering if you have pdf version I have been looking but unfortunately not found the one free . On Tuesday, 19 March 2019 03:05:42 UTC+4, Mohan Goud wrote: > > Unit 9 of IoT by Vijay madisetti is completely related to that > > On Tue 19 Mar, 2019, 2:43 AM Sabuhi Shukurov wrote: > >> Hell

Re: Request & Response >> Device send HTTP request to web server

2019-03-19 Thread Sabuhi Shukurov
thank you! you let me find the book On Tuesday, 19 March 2019 03:05:42 UTC+4, Mohan Goud wrote: > > Unit 9 of IoT by Vijay madisetti is completely related to that > > On Tue 19 Mar, 2019, 2:43 AM Sabuhi Shukurov wrote: > >> Hello! >> >> I need your help and assistance in my project. Currently w

Re: Request & Response >> Device send HTTP request to web server

2019-03-18 Thread Mohan Goud
Unit 9 of IoT by Vijay madisetti is completely related to that On Tue 19 Mar, 2019, 2:43 AM Sabuhi Shukurov Hello! > > I need your help and assistance in my project. Currently we are developing > project on the device, which is on arduino written on C low level, it is > really difficult to hand

Re: Request Timed Out When Generating Huge Data

2018-04-02 Thread tango ward
I tried loading the site locally to see how long will it take to load a record of 1800 students. It took about a minute and a half locally. The request timed out problem occurs when I try to generate a CSV report and PDF. Both result to timed out even locally. On Tue, Apr 3, 2018 at 8:12 AM, tango

Re: Request Timed Out When Generating Huge Data

2018-04-02 Thread tango ward
Hi, SLR. At the moment, the largest number of students we have is 2000 in one campus. I haven't played around with the code but when I check it we're using a get_queryset function to get the data and filter it using Q. Then display it using get_context_data Code: class FinancialReportView(Appli

Re: Request Timed Out When Generating Huge Data

2018-04-01 Thread Babatunde Akinyanmi
Hi, How many records are we talking about? What code are you using to fetch the records? In other words, add more information so that it's easier to troubleshoot On Mon, 2 Apr 2018, 02:27 tango ward, wrote: > > Good day, > > I need suggestions on how to approach this problem. > > I am working on

Re: Request for advice on refactoring a big Django project

2017-03-07 Thread bobhaugen
> But don't be dismayed if no one responds. I'm not at all dismayed, and knew it was a shot in the dark, but might as well try for somebody who likes to discuss Django refactoring, or might be interested in the stuff we are building. And thanks again for the responses to my question about why

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Mark Phillips
I echo Vijay's comment. Lists like this are really great for very specific questions and short code segments or error message that a more experienced person can answer off the top of their head. Your question is very broad and requires a large time commitment from the reader to respond. With that s

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Vijay Khemlani
Also, this type mailing lists are usually for specific questions about the framework "How do I make this particular query with the ORM" "Why isn't this variable getting rendered in the template" etc Your question is kinda broad On 3/6/17, Bob Haugen wrote: > Antonis, thank you very much for th

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Bob Haugen
Antonis, thank you very much for the feedback! You are absolutely correct! I apologize to you and the list, and will strive to follow your suggestions in the future. I suspect, however, that the very long explanation that would have been required to avoid the links would have been offputting, too.

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Vinicius Assef
+1 On 6 March 2017 at 08:45, Antonis Christofides wrote: > Hi, > > I, like many people, am busy. I will generally not spend too much time on > the messages of this list. I delete most of them after only reading the > subject line. If I do choose to read the body, I expect to understand what > it

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Antonis Christofides
Hi, I, like many people, am busy. I will generally not spend too much time on the messages of this list. I delete most of them after only reading the subject line. If I do choose to read the body, I expect to understand what it is about after a few seconds of reading. But all I can see in your ori

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread bobhaugen
I was disappointed to get no response on this topic, and would be grateful for any feedback on why that might have been. Too big? Big ball of mud? Stupid project? ? (I have very little touchiness...) I hope people did not think we wanted to get them to do all or even very much work for us.

Re: request

2016-11-27 Thread Mike Dewhirst
Here is a good place to start ... https://www.djangoproject.com/ then continue here ... https://docs.djangoproject.com/en/1.10/intro/tutorial01/ Welcome On 28/11/2016 9:03 AM, Bhanu jamwal wrote: i am new to it please let me know the aims and steps regards Bhanu -- You received this message

Re: request

2016-11-27 Thread ludovic coues
What are you trying to do ? 2016-11-27 23:03 GMT+01:00 Bhanu jamwal : > i am new to it please let me know the aims and steps > regards > Bhanu > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiv

Re: request user

2016-04-20 Thread Avraham Serour
if you can get the request object you can get the current user with request.user On Mon, Apr 18, 2016 at 9:38 PM, Elias Coutinho wrote: > Good afternoon people, > > I am using django material, LayoutMixin > > My view is: > > class NewProfissoesPessoaView (LoginRequiredMixin, LayoutMixin, >

Re: Request works with sqlite not with Postgres

2016-04-04 Thread Simon Charette
Hi Tazo, I just submitted a patch that correctly resolves the `output_field` of `Avg` over non-numeric fields. If it gets merged you shouldn't have to worry about passing an explicit `output_field=DurationField()` in Django 1.10. Simon Le lundi 4 avril 2016 09:46:53 UTC-4, Tazo Gil a écrit : >

Re: Request works with sqlite not with Postgres

2016-04-04 Thread Tazo Gil
Without your help, I would not get the solution. Maybe the doc (https://docs.djangoproject.com/en/1.9/ref/models/querysets/#avg) should be more precise about this case. Merci beaucoup Le lundi 4 avril 2016 05:35:14 UTC+2, Simon Charette a écrit : > > Hi Tazo, > > The default `output_field` of t

Re: Request works with sqlite not with Postgres

2016-04-03 Thread Simon Charette
Hi Tazo, The default `output_field` of the `Avg` aggregate is a `FloatField`[1] hence the error raised here. In the case of SQLite, `DurationField`s are stored as large integers of microseconds[2] and the result returned by the database is already a float making `float(value)` a no-op in `convert_

Re: Request works with sqlite not with Postgres

2016-04-02 Thread Tazo Gil
I forgot to precise the type of the field Chrono.temps: temps = models.DurationField(null=True) Le samedi 2 avril 2016 19:08:20 UTC+2, Tazo Gil a écrit : > > Hello, > > The following request works in my dev django project (sqlite) by not in > production with postgres > > out: >>> > Questionn

Re: [REQUEST] Please list all the deprecations in the changelogs.

2015-10-12 Thread Vasiliy Korol
Xavier, thank you! My bad, I missed it. Sorry for the fuss, it was my fault. Consider the question closed. понедельник, 12 октября 2015 г., 15:21:22 UTC+2 пользователь Xavier Ordoquy написал: > > Hi Vasiliy, > > > Le 12 oct. 2015 à 14:53, Vasiliy Korol > > a écrit : > > > > Hi. > > I find it

Re: [REQUEST] Please list all the deprecations in the changelogs.

2015-10-12 Thread Xavier Ordoquy
Hi Vasiliy, > Le 12 oct. 2015 à 14:53, Vasiliy Korol a écrit : > > Hi. > I find it useful to turn DeprecationWarnings into exeptions on the > development server in order to ease the future transition to the next Django > LTS release. > After migrating to Django 1.8.5, we received some unexpect

Re: [REQUEST] Please list all the deprecations in the changelogs.

2015-10-12 Thread Avraham Serour
could you contribute the list you made so it can be added to the release notes, it is never too late to add them even for past releases On Mon, Oct 12, 2015 at 3:53 PM, Vasiliy Korol wrote: > Hi. > I find it useful to turn DeprecationWarnings into exeptions on the > development server in order t

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Bruno Girin
On Tuesday, March 5, 2013 7:56:37 PM UTC, Dave Murphy wrote: > > On Tuesday, March 5, 2013 7:03:36 PM UTC, Bruno Girin wrote: >> >> So I'd much rather have the charm auto-generate part of the config in a >> sensible way and then tell people: if you use Juju, don't provide those >> settings in y

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Dave Murphy
On Tuesday, March 5, 2013 7:03:36 PM UTC, Bruno Girin wrote: > > So I'd much rather have the charm auto-generate part of the config in a > sensible way and then tell people: if you use Juju, don't provide those > settings in your config, the charm will do it. > ...and if they do? How is this any

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Christopher Glass
For what it's worth, "other PaaS solutions" solve this by letting people call a python function from settings.py I think it's a good solution. On Mar 5, 2013 8:04 PM, "Bruno Girin" wrote: > > > On Tuesday, 5 March 2013 13:35:41 UTC, Dave Murphy wrote: >> >> On Tuesday, March 5, 2013 1:17:13 PM U

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Bruno Girin
On Tuesday, 5 March 2013 13:35:41 UTC, Dave Murphy wrote: > > On Tuesday, March 5, 2013 1:17:13 PM UTC, Michael wrote: >> >> Are there other better options that wouldn't force people to change their >> code to use the charm? >> > > For the charm to be of sufficient value, it needs to be opiniona

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Dave Murphy
On Tuesday, March 5, 2013 1:17:13 PM UTC, Michael wrote: > > Are there other better options that wouldn't force people to change their > code to use the charm? > For the charm to be of sufficient value, it needs to be opinionated, otherwise it's going to suffer from trying to work out-of-the-box

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Michael Nelson
On Tue, Mar 5, 2013 at 1:55 PM, Dave Murphy wrote: > On Sunday, March 3, 2013 4:45:56 PM UTC, Bruno Girin wrote: > >> Patrick solved that problem by separating different config elements in >> different files but this implies that juju'ised applications would need to >> follow the same structure.

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Dave Murphy
On Sunday, March 3, 2013 4:45:56 PM UTC, Bruno Girin wrote: > Patrick solved that problem by separating different config elements in > different files but this implies that juju'ised applications would need to > follow the same structure. Is that a good idea? If you're aiming for a PaaS-style

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Michael
On Sunday, 3 March 2013 17:45:56 UTC+1, Bruno Girin wrote: > The main stumbling block at the moment and for which we could do with > Django expertise is about the structure of the settings files. Some > settings are application specific and should be left alone by Juju, others > are environment

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-03 Thread Bruno Girin
Hi Chris, I've been working with Patrick on this charm and I implemented a simple version of support for private repositories. It basically creates a .netrc file with the user name and password for the correct machine. It's not ideal but it did enable me to get code from a private github repo.

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-02 Thread Christopher Glass
Hi Patrick, Great to hear you're interested in writing a Django charm for juju! I have toyed around with the idea, but never got around to implementing something good. I started looking at the current Django charm a little while ago, and while it works to some extend I think we could make reall

Re: Request for inspiration on business system

2012-11-21 Thread Lachlan Musicman
On Thursday, November 22, 2012, Peter Edström wrote: > *Lachlan Musicman:* > You recommend using virtualenv. Why and in what scenarios? If I understand > it correctly, virtualenv sets up a virtual python environment galvanically > isolated from the rest of the system and I see how this let you go

Re: Request for inspiration on business system

2012-11-21 Thread Tom Evans
On Wed, Nov 21, 2012 at 5:23 PM, Issam Outassourt wrote: > Well, I do not totally agree with your point. > The problem with virtual environments such as these is that you have trouble > sometimes figuring out what actually happens behind the scripts that are > used to initialize your environment.

Re: Request for inspiration on business system

2012-11-21 Thread Issam Outassourt
Well, I do not totally agree with your point. The problem with virtual environments such as these is that you have trouble sometimes figuring out what actually happens behind the scripts that are used to initialize your environment. Thus comes a natural habit that I personally developed which is to

Re: Request for inspiration on business system

2012-11-21 Thread Javier Guerra Giraldez
On Wed, Nov 21, 2012 at 10:11 AM, Peter Edström wrote: > You recommend using virtualenv. Why and in what scenarios? always. each and every time i haven't used it, i've regretted it later. it not only lets you experiment but also in deployment you're guaranteed a stable environment. Also it ma

Re: Request for inspiration on business system

2012-11-21 Thread Peter Edström
*Lachlan Musicman:* You recommend using virtualenv. Why and in what scenarios? If I understand it correctly, virtualenv sets up a virtual python environment galvanically isolated from the rest of the system and I see how this let you go crazy and experiment without risking anything. Is this the

Re: Request for inspiration on business system

2012-11-20 Thread Lachlan Musicman
On Wed, Nov 21, 2012 at 8:37 AM, Peter Edström wrote: > Hello, Hi! > A company's internal business database system pretty much, and nothing new > under the sun. Perhaps accompanied by an external website further on. > Now on to the questions. > > Do you think Django would be suitable for this?

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-13 Thread Cal Leeming [Simplicity Media Ltd]
On Thu, Sep 13, 2012 at 9:42 AM, Derek wrote: > Cal > > Great post; I think you summed up my feelings about django-reversion as > well, although articulated extremely clearly. > > If CuteModel (where does that name come from??) > Cute was the first word that came to my head, thought it sounded c

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-13 Thread Derek
Cal Great post; I think you summed up my feelings about django-reversion as well, although articulated extremely clearly. If CuteModel (where does that name come from??) can address the issue of reverting a change to a record (or, even better, all changes made at one time to a record), then I

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Thanks for letting me know about django-reversion, it has made for interesting reading. >From what I can see there are two big differences between them; * CuteModel is designed with performance/scalability in mind (as some of our projects are tipping into the 700+mil row count and rising) * CuteM

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-11 Thread jondykeman
Hello, I am in a very similar situation. I would in an environment that deals with sensitive data collection. Everything has to be two-factor authenticated, in the secure server zone etc. As part of this we need logging of every action ever taken, by whom, when, and what the changes were. At f

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
On Mon, Sep 10, 2012 at 11:07 PM, Kurt Pruhs wrote: > Hey Cal, > > This looks like a great tool. I know I've implemented code like this in > another project. I was planning on doing a field change audit module for an > application I'm currently working on. I will definitely look at > django-cutem

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-10 Thread Kurt Pruhs
Hey Cal, This looks like a great tool. I know I've implemented code like this in another project. I was planning on doing a field change audit module for an application I'm currently working on. I will definitely look at django-cutemodel and see if it works for what I need, and how I can contr

Re: Request Context problem

2012-02-20 Thread Roald
On 20 feb, 00:03, Reinout van Rees wrote: > On 19-02-12 14:16, dummyman dummyman wrote: > > The solution is simple: just add a {{ csrf_token }} somewhere in your > form. That ought to do it. A typo there, Reinout ;-). You meant: {% csrf_token %} Cheers, Roald -- You received this message

Re: Request Context problem

2012-02-19 Thread Reinout van Rees
On 19-02-12 14:16, dummyman dummyman wrote: I am getting the following eror on posting the form CSRF verification failed. Request aborted. Reason given for failure: CSRF token missing or incorrect. It is already on the first go into your view that Django complains about a missing CSRF t

Re: Request for new user account via email Django

2011-08-05 Thread Sheogora
There was a different problem actually, RequestContext(request) was never called I removed that line and put it in the above return. Worked fine :) thank you for the effort tho On Aug 4, 5:58 pm, Shawn Milochik wrote: > In your view you should be instantiating the form with the data from > reque

Re: Request for new user account via email Django

2011-08-04 Thread Shawn Milochik
In your view you should be instantiating the form with the data from request.POST instead of reading the values directly. Also, you mention that you get a 403 error when you post your name and password, but the form and template you pasted don't include password, so I suspect the error is comi

Re: Request and null value

2011-06-06 Thread Masklinn
On 2011-06-06, at 07:36 , Constantine wrote: > Hi, a have a problem, but may be this is expected behaviour: > > on client side i'm post: > $.post("my url",{myvar:null}...) > > but on server side: > request.POST becomes {myvar:u'null'} > > null deserialized to string. So, do i need to report a bu

Re: Request and null value

2011-06-06 Thread Constantine
Thanks, i've workaround this with empty string. I was surprised when saw raw_post_data which looks very similar to GET string. I confused this behaviour with JSON parser. On 6 июн, 12:50, Jani Tiainen wrote: > On Sun, 2011-06-05 at 22:36 -0700, Constantine wrote: > > Hi, a have a problem, but may

Re: Request and null value

2011-06-05 Thread Jani Tiainen
On Sun, 2011-06-05 at 22:36 -0700, Constantine wrote: > Hi, a have a problem, but may be this is expected behaviour: > > on client side i'm post: > $.post("my url",{myvar:null}...) > > but on server side: > request.POST becomes {myvar:u'null'} > > null deserialized to string. So, do i need to re

Re: Request variables are empty in views.py

2011-04-10 Thread Ali E . İMREK
10 Nisan 2011 13:33 tarihinde Ali E.İMREK yazdı: > I'm sending XML data but request.raw_post_data and POST vars are > empty, whats wrong? > > ___views.py___ > def reply(request): >    return HttpResponse("Server raw reply: "+str(request.raw_post_data)) > > > I've copied POST process information fo

Re: request in model

2011-03-14 Thread Mike Ramirez
On Monday, March 14, 2011 07:45:23 am Igor Nemilentsev wrote: > I am new in Django. > I am looking for a solution for my problem. > I want to have a base model class > inheriting all other model classes from that class. > In the base model class I want to check > some permissions for users. > So, n

Re: request in urls.py

2011-02-18 Thread Burhan
urls.py doesn't do anything with GET or POST requests, its just regular expression to method mapping. So you can pass whatever you want to the link, and they will all work. For example, in your urls.py you have: (r'^logout$', logout_user) All these requests will be passed to your logout_user me

Re: Request Object Data

2010-12-17 Thread Jonas H.
On 12/17/2010 10:18 PM, hank23 wrote: Is data entered on an input screen automatically added to the request when the screen is submitted? If so are there any special parameters or settings in the screen controls which have to be set/coded to get the entered data saved into the request and under w

Re: Request object problem

2010-09-22 Thread girish shabadimath
ya correct, now i got complete picture of client.get() and RequestFactory, On Wed, Sep 22, 2010 at 5:28 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On 22 sep, 13:17, girish shabadimath wrote: > > Thanks for the reply, actually the response object got using > RequestFactory

Re: Request object problem

2010-09-22 Thread bruno desthuilliers
On 22 sep, 13:17, girish shabadimath wrote: > Thanks for the reply, actually the response object got using RequestFactory > is different from the one returned by client.get() function,, The reponse object you get using RequestFactory is the one returned by your view. > i think response object re

Re: Request object problem

2010-09-22 Thread girish shabadimath
Thanks for the reply, actually the response object got using RequestFactory is different from the one returned by client.get() function,, i think response object returned by client.get() supports response.template and response.context['data'],,, ref:( http://djangosnippets.org/snippets/963/ )

Re: Request object problem

2010-09-22 Thread bruno desthuilliers
On 22 sep, 11:31, girish shabadimath wrote: > hi all, > > i used django snippethttp://djangosnippets.org/snippets/963/ > > and successfully created request object > > i checked the response.status_code its giving 200 > > i checked response.content it matches with the browser source code > > when i

Re: request object in generic view?

2010-09-09 Thread Łukasz Rekucki
On 9 September 2010 05:46, akcom wrote: > Is there anyway to access the request object from a generic view? > Specifically, I'd like to access the request.user object.  I tried > doing it as follows: > (r'^$', 'django.views.generic.simple.direct_to_template', {'template': > 'index.html', 'extra_co

Re: Request to the list owner

2010-04-12 Thread Thierry CHICH
> On Mon, Apr 12, 2010 at 1:58 PM, Omer Barlas wrote: > > Can you please add a prefix to the email subject? I am reading my mail > > mostly from my BB Bold, but I cannot filter mail like Thunderbird > > does, it would be much simpler if there was a prefix like [django] or > > such. > It is tru

Re: Request to the list owner

2010-04-11 Thread Russell Keith-Magee
On Mon, Apr 12, 2010 at 1:58 PM, Omer Barlas wrote: > Can you please add a prefix to the email subject? I am reading my mail > mostly from my BB Bold, but I cannot filter mail like Thunderbird > does, it would be much simpler if there was a prefix like [django] or > such. No. This has been propo

Re: request and email templates

2009-12-13 Thread Tim Miller
Daniel Roseman wrote: > Looking at the code for that view, in > django.contrib.auth.views.password_reset, it appears that the actual > email creation and sending happens in the save method of the > PasswordResetForm, and the request is not passed into that method at > all so is not available in the

Re: request and email templates

2009-12-13 Thread Daniel Roseman
On Dec 13, 5:06 pm, Tim Miller wrote: > I'm using django.contrib.auth.views.password_reset and trying to pass > the ip address of the user requesting a password reset into the > confirmation email. > > I've enabled django.core.context_processors.request in settings and can > successfully display r

Re: Request POST String

2009-11-26 Thread Chris
Awesome, that looks like it. Thanks. On Nov 26, 4:01 pm, Masklinn wrote: > On 26 Nov 2009, at 16:55 , Chris wrote: > > > Hi all, > > > Sorry for bothering you with something that is probably fairly > > straight forward but I cant seem to find the solution myself. > > > I am using Google Checkout

Re: Request POST String

2009-11-26 Thread Masklinn
On 26 Nov 2009, at 16:55 , Chris wrote: > Hi all, > > Sorry for bothering you with something that is probably fairly > straight forward but I cant seem to find the solution myself. > > I am using Google Checkout on my site. It calls one of my pages after > processing an order. It posts XML. Djang

Re: Request POST String

2009-11-26 Thread Chris
Yes, I did mean '=' rather than ':'. I have been doing too much JSON lately... Here is an example of the output from 'str(request.POST)': \r\nhttp://checkout.google.com/schema/2"; serial-number="707751054951378-5-1">\r\n NEW\r\n CHARGEABLE\r\n NEW\r\n REVIEWING\r\n 2009-11-26T14:39:21.900

Re: Request POST String

2009-11-26 Thread Daniel Roseman
On Nov 26, 3:55 pm, Chris wrote: > Hi all, > > Sorry for bothering you with something that is probably fairly > straight forward but I cant seem to find the solution myself. > > I am using Google Checkout on my site. It calls one of my pages after > processing an order. It posts XML. Django seems

Re: Request Entity Too Large

2009-09-19 Thread Graham Dumpleton
On Sep 18, 4:39 am, Karen Tracey wrote: > On Thu, Sep 17, 2009 at 1:47 PM, Jashugan wrote: > > > Hello, > > > I have a user who is trying to upload a large file (> 50MB) to our > > Django application. The error that they are getting is: > > > Request Entity Too Large > > The requested resource

Re: Request Entity Too Large

2009-09-18 Thread Jashugan
On Sep 17, 11:39 am, Karen Tracey wrote: > > http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody > > Karen Excellent! Thanks Karen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Request Entity Too Large

2009-09-17 Thread Karen Tracey
On Thu, Sep 17, 2009 at 1:47 PM, Jashugan wrote: > > Hello, > > I have a user who is trying to upload a large file (> 50MB) to our > Django application. The error that they are getting is: > > Request Entity Too Large > The requested resource > /ri/agent/orders/create/ > does not allow request da

Re: request body too long

2009-07-07 Thread Tom Evans
On Tue, 2009-07-07 at 03:02 -0700, Xu Mingming wrote: > When i post a request to my django server with a body of 28000 > characters, i got a 413 response(request body too long), anymore knows > how to increase this limit? > > BTW, i run the server using: > ./manage.py runserver > > thanks > Si

Re: Request aware template loader

2009-06-22 Thread Rama Vadakattu
have you gone through the below url: http://www.b-list.org/weblog/2007/nov/01/django-tips-template-loading-and-rendering/ On Jun 22, 5:49 pm, z0n3z00t wrote: > I have a common site that is used by different clients.  Each client > wants to be able to custom-brand the site to their liking. > > H

Re: request object in custom template filter code?

2009-03-25 Thread Malcolm Tredinnick
On Wed, 2009-03-25 at 05:23 -0700, foxbunny wrote: > I am trying to write a custom template filter which takes a variable > which is a model object and grabs fields from a related object based > on request.session['lang'] parameter. Or it would if I knew how to get > the `lang` parameter from with

  1   2   >