no info on extra fields in the modelformset docs

2021-06-14 Thread VISHESH MANGLA
Hello, I 'm trying to use a modelformset with extra form fields but the docs say nothing about it. The initial data corresponding to the model fields gets loaded. I 'm stuck on this view(posted at the end) from previous 4 days, please help someone. The extra field is ` print_report_check`.

Hi there. I need info about in memory sqlite database with django

2021-01-13 Thread Ali Sufyan
is there a way to load sqlite database in memory and then do all read/write from there then when connection closes write back to disk -- 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

Where to check detailed info (reference page, not the topics page) about contrib.auth.views.LogoutView?

2020-07-21 Thread Liu Zheng
Hi guys, I'm trying to solve a simple problem: add a message "You've logged out!" After redirecting user to login page. I got one nice solution at https://stackoverflow.com/questions/11393929/django-message-when-logout from django.contrib.auth.views import LogoutView class YourCustomLogoutView

Re: Info

2019-05-06 Thread Emmanuel Arias
gt; > *From: *Soumen Khatua <mailto:soumenkhatua...@gmail.com> > *Sent: *06 May 2019 16:52 > *To: *django-users@googlegroups.com > <mailto:django-users@googlegroups.com> > *Subject: *Info > >   > > Hi Folks, > &

Re: Info

2019-05-06 Thread Soumen Khatua
ran, wrote: >> >>> No folk >>> >>> No need to pay >>> >>> >>> >>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for >>> Windows 10 >>> >>> >>>

Re: Info

2019-05-06 Thread Ahmed Ishtiaque
86> for >> Windows 10 >> >> >> >> *From: *Soumen Khatua >> *Sent: *06 May 2019 16:52 >> *To: *django-users@googlegroups.com >> *Subject: *Info >> >> >> >> Hi Folks, >> >> >> >> Should I need to pay

Re: Info

2019-05-06 Thread Soumen Khatua
wrote: >> >>> No folk >>> >>> No need to pay >>> >>> >>> >>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for >>> Windows 10 >>> >>> >>> >>> *From: *Soumen Khat

Re: Info

2019-05-06 Thread Alex Heyden
550986> for >> Windows 10 >> >> >> >> *From: *Soumen Khatua >> *Sent: *06 May 2019 16:52 >> *To: *django-users@googlegroups.com >> *Subject: *Info >> >> >> >> Hi Folks, >> >> >> >> Should I need to pay

Re: Info

2019-05-06 Thread Soumen Khatua
Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *Soumen Khatua > *Sent: *06 May 2019 16:52 > *To: *django-users@googlegroups.com > *Subject: *Info > > > > Hi Folks, > > > > Should I need to pay for asking ques

RE: Info

2019-05-06 Thread charan
No folk No need to pay Sent from Mail for Windows 10 From: Soumen Khatua Sent: 06 May 2019 16:52 To: django-users@googlegroups.com Subject: Info Hi Folks, Should I need to pay for asking questions or problem in this group? Thank You -- You received this message because you are subscribed to

Info

2019-05-06 Thread Soumen Khatua
Hi Folks, Should I need to pay for asking questions or problem in this group? Thank You -- 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.

Native info

2019-01-03 Thread rbrown107074
Hi all -- 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.com. To post to this group, send email to django-users@googlegroups.

How change info about register user

2015-12-30 Thread Dariusz Mysior
In Django\contrib\auth\forms.py I have clas like below. When I use it and create a form to register a user with fields user, password, confirm password I have also info about correct characters to register user. How can I change this info? class UserCreationForm(forms.ModelForm): "&qu

Django inlineform not adding cinema field info on save

2015-09-29 Thread drifter
I have a inline form which looks like the snapshot above but when I save the "Cinema, Movie type and Price" doesn't get added to the additional fields (each starts time is another instance of the field). For example the second line with 2015-10-02 Cinema2 will only be saved on the instance of

