RE: How to check the text field values are in my database or not ?

2011-03-31 Thread Chris Matthews
Hi Nge, Use pgAdmin that was installed with your postgresql. Open a connection to your database->Schema->Public->Tables. Right-click on your table and click on View data and then take one of the view options. You can also open a SQL window and run the SQL select yourself. See pgAdmin's help.

Re: DjangoCon US 2011

2011-03-31 Thread Shawn Milochik
The event will definitely take place in Portland, Oregon in September. On Apr 1, 2011 12:15 AM, "Vinicius Mendes" wrote: > > I work for a company that assist employees to go to events to learn about technologies they use. They always plan wich events their employees will attend in the begining of

Re: DjangoCon US 2011

2011-03-31 Thread Vinicius Mendes
I work for a company that assist employees to go to events to learn about technologies they use. They always plan wich events their employees will attend in the begining of the year. I am trying to go to DjangoCon US with their help so I need to know if the event will take place or not. Atenciosam

Re: Serve a tracking pixel via Django

2011-03-31 Thread Javier Guerra Giraldez
On Thu, Mar 31, 2011 at 7:18 PM, Russell Keith-Magee wrote: > Sure. Write a view that returns the content. It's 3 lines of code (a > couple more if you count imports and whitespace). Added bonus -- it's > actually more efficient than serve(), because it doesn't impose a disk > access overhead ever

Re: Strange admin changelist bug with list_editable and FK to User in 1.2.3

2011-03-31 Thread Nan
Ah, that does look like it could be the same thing. Thank you! The ticket suggests it was backported, so I'll try upgrading to 1.2.5. On Mar 31, 7:41 pm, Karen Tracey wrote: > On Thu, Mar 31, 2011 at 3:35 PM, Nan wrote: > > Any idea what might be going on?  I'm using 1.2.3 at the moment, and

How to check the text field values are in my database or not ?

2011-03-31 Thread Nge Nge
Hi All! How can I check the text field value in my database ? For example, I type user name and password from text box on my web page. Then I want to check these values are in my database or not. How should I do? I am using postgresql database. Thanks Nge Nge -- You received this message becau

Re: WxPython and django

2011-03-31 Thread Mike Ramirez
On Thursday, March 31, 2011 06:34:42 pm Aref Nammari wrote: > Hi Calvin, I think that there is some misunderstanding about what my > question was about. Let me try to clarify. Wxpython is a module which is > run just like any other python module. It is great for rendering forms, > widgets, frames

Re: Need help: request.POST.copy() ?

2011-03-31 Thread hank23
Thanks. I will recheck my code and see if I can fix it. If I'm not successful in fixing it, I'll be back on tomorrow asking some more questions. Thanks again for the help and suggestions. On Mar 31, 9:12 pm, Sam Walters wrote: > Yes, Id really need to see some code to work it out. > > A bit hard

best way to define a many-to-one relationship using FreeRadius' existing DB schema

2011-03-31 Thread yolabingo
Thanks in advance for any insight or suggestions. I have a simple web interface for a freeradius mysql database. It uses the Django admin interface exclusively, and makes it simple to manage Radius usernames, passwords, preferences etc, which we use for authentication on WiFi hotspots. My questi

Re: Need help: request.POST.copy() ?

2011-03-31 Thread Sam Walters
Yes, Id really need to see some code to work it out. A bit hard to work out wether you're returning the request.POST.copy() and wether this is instantiated in a new form instance and returned. Eg: if form validation fails. Or wether you are having trouble redisplaying the original request.POST da

Re: WxPython and django

2011-03-31 Thread Aref Nammari
Hi Calvin, I think that there is some misunderstanding about what my question was about. Let me try to clarify. Wxpython is a module which is run just like any other python module. It is great for rendering forms, widgets, frames etc...and it has within it an html module. You can embed wxpython wi

Re: Need help: request.POST.copy() ?

2011-03-31 Thread hank23
Sorry the last example I gave maybe wrong. I think I'm actually getting the data back out using the cleaned_data. I'm trying to do this from memory, since this is a work problem and I've been struggling with it since the middle of this afternoon and it's been very frustrating. On Mar 31, 8:24 pm

Re: Need help: request.POST.copy() ?

2011-03-31 Thread hank23
Currently I have logic in place that makes a copy of request.POST so it can put data from a record using a key, gotten from the previous bunch of POSTed data, on the screen for display purposes. This all works fine. But when I go in and alter some of the data being displayed then the next time I su

Re: Need help: request.POST.copy() ?

2011-03-31 Thread Sam Walters
Hi hank23 request.POST would be immutable. "QueryDict instances are immutable, unless you create a copy() of them. That means you can't change attributes of request.POST and request.GET directly." http://docs.djangoproject.com/en/dev/ref/request-response/ So I'm > wondering if there is somethin

Need help: request.POST.copy() ?

2011-03-31 Thread hank23
I need to know when I can or should use request.POST.copy() when processing screens, as opposed to when not to use it. I've used it some, on one screen in particular, which seems to work fine for displaying the data that I want to display, when I put the data on the screen programatically from with

Re: WxPython and django

2011-03-31 Thread Calvin Spealman
Then on what machine would the wx version run on? The user's machine or the server? If on the user's machine, how does it talk to the database? If on the server, how does the user interact with it? On Thu, Mar 31, 2011 at 9:04 AM, Aref Nammari wrote: > Calvin, > > The database as well as the djan

Re: Serve a tracking pixel via Django

2011-03-31 Thread Russell Keith-Magee
On Fri, Apr 1, 2011 at 8:09 AM, Adam Nelson wrote: > We have one static file that needs to be served after business logic has run > (i.e. log a view on a specific url based on a unique code).  We used to use > serve() in production.  This has always been frowned upon but with Django > 1.3, the err

Serve a tracking pixel via Django

2011-03-31 Thread Adam Nelson
We have one static file that needs to be served after business logic has run (i.e. log a view on a specific url based on a unique code). We used to use serve() in production. This has always been frowned upon but with Django 1.3, the errors are worse. Can one return an image in any other way?

Re: DjangoCon US 2011

2011-03-31 Thread Steve Holden
I have already started nagging people about this. It's only just over five months to go, and it's definitely time the CfP went out. Expect to see movement in the next two weeks. Regards Steve On Mar 31, 2011 6:19 PM, "Shawn Milochik" wrote: > It's a bit early, in the year, but I'd expect somethin

Re: Strange admin changelist bug with list_editable and FK to User in 1.2.3

2011-03-31 Thread Karen Tracey
On Thu, Mar 31, 2011 at 3:35 PM, Nan wrote: > Any idea what might be going on? I'm using 1.2.3 at the moment, and > the client doesn't want to authorize the work to upgrade to 1.3 just > yet, so I can't determine whether it's version-specific. > Sounds rather like: http://code.djangoproject.co

Re: DjangoCon US 2011

2011-03-31 Thread Shawn Milochik
It's a bit early, in the year, but I'd expect something in the next couple of months here: http://djangocon.us/ Since it's not till September there's still plenty of time. That said, if @holdenweb is reading this -- any updates? ^_^ Shawn -- You received this message because you are subscrib

Re: south for django

2011-03-31 Thread Jason Culverhouse
On Mar 31, 2011, at 1:18 PM, jay K. wrote: > > I think i found the source of all problems > > I am not a python expert, so I was wondering if anybody can tell me what this > code means > > // beginning of code > > from django.db import models > > > class TranslationForeignKey(models.Foreig

Re: about url tag

2011-03-31 Thread Lic . José M . Rodriguez Bacallao
ok, thanks everyone 2011/3/31 Łukasz Rekucki : > On 31 March 2011 18:50, Lic. José M. Rodriguez Bacallao > wrote: >> well, I don't know if this is ok, but I solved the problem adding a >> name='help_subject' tu the urlconf line > > Sorry, I couldn't answer earlier, but yes - that is exactly what

Re: south for django