Re: Why the extra minute in PostgreSQL when using time zone info?

2015-05-29 Thread aRkadeFR
awesome explanation. I was only aware of time zone information, and got to understand the daylight saving time not that long ago. Glad to know, after reading from you, the historical differences on the time offset of the same geographical area. Have a good weekend :) On 05/29/2015 06:00 PM, Ca

Re: Why the extra minute in PostgreSQL when using time zone info?

2015-05-29 Thread Carl Meyer
Hi aRkadeFR, On 05/29/2015 02:09 AM, aRkadeFR wrote: > Indeed, the problem comes from the representation on PG, > cause I have only good results (0/30 for the minutes) from > the python function. [snip] The OP already found and posted the solution (see below) and it is not related to Postgres. He

Re: Why the extra minute in PostgreSQL when using time zone info?

2015-05-29 Thread aRkadeFR
Hey, Indeed, the problem comes from the representation on PG, cause I have only good results (0/30 for the minutes) from the python function. I don't get though why it is showing the wrong datetime. @Avraham: It's not the representation of the timezone offset. It's a false representation. He is

Re: Why the extra minute in PostgreSQL when using time zone info?

2015-05-28 Thread Avraham Serour
this is not an extra minute, it is a representation of the timezone offset On Thu, May 28, 2015 at 11:42 PM, Daniel Grace wrote: > I used this function, seemed to tidy up the problem: > > from datetime import datetime > from pytz import timezone > > def utcDtTm(self, dt_tm): > tz = t

Re: Why the extra minute in PostgreSQL when using time zone info?

2015-05-28 Thread Daniel Grace
I used this function, seemed to tidy up the problem: from datetime import datetime from pytz import timezone def utcDtTm(self, dt_tm): tz = timezone('Europe/London') return tz.normalize(tz.localize(dt_tm)).astimezone(timezone('UTC')) -- You received this message because you

Why the extra minute in PostgreSQL when using time zone info?

2015-05-28 Thread Daniel Grace
I am creating some test data for a DateTimeField using the following function: def rndDtTm(self): uktz = timezone('Europe/London') year = 2015 month = 6 day = randint(1, 30) hour = randint(0, 23) minute = 30 * randint(0, 1) return dateti

Re: Is Django an easier solution in order to be able to track click info and establish foreign keys, or can I just use python to complete this task?

2014-10-07 Thread Collin Anderson
I would personally just use plain python for this. It's totally possible to group things together using dicts and setdefault(). (Or, since it doesn't look like speed is an issue, just loop over the whole file every time you need to get info.) It may be though that you think a lot mor

Is Django an easier solution in order to be able to track click info and establish foreign keys, or can I just use python to complete this task?

2014-10-07 Thread Wadson Espindola
The aim of this exercise is to combine the sample database, click tracking information from a test website and application, and information from user's social networks. The sample database contains the following fields and is made up of 500 records. first_name, last_name, company_n

Re: get user profile info in templates

2014-04-24 Thread Ramón Carrillo
Hi, Did you set CustomUserAuth as your auth model in settings.py? [1] [0] https://docs.djangoproject.com/en/1.6/ref/settings/#std:setting-AUTH_USER_MODEL On Thu, Apr 24, 2014 at 3:41 AM, sourav wrote: > hi i am a newbie in django i am creating an app with customuser and profile > > i want get

get user profile info in templates

2014-04-24 Thread sourav
hi i am a newbie in django i am creating an app with customuser and profile i want get user profile information in templates who is logged in. try everypossible solution but didn't achieve anything this is my profile models code below: from django.db import models from django.utils.translation

Re: How allow public query & download of info from my db

2014-03-21 Thread Rafael E. Ferrero
2014-03-21 12:19 GMT-03:00 C. Kirby : > I've actually built a small app that generates a form allowing users to do > a Meta Query on models django-modelqueryform. > I am in the process of a full rewrite of it to make it a lot more > customizable, but the initial version works with fields that have