2011-03-31 Thread jay K.
I think i found the source of all problems I am not a python expert, so I was wondering if anybody can tell me what this code means // beginning of code *from django.db import models class TranslationForeignKey(models.ForeignKey): """ """ pass * // end of code This piece of code h

Re: DjangoCon US 2011

2011-03-31 Thread Micah Carrick
I was wondering about that too seeing as how I live in Portland. On Thu, Mar 31, 2011 at 11:49 AM, Vinicius Mendes wrote: > Hi, I am planing to go to DjangoCon US 2011 announced in this blog post: > http://www.djangoproject.com/weblog/2010/nov/22/djangocon-us-2011/ but > it's an old post and

south for django

2011-03-31 Thread jay K.
Hello, I've been using south to migrate a database I followed all the commands to make the migrations in south (--initial and --auto), all of this, after making my desired changes in modes.py but when I refresh my page I still get a "Error 505" messages I've checked spelling mistakes etc but fo

Re: south for django

2011-03-31 Thread jay K.
that's weird, because I keep getting the same error the field that I'm using is not custom (models.TextField) it may be located somewhere else On Thu, Mar 31, 2011 at 4:47 PM, Shawn Milochik wrote: > You don't need that inspection feature for fields known to Django. Just > custom types. >

Re: south for django

2011-03-31 Thread Shawn Milochik
You don't need that inspection feature for fields known to Django. Just custom types. -- 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 group, send email

Re: south for django

2011-03-31 Thread jay K.
All I did to change my models.py, was to add the following line *map_text = models.TextField( 'Map text', blank = True, null = False, help_text = 'text on the subpage "map"')* As you can see, I intend to add a new text area in my models.py At the bottom of the page, I type this code *from south

Re: idiotic foreignkey error

2011-03-31 Thread Nick
I needed to declare fk_name in the inline formsets. I still stand by the fact that it's an idiotic error message. Not helpful at all. On Mar 31, 2:26 pm, Nick wrote: > sorry, they have unique names. When i was writing this message out I > messed them up. the names are arace, brace and crace. > >

Re: south for django

2011-03-31 Thread Shawn Milochik
Are you typing your app name in camelCase? Try all-lower. Are you using any model field types other than the ones that come with Django? -- 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@googlegro

Strange admin changelist bug with list_editable and FK to User in 1.2.3

2011-03-31 Thread Nan
Hi folks... I've got a model that looks roughly like so: class Account(admin.ModelAdmin): type = models.ForeignKey(AccountType, help_text='Type of account. Determines what features are available to the user.') user = models.ForeignKey(User, unique=True, primary_key=True) design = mode

south for django

2011-03-31 Thread jay K.
hello, I've downloaded and installed south successfully to manage changes with my models.py file I type the following command *python manage.py schemamigration myApp --auto* then, get the following message *You cannot use --auto on an app with no migrations. Try --initial.* So I do as stated,

Re: idiotic foreignkey error

2011-03-31 Thread Nick
sorry, they have unique names. When i was writing this message out I messed them up. the names are arace, brace and crace. I think this has something to do with some relic inlinde formsets I was using a while ago. On Mar 31, 2:19 pm, Shawn Milochik wrote: > They need unique related_name values.

Re: idiotic foreignkey error

2011-03-31 Thread Shawn Milochik
They need unique related_name values. -- 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 group, send email to django-users+unsubscr...@googlegroups.com. F

idiotic foreignkey error

2011-03-31 Thread Nick
I have a model with 3 foreignkeys to another model. This has never been an issue for me before but now it's throwing an error: has more than 1 ForeignKey to My model looks like this: a_race = models.ForeignKey('Race', related_name='arace', blank=True) b_race = models.ForeignKey('Race', related

Change the Queryset order to add "Other" at the end

2011-03-31 Thread Álex González
Hi! I don't know if this is the best way to do it (change the QuerySet), but I have a model order by name, and when I use it as a foreign key () I want to write "Other" as the last to choose. Regards, Álex Gonzálkez -- @agonzalezro Please, don't send me files w

DjangoCon US 2011

2011-03-31 Thread Vinicius Mendes
Hi, I am planing to go to DjangoCon US 2011 announced in this blog post: http://www.djangoproject.com/weblog/2010/nov/22/djangocon-us-2011/ but it's an old post and I haven't seen any other posts about it since this announcement. Will this event take place? Or it will be only the DjangoCon Europe?

Re: Dynamically generating form fields

2011-03-31 Thread Andre Terra
I've been fighting to get this to work for me to. I can point you to a few articles that are helping me achieve what I want. There's some black magic involved, but once you play with the code for a while you'll know what it does. http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/ http://douga

Re: new text area in django admin page

2011-03-31 Thread jay K.
thanks, it works fine!! I can't believe I spent 2 days trying to sort out my database issues greatly appreciate your advice :) On Thu, Mar 31, 2011 at 3:04 PM, Shawn Milochik wrote: > > On Mar 31, 2011 1:55 PM, "jay K." wrote: > > > > Thanks for the advice, > > > > But I am not exactly migrat

Re: new text area in django admin page

2011-03-31 Thread Shawn Milochik
On Mar 31, 2011 1:55 PM, "jay K." wrote: > > Thanks for the advice, > > But I am not exactly migrating databases, just modifying an existing one > > And that's exactly what South is for. > On Thu, Mar 31, 2011 at 2:50 PM, Shawn Milochik wrote: >> >> On Thu, Mar 31, 2011 at 1:39 PM, jay K. wrote

Re: new text area in django admin page

2011-03-31 Thread jay K.
Thanks for the advice, But I am not exactly migrating databases, just modifying an existing one On Thu, Mar 31, 2011 at 2:50 PM, Shawn Milochik wrote: > On Thu, Mar 31, 2011 at 1:39 PM, jay K. > wrote: > > > > > > > > So what am I doing wrong? > > > > Use South for your database migrations:

Re: new text area in django admin page

2011-03-31 Thread Shawn Milochik
On Thu, Mar 31, 2011 at 1:39 PM, jay K. wrote: > > > So what am I doing wrong? > Use South for your database migrations: http://south.aeracode.org/ Otherwise you have to write raw SQL statements to modify the database, or delete the entire database and use syncdb to re-create it to match you m

Re: new text area in django admin page

2011-03-31 Thread jay K.
that right, I've provided a very vague question I have to modify an existing models.py file. What I basically want to do is to add a new Text Area in the django admin page so I can add a new subpage. Here is what I do step by step 1) I open models.py and insert the following code: // start of c

Re: about url tag

2011-03-31 Thread Łukasz Rekucki
On 31 March 2011 18:50, Lic. José M. Rodriguez Bacallao wrote: > well, I don't know if this is ok, but I solved the problem adding a > name='help_subject' tu the urlconf line Sorry, I couldn't answer earlier, but yes - that is exactly what you should do. Class-based views can't be referenced by u

Re: Dajax, what do you think about it?

2011-03-31 Thread LJ
My opinion would be to add it in. But, I am not as experienced with Dajaxice as others may be. I just know it took me a long time to figure out how to manually add it and get it working. It wasn't until I learned how to use virtualenv that I was able to get Dajaxice installed and working correctl

Re: about url tag

2011-03-31 Thread Micah Carrick
You have created a "Named URL pattern". Check out: http://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns On Thu, Mar 31, 2011 at 9:50 AM, Lic. José M. Rodriguez Bacallao < jmr...@gmail.com> wrote: > well, I don't know if this is ok, but I solved the problem adding a > name='h

Screen Fields and Dropdowns Not Capturing Changes To Data on Edit Screen