Re: How allow public query & download of info from my db

2014-03-21 Thread C. Kirby
I've actually built a small app that generates a form allowing users to do a Meta Query on models django-modelqueryform. I am in the process of a full rewrite of it to make it a lot more customizable, but the initial version works with fields that have choices set or with fields that are a numer

Re: How allow public query & download of info from my db

2014-03-21 Thread Venkatraman S
On Fri, Mar 21, 2014 at 12:17 AM, Nicholas Tapia wrote: > Hey Django Community! > > I'm newer to programming and was pointed in the direction of django for > this project. > > The idea is that people can make their own custom queries and download > load it from my db. > > So far I'm thinking that

How allow public query & download of info from my db

2014-03-20 Thread Nicholas Tapia
Hey Django Community! I'm newer to programming and was pointed in the direction of django for this project. The idea is that people can make their own custom queries and download load it from my db. So far I'm thinking that using a form is they way to go to accept this information. But from

Re: Combining django-tables2 with django-filter info ListView?

2014-01-20 Thread Sapana Kaswa-Surpuriya
Were you able to implement it? Could you help me? On Thursday, August 9, 2012 3:47:56 PM UTC-5, Paul wrote: > > I have a listview using the generic class based ListView. I have > get_queryset overloaded in my view: > > class WebsiteList(ListView): > model = Website > def get_queryset(self

Re: Need explanation of the flow of info between my javascript, my View, and my template, trying to diagnose my current roadblock.

2013-04-30 Thread Shawn Milochik
You're welcome. You may be new to it, but you ask better questions than most I see. When I see "How do I do X?" I usually ignore it. When I see "Here's what I did. It's not working for some reason" then I try to help if I can. Keep up the good work. Shawn -- You received this message because you

Re: Need explanation of the flow of info between my javascript, my View, and my template, trying to diagnose my current roadblock.

2013-04-30 Thread Javier Guerra Giraldez
On Tue, Apr 30, 2013 at 2:22 PM, <7equivale...@gmail.com> wrote: > "Redirect" Is that what you kids are calling it nowdays.. i found that word in RFC 1945, by Tim Berners-Lee and others, May 1996, where HTTP/1.0 was defined. hardly a new term in web lingo. -- Javier -- You received this mess

Re: Need explanation of the flow of info between my javascript, my View, and my template, trying to diagnose my current roadblock.

2013-04-30 Thread 7equivalents
"Redirect" Is that what you kids are calling it nowdays.. Thanks, that was the terminology I was lacking. That works I'm learning html, javascript, and Django all together on the fly so I'm not well versed in basics. Thankyou for your help! It helped clear up the puzzle a bit. -- You rece

Re: Need explanation of the flow of info between my javascript, my View, and my template, trying to diagnose my current roadblock.

2013-04-30 Thread Shawn Milochik
If I understand your question and your code properly, the problem is that you are expecting a redirect, but what's happening is that the raw HTML from the view is being returned to your JavaScript function, which does nothing with it. It seems like what you should do is just do a normal HTML form

Need explanation of the flow of info between my javascript, my View, and my template, trying to diagnose my current roadblock.

2013-04-30 Thread 7equivalents
Hey guys, I need a little help. Here is what I'm trying to do. I would like to have a html button execute a javascript on click, and the javascript should send an GET reguest to the server which should execute the View for the page requested. For some reason I can't get it to work... here is wha

Re: more info to the user

2012-08-15 Thread Mario Gudelj
For the first question you should look at Forms topic in django docs. For the second one take a look at models docs for the info on how to mark the field as not required. M On Aug 15, 2012 3:36 PM, "heni yemun" wrote: > Hi, > I have set up a UserProfile using the technique

more info to the user

2012-08-14 Thread heni yemun
Hi, I have set up a UserProfile using the technique outlined in the standard. What i can do give values to the fields in the user profile model. So if i've a city field in the UserProfile, how can i put the value 'Asmara' to it and save it in the database? Second question is whenever i try to s

Combining django-tables2 with django-filter info ListView?

2012-08-09 Thread Paul
I have a listview using the generic class based ListView. I have get_queryset overloaded in my view: class WebsiteList(ListView): model = Website def get_queryset(self): return Website.objects.all() First step is to add the tables2 mixin as follows: class WebsiteList(tables.Sing

can't attach more info to User

2012-07-23 Thread heni yemun
Hi, When i used to add more info to User using the method described in the standard specification and the inheritance method i couldnot do it. Here is what it says: My addon model UserProfile is composed of char, integer, date fields. And when i create a user it says sth like 'column use

Re: all(), get(), create(), count(). More info?

2012-03-25 Thread creecode
Hello MF-DOS, If you're just getting started with Django you might want to use the latest release tutorial . Of course you'll also want the latestDjango release. Whatever version you u

Re: all(), get(), create(), count(). More info?

2012-03-24 Thread Jonathan Baker
.all(), .filter(), .get() are methods invoked through Django model managers ('objects' in this case). The methods are made available when you create a model class that inherits from models.Model. To use any of them from a shell, you'll need to invoke the python interpreter using the following mana

all(), get(), create(), count(). More info?

2012-03-24 Thread MF-DOS
Running this tut: https://docs.djangoproject.com/en/1.1/intro/tutorial01/ Here is a list of shell commands I'm asked to issue, but I don't understand where the commands are coming from? Are these Django or Python commands? I've attempted to query help and read the docs but can't find them anywhere

Re: Logging messages higher than INFO level

2011-10-27 Thread Masklinn
mple': { >'format': '%(levelname)s: %(message)s' >} >}, >'handlers': { >'console':{ >'level':'INFO', >'class':'logging.StreamHandler&#

Logging messages higher than INFO level

2011-10-27 Thread Ahmed Refaey
x27; } }, 'handlers': { 'console':{ 'level':'INFO', 'class':'logging.StreamHandler', 'formatter': 'simple' } }, 'loggers': {

Django 1.3 logging, how to log INFO to file1.log and ERROR to file2.log

2011-10-02 Thread robinne
I want to log ERRORs to an error log and INFO to an info log file. I have it setup like this, but the info log files gets both INFO and ERROR logging (because it allows INFO and above severity). How do I only run a handler for INFO and not higher items such as ERROR. LOGGING = { 'versio

Re: Editing djangoproject Community RSS feed info

2011-09-18 Thread Russell Keith-Magee
7;Subhranath Chunder' from the current 'ScratchBlog - The Scratch Blog'. > I had simply put the wrong info in there. Done. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Editing djangoproject Community RSS feed info

2011-09-18 Thread Subhranath Chunder
7;. I had simply put the wrong info in there. -- Thanks, Subhranath Chunder. www.subhranath.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from thi

Re: Where's the code picking apart the info about selected filters in the admin change_list stored in the current session?

2011-08-28 Thread Thomas Weholt
Is this just spam/phising or what? Thomas On Sun, Aug 28, 2011 at 6:44 PM, wrote: > I am out of office right now and will get back to you when I return. If you > don't hear from me, my assistant should contact you shortly. Check out this > massage chair that I just bought to help relax me after

Where's the code picking apart the info about selected filters in the admin change_list stored in the current session?

2011-08-28 Thread Thomas Weholt
Where's the code picking apart the info about selected filters stored in the current session? I see from the source that setting filters in the admin change_list are stored in the session, but I cannot find the code picking the session data apart and building a queryset. Do you have any ti

Info Needed: Sprints at DjangoCon 2011

2011-07-12 Thread Shubhanan Bakre
Hi, This will be my first year at DjangoCon and I wanted to know regarding activities that happen during sprints. Thanks and Regards, Shubhanan Bakre -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Info and warning messages in admin

2011-06-27 Thread Daniele Procida
I need to be able to distinguish between info and warning messages that get passed to the user in admin. I do this, and it works: # import the admin messages framework from django.contrib import admin, messages class SomeForm(forms.ModelForm): ... def clean(self): # create a

Help selecting info from across databases in queries.

2011-06-24 Thread Chris McComas
Here are my models: http://dpaste.com/558411/ I'm wanting to run a query on the Team model that gets every game from Games where the team's opponent was in the Coaches Poll Top 25. So, the view is getting: team = Team.objects.get(pk=team_id) On this page, it'll display team

Re: django and fastcgi losing some info in request data

2011-04-26 Thread xiao_haozi
FOUND: http://groups.google.com/group/django-users/msg/76718270ffed9696?pli=1 link for future reference. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this

Re: django and fastcgi losing some info in request data

2011-04-26 Thread xiao_haozi
sorry... was doing some more digging. Seems the problem is exclusive to // scenarios. doing somethign like this: http://mydomain/url/http%3A%21%21wikipedia.com/ gives me the proper : http:!!wikipedia.com etc etc so any clue why it would be exclusively stripping out one / from // ? -- You receiv

Re: django and fastcgi losing some info in request data

2011-04-25 Thread xiao_haozi
I could just manually check and add it before working with the model like: stump_split = list(this_stump.partition(":")) if stump_split[1] and not stump_split[2].startswith("//"): stump_split[2] = "/"+stump_split[2] this_stump = ''.join(stump_split)

django and fastcgi losing some info in request data

2011-04-25 Thread xiao_haozi
Hi all- I have a problem that is driving me to the brink of insanity. I'll preface this with the fact that running the built-in server everything works fine. I encounter this issue running it via fastcgi and lighttpd. I will paste in all relevant info at the bottom. In short, the wor

Re: Pre-filled user info in Django Comments?

2010-12-10 Thread Andre Terra
>From my experience, adapting to http://code.google.com/p/django-threadedcomments/ pays off. You said "the site I'm *building*", and we all know it's definitely easier to explore other possibilities early on. Best regards, Andre Terra (airstrike) On Fri, Dec 10, 2010 at 14:12, Jeff wrote: > M

Re: Pre-filled user info in Django Comments?

2010-12-10 Thread Jeff
My site takes the route of hiding name, email, and URL fields for authenticated users. You can safely serve up a form without the name field for authenticated users since the comments framework will just copy over either the user's full name if it's set or their username if it isn't for the commen

Pre-filled user info in Django Comments?

2010-12-09 Thread Paolo
Hi, The site I'm building uses the standard user management framework and the standard comments framework. What I'd like to see happen is the comments form rendered with the user's name and email address pre-filled if they are already signed in (or have the fields hidden entirely!). Easy enough?

Re: how to add login info while opening url

2010-10-12 Thread Bill Freeman
hat..it gives 403 error.. > I don't think putting login info in request will help..that will work > only for 401 I believe.. > not sure how to handle 403 from server..Any comments guys? > harry > > > On Oct 12, 6:19 pm, jimgardener wrote: >> hi >> I was trying

Re: how to add login info while opening url

2010-10-12 Thread harryos
mm..I tried that..it gives 403 error.. I don't think putting login info in request will help..that will work only for 401 I believe.. not sure how to handle 403 from server..Any comments guys? harry On Oct 12, 6:19 pm, jimgardener wrote: > hi > I was trying to get data from differen

how to add login info while opening url

2010-10-12 Thread jimgardener
up/django-users/ topics') ==> ... Forbidden Your client does not have permission to get URL /group/django- users/topics from this server. ... I understand that it needs my login info..In a client program ,how do I add this?My django app maintains a list of urls entered by a user and at a use

Re: How to get an ajax call to return both QuerySet and paging info in Django

2010-09-28 Thread Dmitrij Petters
return HttpResponse(data, mimetype="application/json") > > > > Now I also want to return things like > > > > result_page.has_previous() > > result_page.has_next() > > result_page.paginator.count > > > > and so on. I for th

Re: How to get an ajax call to return both QuerySet and paging info in Django

2010-09-28 Thread Steve Holden
o return things like > > result_page.has_previous() > result_page.has_next() > result_page.paginator.count > > and so on. I for the life of me can't figure out how to get both > across in one response. I can't add this info to > result_page.object_list because then

How to get an ajax call to return both QuerySet and paging info in Django

2010-09-28 Thread Dmitrij
and so on. I for the life of me can't figure out how to get both across in one response. I can't add this info to result_page.object_list because then the serializer fails. If I something of the sort of simplejson.dumps(paging_info + result_page.object_list) Then in the javascrip

gunicorn not print debug info as run_server command

2010-09-17 Thread ferran
Howto config gunicorn for view in the console debug info, as the same, run_server command? Thanks in advanced -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To u

Passing view extra info from urls.py

2010-09-02 Thread r_f_d
I have looked at the django documentation and searched the group archive for my answer, and believe I know how this is supposed to work, I just cannot figure out why it is not working for me. I want to pass an extra keyword parameter to my view that contains a filter value, but it is not getting p

Form info about records numbering not updated and not working

2010-07-22 Thread Johnny
Dear All, I'm using a Django application and within quite all forms I have on the botton side some info about records present for that form/table yet inserted. Something like : "1,2,3,4,..3254 pages" and total "nr of records es. 5317" I did a massive upload o

Re: Form with ChoiceField that collects additional info with each choice

2010-05-03 Thread derek
On Apr 30, 4:00 pm, gsnyder2007 wrote: > I'm looking for a pointer to sample code or advice regarding what is > the best way to build a form that allows the user to select from > several options and supply additional textual input that is associated > with the option they chose, e.g. > > choices =

Form with ChoiceField that collects additional info with each choice

2010-04-30 Thread gsnyder2007
I'm looking for a pointer to sample code or advice regarding what is the best way to build a form that allows the user to select from several options and supply additional textual input that is associated with the option they chose, e.g. choices = [ ('option1', 'value1'), # additional text inp

Re: Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread Chris McComas
ved? > > On Mar 26, 9:27 am, derek wrote: > > > > > On Mar 26, 1:54 pm, Chris McComas wrote: > > > > I have to models, one is just a timestamp field and a file, the other > > > has some information. I need to create a view that'll allow our staff >

Re: Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread Chris McComas
Chris McComas wrote: > > > I have to models, one is just a timestamp field and a file, the other > > has some information. I need to create a view that'll allow our staff > > to upload a CSV and then it'll automatically take that info and save > > it into the seco

Re: Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread derek
On Mar 26, 1:54 pm, Chris McComas wrote: > I have to models, one is just a timestamp field and a file, the other > has some information. I need to create a view that'll allow our staff > to upload a CSV and then it'll automatically take that info and save > it into the

Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread Chris McComas
I have to models, one is just a timestamp field and a file, the other has some information. I need to create a view that'll allow our staff to upload a CSV and then it'll automatically take that info and save it into the second model. I found this http://blog.2theleft.la/2010/02/9/imp

Dynamic list of checkboxes from database info

2010-02-25 Thread Timothy Kinney
view for this. I couldn't figure out how to get change_list.html to display the item info, so I am trying to write my own (it's good practice anyway). *** My questions: 1) I don't understand how the InventoryFieldModel fields get populated in the database. Do I need to do this ex