2011-03-31 Thread hank23
I have a screen with a form on it and the text fields values and the dropdown box selected values that are changed do not appear to be posted back to the view. How is this possible? When I go to the screen originally I see all of the data that supposed to be there (often times much of it is from th

Re: I want Develop django poll app tuturial

2011-03-31 Thread cha
thanx I have Reached the following total_poll_votes = sum(c.votes for c in p.choice_set.all()) poll_votes = ?? vote_percentage = (poll_votes/total_poll_votes)*100 i just need poll_votes -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: authentication switching mid-session

2011-03-31 Thread Chris Curvey
there's no cacheing in front of the application server, if that's what you're asking. The app server does do some cacheing on its own, but not related to sessions or users. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: about url tag

2011-03-31 Thread Lic . José M . Rodriguez Bacallao
well, I don't know if this is ok, but I solved the problem adding a name='help_subject' tu the urlconf line On Thu, Mar 31, 2011 at 12:37 PM, Lic. José M. Rodriguez Bacallao wrote: > sorry, I have atypo in the previous code, this is the las line: > > (r'(?P[0-9A-Za-z-]+)', HelpSubject.as_view()),

Re: about url tag

2011-03-31 Thread Lic . José M . Rodriguez Bacallao
sorry, I have atypo in the previous code, this is the las line: (r'(?P[0-9A-Za-z-]+)', HelpSubject.as_view()), On Thu, Mar 31, 2011 at 12:36 PM, Lic. José M. Rodriguez Bacallao wrote: > I am getting a this error: > TemplateSyntaxError at /help/ > > Caught NoReverseMatch while rendering: Reverse

Re: about url tag

2011-03-31 Thread Lic . José M . Rodriguez Bacallao
I am getting a this error: TemplateSyntaxError at /help/ Caught NoReverseMatch while rendering: Reverse for 'apps.help.views.HelpSubject.as_view()' with arguments '()' and keyword arguments '{'slug': u'gdsgdgdg'}' not found. On Thu, Mar 31, 2011 at 12:33 PM, Lic. José M. Rodriguez Bacallao wrote

Re: about url tag

2011-03-31 Thread Lic . José M . Rodriguez Bacallao
I mean url tag: {% url ... %} this is what I am using: Leer mas... directory structure: site |--> url.py |--> apps (included in the python path) |--> help |--> models.py |--> views.py |--> urls.py where: "apps" is a package (is in the pyt

Re: check for existence in bulk

2011-03-31 Thread dmitry b
thanks, that's what I ended up using. On Mar 30, 11:58 am, Jason Culverhouse wrote: > You could use values_list  and flat as in: > >    User.objects.filter(username__in =['jason', 'was', > 'here']).values_list('username', flat=True) > > returns a list: > >    [u'jason', u'was'] > > After that y

Re: about url tag

2011-03-31 Thread Łukasz Rekucki
On 31 March 2011 17:16, Lic. José M. Rodriguez Bacallao wrote: > use the tag: > url What do you mean by that ? Do you mean the {% url %} template tag, or the `url` function commonly used in urls.py module. Give us some examples of what you want to achieve and what problems you have. -- Łukasz Re

about url tag

2011-03-31 Thread Lic . José M . Rodriguez Bacallao
hi folks, I was using django 1.2.5 and generic views to some simple things, now, I upgrade to django 1.3 and I am trying to use the tag: url but it doesn't seems to work with django class based generic views. How to use this tag correctly? -- Lic. José M. Rodriguez Bacallao Centro de Biofisica Me

Re: staticfile app question

2011-03-31 Thread Javier Guerra Giraldez
On Thu, Mar 31, 2011 at 9:55 AM, Micah Carrick wrote: > IMO, relative URLs are preferable in external stylesheets. +1 -- Javier -- 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.co

Re: new text area in django admin page

2011-03-31 Thread Daniel Roseman
On Thursday, March 31, 2011 3:35:15 PM UTC+1, jay K. wrote: > > hello > > how can i add a new text field in the django admin area > > i want to create a new subpage > > thanks > > > Before asking a question, have a think about what you actually want to ask. Then think about whether you're providi

Re: staticfile app question

2011-03-31 Thread Micah Carrick
I had to look up "grok". Guess I'm out of the loop. Anyway, one other pitfall with using absolute URLs in CSS is that you can break SSL (https) when you have common CSS for both the SSL and non-SSL pages. So watch out for that. IMO, relative URLs are preferable in external stylesheets. In fact, th

Re: I want Develop django poll app tuturial

2011-03-31 Thread Sithembewena Lloyd Dube
^^ This would apply per poll. On Thu, Mar 31, 2011 at 4:50 PM, Sithembewena Lloyd Dube wrote: > Hi there, > > I think that you would need to get the count of votes for each poll, add > all votes and use the formula: > > vote_percentage = (poll_votes/total_poll_votes)*100 > > > > On Thu, Mar 31, 2

Re: I want Develop django poll app tuturial

2011-03-31 Thread Sithembewena Lloyd Dube
Hi there, I think that you would need to get the count of votes for each poll, add all votes and use the formula: vote_percentage = (poll_votes/total_poll_votes)*100 On Thu, Mar 31, 2011 at 8:33 AM, cha wrote: > ok in beginning > how i can get percentage for each vote ? > > this result code >

new text area in django admin page

2011-03-31 Thread jay K.
hello how can i add a new text field in the django admin area i want to create a new subpage thanks -- 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 g

Re: Hi multilingual charfields?

2011-03-31 Thread Stuart MacKay
One more vote for django-transmeta, http://code.google.com/p/django-transmeta/, it's really simply to use. I have used in a project for names and small sections of text. The admin integration is nice as it allows you to view the fields side-by-side so it makes the process of translation easy to

EuroPython 2011: call for paper is ending - Please spread the word

2011-03-31 Thread Palla
Hi all Django users, I'm Francesco and I am writing on behalf of "Python Italia APS", a no- profit association promoting EuroPython conference. (www.europython.eu) Europython End of Call for Presentations is April 6th. I'd like to ask to you to forward this mail to anyone that you feel may be inte

Re: wsgi configuration

2011-03-31 Thread george
the path should be: path='/home/yongzhen/workspace/www' for iStore.settings to resolve On Mar 31, 1:40 pm, yongzhen zhang <4...@live.cn> wrote: > Hi, > I am using apache + wsgi for my Django project. But now i am a bit > confused. The project is under /home/yongzhen/workspace/www . I put > the a

Re: new subpage in django

2011-03-31 Thread Fatrix
Hi Jay You could also have a look at [1] Stephen McDonald's Mezzanine. Mezzanine is a CMS built using the django framework.. I am very happy with it. [1] http://mezzanine.jupo.org/ On 30 Mrz., 21:16, "jay K." wrote: > Hello, > > How do you create a new subpage in django? > > thanks -- You rec

Re: WxPython and django

2011-03-31 Thread Aref Nammari
Calvin, The database as well as the django app sits on a server (internal--this is not meant for public access by the general public). To access the app users would have to login to the server through http and run the app from there. On 3/31/11, Calvin Spealman wrote: > Aref, > > The question I

Re: How to disable default authentication/messaging system?

2011-03-31 Thread sanderkrause
In addition to my last message, I have also tried specifying the apps with the project name in front of it: 'uninspiring.auth' instead of just 'auth' in order to prevent confusion that the specified 'auth' module is in fact my own. I don't really want to go through the process of renaming the mod

Re: WxPython and django

2011-03-31 Thread Calvin Spealman
Aref, The question I would have is where your database sits. Is it supposed to sit on a central server? In a website, your database only needs to be accessed by machine rendering the pages. If you want the same database talking to desktop applications, you need to let those apps talk to the databa

wsgi configuration

2011-03-31 Thread yongzhen zhang
Hi, I am using apache + wsgi for my Django project. But now i am a bit confused. The project is under /home/yongzhen/workspace/www . I put the apache folder under www, and it is same level with the project "iStore". i write django.wsgi inside apache like this: import os import sys path='/home/yongz

Re: How to disable default authentication/messaging system?

2011-03-31 Thread sanderkrause
My INSTALLED_APPS looks like this currently. Note that I did not have this same problem before, when I was using Django 1.2. I recently upgraded to Django 1.3. Could this be part of the problem? The only other difference between now and then is that I used to have the entries for contrib.auth and

Re: Newbie question - modelform / dropdown list

2011-03-31 Thread Daniel Roseman
On Thursday, March 31, 2011 12:43:32 PM UTC+1, rune wrote: > > Hi all, > > I just started with Django, done the tutorial, now I'd like to create > a page were users can put > requests in a queue. Lets say the fields to display are user, date, > filepath, date to load. > I can create this with

Re: Newbie question - modelform / dropdown list

2011-03-31 Thread Kenneth Gonsalves
On Thu, 2011-03-31 at 04:43 -0700, rune wrote: > I just started with Django, done the tutorial, now I'd like to create > a page were users can put > requests in a queue. Lets say the fields to display are user, date, > filepath, date to load. > I can create this with a modelform, but I'd like the u

Newbie question - modelform / dropdown list

2011-03-31 Thread rune
Hi all, I just started with Django, done the tutorial, now I'd like to create a page were users can put requests in a queue. Lets say the fields to display are user, date, filepath, date to load. I can create this with a modelform, but I'd like the user field to be a drop down list with values, re

make_messages verbosity

2011-03-31 Thread tavis
Just a small thing, I've noticed the default verbosity in the make_messages function is the string '1'. The function never converts this to an int, so if the function is called elsewhere without specifying a verbosity level then when it checks to see if verbosity is > 1 it always returns true. Whe

Issues with post_save signals on test execution?

2011-03-31 Thread rikuthero...@gmail.com
Hi, After migrate an application from Django 1.1 to Django 1.3 I noticed that some unittest was failing. Debugging I get to the point that the post_save functions didn't execute on test running. If I see the receivers on the test execution: ipdb> from django.db.models import signals ipdb> signals

Re: Please tell how to implement a new project?

2011-03-31 Thread Daniel Roseman
On Thursday, March 31, 2011 11:20:31 AM UTC+1, GOUTAM KUMAR RANA wrote: > > Please tell how to implement a new project? > > I m new to Django projects . if possible give me a graphical idea of > using Django from the base to the output. > > My target is to make an inventory for a particular shop

Re: Please tell how to implement a new project?

2011-03-31 Thread Kenneth Gonsalves
On Thu, 2011-03-31 at 03:20 -0700, GOUTAM KUMAR RANA wrote: > I m new to Django projects . if possible give me a graphical idea of > using Django from the base to the output. please do the 4 part tutorial first. It will give you all the knowledge you need to do this. -- regards KG http://lawgon.

Re: Trouble raising forms.ValidationError in save() override in admin.py

2011-03-31 Thread Daniel Roseman
On Thursday, March 31, 2011 11:09:17 AM UTC+1, Lloyd Dube wrote: > > Hi Shawn, > > Thanks for the feedback. I read the docs and defined a clean_audio_file > method in my ModelAdmin class. That's not what the docs say. They say you should create it on the Form. And where did you get the idea tha

Re: How to disable default authentication/messaging system?

2011-03-31 Thread Daniel Roseman
On Thursday, March 31, 2011 10:10:27 AM UTC+1, sanderkrause wrote: > > Because I'm using my own authentication and authorization system, I > would like to completely disable these standard apps from Django. > > I've tried removing the relevant lines from MIDDLEWARE_CLASSES and > INSTALLED_APPS,

Please tell how to implement a new project?

2011-03-31 Thread GOUTAM KUMAR RANA
Please tell how to implement a new project? I m new to Django projects . if possible give me a graphical idea of using Django from the base to the output. My target is to make an inventory for a particular shop. When the user enters the admin page for the first time it should be asked to enter t

datatrans

2011-03-31 Thread ug Charlie
How to use datatrans? Is there anyone can help me? I want to translate data from my db. lol -- 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 group, sen

How to disable default authentication/messaging system?

2011-03-31 Thread sanderkrause
Because I'm using my own authentication and authorization system, I would like to completely disable these standard apps from Django. I've tried removing the relevant lines from MIDDLEWARE_CLASSES and INSTALLED_APPS, but when I use the syncdb command, the default tables that come with the default

Re: WxPython and django

2011-03-31 Thread Aref
Thanks Mike. Yes I am following the philosophy of separating things. The "GUI" is separate and resides in the templates and it simply used for data display and data entry. I keep everything modular and try not to mix functions and modules. I'll follow your ideas and see how things work. Thanks for

Re: WxPython and django

2011-03-31 Thread Aref
Thanks Mike. Yes I am following the philosophy of separating things. The "GUI" is separate and resides in the templates and it simply used for data display and data entry. I keep everything modular and try not to mix functions and modules. I'll follow your ideas and see how things work. Thanks for

Re: WxPython and django

2011-03-31 Thread Kenneth Gonsalves
On Thu, 2011-03-31 at 03:30 -0700, Aref wrote: > That's what I am looking for. Using wxpython to render some pages > (templates) especially formatting data from the database. Is there > some code snippets I can look at or maybe a tutorial to help me figure > out how to do this? use standard djang

Re: WxPython and django

2011-03-31 Thread Aref
That's what I am looking for. Using wxpython to render some pages (templates) especially formatting data from the database. Is there some code snippets I can look at or maybe a tutorial to help me figure out how to do this? thanks On Mar 30, 11:28 pm, Kenneth Gonsalves wrote: > On Wed, 2011-03-30

RE: staticfile app question

2011-03-31 Thread Chris Matthews
Hi, I liked this explanation/convention http://forum.webfaction.com/viewtopic.php?id=4345 (I opted for this one). If you want more consider django-css https://github.com/dziegler/django-css#readme (I have not tried this). Regards Chris -Original Message- From: django-users@googlegroup

Re: Trouble raising forms.ValidationError in save() override in admin.py

2011-03-31 Thread Sithembewena Lloyd Dube
Hi Shawn, Thanks for the feedback. I read the docs and defined a clean_audio_file method in my ModelAdmin class. I dropped the Podcast table, made the field not mandatory in the model and did a syncdb (to test my clean method). Still a podcast can be saved without the audio_file: the code in the

Re: How to store multiple instances of a single object in the database

2011-03-31 Thread Ryan Osborn
No problem, glad to have helped :) -- 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 group, send email to django-users+unsubscr...@googlegroups.com. For

Re: Invalid values in a form cause validation to fail

2011-03-31 Thread ALJ
Hi Karen, Thanks. It looks like I need to upgrade. I was putting it off. Neil On Mar 31, 2:35 am, Karen Tracey wrote: > On Wed, Mar 30, 2011 at 6:34 AM, ALJ wrote: > > Hi Karen, > > > Here is an example that I use to replicate the error: > > > view >> >

'NoneType' object has no attribute 'set_cookie'

2011-03-31 Thread Santiago Caracol
Hello, I didn't use a certain Django project for a few weeks. Now I wanted to continue developing the project and, as it usually happens with software that has been left alone for a while, it didn't work anymore. I am not aware of having changed anything. The system administrator may, of course, h

Re: Hi multilingual charfields?

2011-03-31 Thread Xavier Ordoquy
Hi, Le 31 mars 2011 à 09:34, Mika Sjöman a écrit : > Hi > > The content of my models have fields that need to be translated in the django > admin in several languages. > > I found it to be a major hassle to get it working. Since django is having > internationalization built in, why does it no

Re: Hi multilingual charfields?

2011-03-31 Thread bruno desthuilliers
On 31 mar, 09:34, Mika Sjöman wrote: > Hi > > The content of my models have fields that need to be translated in the > django admin in several languages. How many ? Three or two dozen ? > I found it to be a major hassle to get it working. If you have no more than 2 or 3 languages to support, dj

Hi multilingual charfields?

2011-03-31 Thread Mika Sjöman
Hi The content of my models have fields that need to be translated in the django admin in several languages. I found it to be a major hassle to get it working. Since django is having internationalization built in, why does it not also allow you to easily mark model fields for translation? I thin

RE: multiline TextField

2011-03-31 Thread Chris Matthews
By using the Textarea widget: class SomeForm(forms.Form): description = forms.CharField(widget=forms.Textarea()) Regards Chris -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of electrocoder Sent: 31 March 2011 00:18 To: Djang