Re: Development server exiting after entering login info in admin site

2010-01-06 Thread Karen Tracey
On Wed, Jan 6, 2010 at 6:12 PM, Pascal Vincent wrote: > I'm reposting this question here, since I didn't get any answer the > first time, and I'm struck there. > Where can I find help with this, should I rather post the problem to > another group? > > --- > I'm new to django, and was going through

Development server exiting after entering login info in admin site

2010-01-06 Thread Pascal Vincent
I'm reposting this question here, since I didn't get any answer the first time, and I'm struck there. Where can I find help with this, should I rather post the problem to another group? --- I'm new to django, and was going through the tutorial (on Mac Os X 10.4.11, installed latest stable version

Development server exiting after entering login info in admin site

2009-12-17 Thread Pascal Vincent
Hello, I'm new to django, and am just going through the tutorial (on Mac Os X 10.4.11, installed latest stable version from tarball). All seems to go well until I enter the damin login nd passwd, after which the development server just exits without notice. I've traced this back to autoreload.py

Re: reading iptc info

2009-12-03 Thread bax...@gretschpages.com
Thanks Daniel. I tried with PIL, but it was too slow for me. I think I have an entirely different solution, though. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscrib

Re: reading iptc info

2009-12-03 Thread Daniel Roseman
On Dec 3, 3:30 pm, "bax...@gretschpages.com" wrote: > Any suggestions on django/python code to read iptc info from images? A quick Google shows this, which uses PIL to parse the image and extract the IPTC data: http://mail.python.org/pipermail/image-sig/2001-November/001675.html --

reading iptc info

2009-12-03 Thread bax...@gretschpages.com
Any suggestions on django/python code to read iptc info from images? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to dj

[uploadify] passing user info to the signal handler

2009-11-09 Thread Mike Thon
The django-uploadify app allows bulk file uploads and for each uploaded file, it fires a signal and passes the uploaded file data to the receiver. The author's example marks all the uploaded files with a boolean (new_upload=True) and then returns a list of files where new_upload=True to the user

Re: how to return ajax info in one case, and redirect to a different url in another?

2009-09-15 Thread Margie
to > > post the form.  If my views.py code detects an error in the form, I > > want to return some info to the client and put it into the dom via > > jquery.  If there is no error, I want to redirect to another page. > > Can anyone advise me on the best way to do this?  I&#x

Re: how to return ajax info in one case, and redirect to a different url in another?

2009-09-15 Thread Margie
ect_to": "http://www.example.com/"} > and parse it out on the client side. > > Hope that helps, > Alex > > On Sep 15, 2:07 am, Margie Roginski wrote: > > > I have a situation where the user fills in a form and hits submit to > > post the form.  I

Re: how to return ajax info in one case, and redirect to a different url in another?

2009-09-15 Thread Alex Robbins
m.  If my views.py code detects an error in the form, I > want to return some info to the client and put it into the dom via > jquery.  If there is no error, I want to redirect to another page. > Can anyone advise me on the best way to do this?  I've succesfully > used $.post() to gra

Re: how to return ajax info in one case, and redirect to a different url in another?

2009-09-15 Thread justind
mit to > post the form.  If my views.py code detects an error in the form, I > want to return some info to the client and put it into the dom via > jquery.  If there is no error, I want to redirect to another page. > Can anyone advise me on the best way to do this?  I've succesfull

how to return ajax info in one case, and redirect to a different url in another?

2009-09-15 Thread Margie Roginski
I have a situation where the user fills in a form and hits submit to post the form. If my views.py code detects an error in the form, I want to return some info to the client and put it into the dom via jquery. If there is no error, I want to redirect to another page. Can anyone advise me on

Re: Is it secure "enough" to put login info in the session?

2009-09-09 Thread ristretto.rb
Hi Craig, I'm considering something like this Trigger: User comes to site for the first time 1. User requests to be a guest 2. system creates a guest User with randomness for username and password, authenticates and logs in the user, also sets a cookie in the browser with the id of the Guest

Re: Is it secure "enough" to put login info in the session?

2009-09-08 Thread Craig McClanahan
On Tue, Sep 8, 2009 at 10:20 PM, ristretto.rb wrote: > > Hi > > I want to have a guest concept.  You get instant access to my app. > There are limits.  But, you will be allowed to come back multiple > times before I require you to register. How do you plan to tell if the guest "came back"? The o

Is it secure "enough" to put login info in the session?

2009-09-08 Thread ristretto.rb
Hi I want to have a guest concept. You get instant access to my app. There are limits. But, you will be allowed to come back multiple times before I require you to register. When a user comes in as a guest, I will create a user with a bogus username, password and email, and put the user_id in

Serve dynamic info pages in the admin tool

2009-08-28 Thread Wim De Houwer
Hi All, I'm new to this list and maybe i'm asking a question which might have passed here already, but i couldn't find a answer on the archives. I have a Model which holds a list of people : This is the most important info out of that model: class Members(models.Model

links to dynamic form info

2009-08-15 Thread Noah Watkins
Looking for links to solutions to the following situation: class Book(models.Model): ... class Author(model.Models): book = models.ForeignKey(Book) ... I'd like to design a form for creating books that allows multiple authors to be added before the book form is submitted. Clearly some

Djang-admin : Display link to object info page instead of edit form , in records change list ?

2009-07-23 Thread Hamza
Hello , I am customizing Django-admin for an application am working on . so far the customization is working file , added some views . but I am wondering how to change the records link in change_list display to display an info page instead of change form ?! in this blog post :http

Error/Warning/Info reporting from field class possible?

2009-06-02 Thread Marek Blažek
Hi all, is there any possibility to inform user in a Django admin about anything from field class? Let's have some custom field on a model. And I would like to inform user about anything after he pushes save button in Django admin form. class SomeField(models.FileField): . .

Re: Using Request Info in Generic Views

2009-06-02 Thread Sieker Adi Jörg
Hi, you can use this: http://docs.djangoproject.com/en/dev/topics/auth/#authentication-data-in-templates to add the user to the template context. Then you cold write template tags to actually get the data you need using the user template variable. http://docs.djangoproject.com/en/dev/how

Re: Using Request Info in Generic Views

2009-06-02 Thread Keyton Weissinger
http://groups.google.com/group/django-users/browse_thread/thread/bde817d4620fdfec On Tue, Jun 2, 2009 at 7:33 AM, Keyton Weissinger wrote: > I know I'm in the minority, but I'm still having some trouble grokking > the details of generic views. I keep thinking I should be using them > but keep ru

Using Request Info in Generic Views

2009-06-02 Thread Keyton Weissinger
I know I'm in the minority, but I'm still having some trouble grokking the details of generic views. I keep thinking I should be using them but keep running into the same issue. Here's my problem: I am building a mgmt site for schools in which schools sign up for a monthly service fee. Most of my

Re: After a form submit, getting user info into an attribute while still using generic views?

2009-05-20 Thread Lior Gradstein
Wouldn't this be a *huge* security hole? Sure I can pass the user info in the extra_context, but that means that someone could build a new page (client-side) with any arbitrary value set in that hidden variable. I just found a question on stackoverflow (http://stackoverflow.com/ questions/6

Re: After a form submit, getting user info into an attribute while still using generic views?

2009-05-11 Thread George Song
On 5/11/2009 4:04 AM, Lior wrote: > Hello, > I'm using generic views to manage a model. In that model, when I > create an instance (and not when I update it), I need to set one of > its attribute (owner) to the currently logged in user value. I'd like > to continue using generic views, so can I do

After a form submit, getting user info into an attribute while still using generic views?

2009-05-11 Thread Lior
Hello, I'm using generic views to manage a model. In that model, when I create an instance (and not when I update it), I need to set one of its attribute (owner) to the currently logged in user value. I'd like to continue using generic views, so can I do this without creating a view? Is that possi

Getting user info into an attribute while still using generic views?

2009-04-30 Thread Lior
Hello, I'm using generic views to manage a model. In that model, when I create an instance (and not when I update it), I need to set one of its attribute (owner) to the currently logged in user value. I'd like to continue using generic views, so can I do this without creating a view. Is that p

  1   2   3   >