Re: Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread Chen Xu
Thanks a lot.. That does solve my problem. On Fri, Feb 11, 2011 at 7:39 AM, JHeasly wrote: > You need to closely read the second sentence of template_object_name item > in the *Optional arguments* section of the generic view bject_list >

Re: maintenance mode UI

2011-02-11 Thread Cal Leeming [Simplicity Media Ltd]
Hi, Maintenance mode pages should be completely self contained. You could even go to the extent of storing the images in base64 within the HTML (I have seen this done somewhere), but personally I have them hosted on a CDN somewhere. Cal On Sat, Feb 12, 2011 at 4:20 AM, vamsy krishna

Re: compiled regex as attribute

2011-02-11 Thread Doug Ballance
Have you done any performance testing? From what I understand pythons re.compile caches internally, so after the first call subsequent calls will use the pre-compiled expression. Serializing the compiled expression using pickle isn't 'free', so I'm wondering how much difference there is in

Google App Engine supports Django 1.2!

2011-02-11 Thread Shawn Milochik
http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes Almost in time for Django 1.3's release. ;o) -- 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

maintenance mode UI

2011-02-11 Thread vamsy krishna
Hi, I've set up the django maintenance mode for my site to display a custom message to the users. The message gets picked up fine but all the relevant styling does not get loaded. It would be really nice if it can load the styling info. Any suggestions? Regards, Vamsy -- You received this

Login, Password Recovery, etc

2011-02-11 Thread Mike Seidle
Quick question - is there an application or examples of completely implemented user authentication templates? It's getting old trying to devine how to set up templates for password recovery and registration. Seems to me that this should (and probably is) included with the rest of the

Re: Best forum/group for Django Help

2011-02-11 Thread Mike Seidle
On Thursday, February 10, 2011 03:40:24 am SimpleDimple wrote: > Not a prank, it was just what I thought..., it is always better to ask > than assume...thanks for confirmation that this is the best one > around. You might want to check your settings for the group - there are literally

_id cannot be null

2011-02-11 Thread keeper
Hello guys, executing this code below from shell is ok, updates database and inserts the proper values: sub_domains(user_id=user_list.objects.get(user_id=1001), domain=domains.objects.get(domain='domain'), sub_domain='boqo8').save() But, trying to call the same code within a django views.

Re: compiled regex as attribute

2011-02-11 Thread Javier Guerra Giraldez
On Fri, Feb 11, 2011 at 11:18 AM, Santiago Caracol wrote: > There is no point in storing the regex strings in a pickle field. I > already have the regex strings in ordinary django fields. What I want > to store is *compiled* regular expressions in order to be able to

Re: Looking for IDE + FTP

2011-02-11 Thread stevenelliott . py
I'd have to agree, I think PyCharm is far superior to the competition. I was using Aptana 3 Beta for awhile but I think PyCharm is outstanding. Sent from my Verizon Wireless BlackBerry -Original Message- From: Axel Bock Sender: django-users@googlegroups.com Date:

Re: Looking for IDE + FTP

2011-02-11 Thread Axel Bock
hm, I'm using pycharm right now, and I really think it "kicks ass" ;) havent looked at the other "usual" ones (komodo, wing, eclipse, etc.) for a long time, though. about ftp ... looks like it: http://www.jetbrains.com/pycharm/webhelp/deployment-connection-tab.html cheers, axel. 2011/2/11

Re: Looking for IDE + FTP

2011-02-11 Thread jose antunes
Try Komodo Edit 5 It suports ftp/sftp, it's free and supports python Great editor just no design view. On Fri, Feb 11, 2011 at 9:55 PM, Jon J wrote: > As for a suggestion with an editor, I've been using gedit + extensions > for my whole career. It's fast,

Re: Looking for IDE + FTP

2011-02-11 Thread Jon J
As for a suggestion with an editor, I've been using gedit + extensions for my whole career. It's fast, lightweight, and supports some great syntax highlighting. Auto complete isn't quite as good as DW but it's a tradeoff for linux compatibility and less bloat. On Fri, Feb 11, 2011 at 1:29 PM, Jon

Re: Integrating existing soap based applications

2011-02-11 Thread Arun K.Rajeevan
I tried SOAPpy and pysimplesoap in terminal. I only got later to work. from SOAPpy import WSDL WSDLFILE = "https://api.bullhornstaffing.com/webservices-1.1/?wsdl; _server = WSDL.Proxy(WSDFILE) #it throws an exception here. wsdl is a complex one #other library from pysimplesoap.client import

Re: Need to combine 2 QuerySets without losing ability to order_by foreign key afterwards

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 9:19 PM, Shawn Milochik wrote: > On Fri, Feb 11, 2011 at 4:15 PM, Tom Evans wrote: >> >> Have a read of this: >> >> http://www.secnetix.de/olli/Python/lambda_functions.hawk >> > > That's funny -- I did a quick Google search

Re: Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread hank23
Ok below is my tables which has the "emailcomments" boolean field defined for it: class Comment(models.Model): title = models.CharField(max_length=1,choices=TITLE_CHOICES) firstname = models.CharField(max_length=15) lastname = models.CharField(max_length=25) commenttext =

Re: Need to combine 2 QuerySets without losing ability to order_by foreign key afterwards

2011-02-11 Thread Shawn Milochik
On Fri, Feb 11, 2011 at 4:15 PM, Tom Evans wrote: > > Have a read of this: > > http://www.secnetix.de/olli/Python/lambda_functions.hawk > That's funny -- I did a quick Google search and that's one I found also. I chose to give a quick sample instead of sending the link

Re: Need to combine 2 QuerySets without losing ability to order_by foreign key afterwards

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 9:06 PM, kyleduncan wrote: > I dont understand what the x is, but thank you so much for fixing this > for me in a matter of minutes! Have a read of this: http://www.secnetix.de/olli/Python/lambda_functions.hawk Cheers Tom -- You received

Re: Need to combine 2 QuerySets without losing ability to order_by foreign key afterwards

2011-02-11 Thread Shawn Milochik
On Fri, Feb 11, 2011 at 4:06 PM, kyleduncan wrote: > I dont understand what the x is, but thank you so much for fixing this > for me in a matter of minutes! > You're welcome. The 'key' kwarg to the sort function expects a value. Instead of giving it a single value,

Re: Need to combine 2 QuerySets without losing ability to order_by foreign key afterwards

2011-02-11 Thread kyleduncan
this seems to work: results = sorted(results, key=lambda x: x.user.last_login, reverse=True) I dont understand what the x is, but thank you so much for fixing this for me in a matter of minutes! On Feb 11, 8:36 pm, Shawn Milochik wrote: > Something like this: > > key =

Re: Need to combine 2 QuerySets without losing ability to order_by foreign key afterwards

2011-02-11 Thread Shawn Milochik
On Fri, Feb 11, 2011 at 3:59 PM, kyleduncan wrote: > Thank you! Not sure how to work it just yet though. do I replace x > with user?  i tried this: > > results = results.sort(key=lambda x: x.last_login, reverse=True) > > and got an error  that the Profile object

Re: Need to combine 2 QuerySets without losing ability to order_by foreign key afterwards

2011-02-11 Thread kyleduncan
Thank you! Not sure how to work it just yet though. do I replace x with user? i tried this: results = results.sort(key=lambda x: x.last_login, reverse=True) and got an error that the Profile object didn't have the attribute last_login On Feb 11, 8:36 pm, Shawn Milochik

Re: Need to combine 2 QuerySets without losing ability to order_by foreign key afterwards

2011-02-11 Thread Shawn Milochik
Something like this: key = lambda x: x.last_login -- 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

Customize flatpage

2011-02-11 Thread galago
I found that link: http://linfiniti.com/2011/01/bending-django-flatpages-to-your-will. I want to make some customization in flatpage. Where should I put this extra module and form? I want to add 2 fields to custom flatpage. -- You received this message because you are subscribed to the Google

Re: validation "warnings" in the admin?

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 7:53 PM, Greg Humphreys wrote: > I can do this easily enough with my own custom object creation view, but I'd > like to let my people still use the admin interface. > > I'd like to be able to do some validation of a created or changed object and > issue

Render objects on the index page depending on geolocation

2011-02-11 Thread gweltaz
I everyone ! I'd like to render stuff on the index page depending on the user's location but (being a total beginner in web development) i'm not sure about the right way to do this. This is how i intend to do it : In the index's view function : - Check if the location is set in the GET request

Need to combine 2 QuerySets without losing ability to order_by foreign key afterwards

2011-02-11 Thread kyleduncan
Hi, I have the following code: results = list(results.filter(**location_distance_kwargs)) for trip in possible_trips: try: trip = Trip.objects.get(id=trip.id, **trip_kwargs) profile = Profile.objects.get(user=trip.user) if profile not in results:

Re: Newbie problems with "get"

2011-02-11 Thread Greg
Thanks for heading me in the right direction. I had several errors in my urls.py. On Feb 11, 11:46 am, Shawn Milochik wrote: > Without testing it, I suspect the period in your 'request.GET' is the > problem. Try replacing it with request_get and see what happens. > > Shawn

validation "warnings" in the admin?

2011-02-11 Thread Greg Humphreys
I can do this easily enough with my own custom object creation view, but I'd like to let my people still use the admin interface. I'd like to be able to do some validation of a created or changed object and issue a WARNING before allowing the user to commit the object to the database. For

Re: Looking for IDE + FTP

2011-02-11 Thread Jon J
Personally, I haven't really found an editor that satisfies all of my needs. However, I can recommend using SSH/SFTP and editing directly on the remote system. Since I'm assuming you're a django developer, you should be working primarily in the *NIX world anyway. I've always had problems with FTP

Re: Admin interface Integer field with select box?

2011-02-11 Thread vnv
Tnx for quick help! -- 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 more options,

Re: Admin interface Integer field with select box?

2011-02-11 Thread romain
On Feb 11, 6:53 pm, vnv wrote: > Hi, > > could anyone say is there easy way to have select box for integer > values. > > I model I have group field which identifies specific group by integer > value inside. > If it's possible I would like to have select box inside admin >

Re: Admin interface Integer field with select box?

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 5:53 PM, vnv wrote: > Hi, > > could anyone say is there easy way to have select box for integer > values. > > I model I have group field which identifies specific group by integer > value inside. > If it's possible I would like to have select box

Re: High performance exception/traceback reporting system

2011-02-11 Thread Cal Leeming [Simplicity Media Ltd]
Oh nice!!! I didn't even realise this existed. I'll take a look and see if this matches the same kinda end result I'm looking for. Cheers! On Fri, Feb 11, 2011 at 6:49 PM, MarcMarc wrote: > Hey, take a look at django-sentry, > https://github.com/dcramer/django-sentry > >

Re: High performance exception/traceback reporting system

2011-02-11 Thread MarcMarc
Hey, take a look at django-sentry, https://github.com/dcramer/django-sentry On Feb 11, 6:17 pm, "Cal Leeming [Simplicity Media Ltd]" wrote: > Hey all, > > For the last two years, I've been meaning to write a reporting server which > allows webapps to post

Re: validate changes in m2m field in admin panel

2011-02-11 Thread bagheera
Dnia 11-02-2011 o 19:36:16 Piotr Zalewa napisał(a): I would use signals for that purpose On 11-02-11 10:18, bagheera wrote: Hi, i would like to perform validation on m2m field to control, if user made any changes. I'd like to disallow removing relations from m2m field,

Re: validate changes in m2m field in admin panel

2011-02-11 Thread Piotr Zalewa
I would use signals for that purpose On 11-02-11 10:18, bagheera wrote: Hi, i would like to perform validation on m2m field to control, if user made any changes. I'd like to disallow removing relations from m2m field, only adding them. example: model Product(models.Model): name =

validate changes in m2m field in admin panel

2011-02-11 Thread bagheera
Hi, i would like to perform validation on m2m field to control, if user made any changes. I'd like to disallow removing relations from m2m field, only adding them. example: model Product(models.Model): name = models.TextField() model Order(models.Model): products =

Admin interface Integer field with select box?

2011-02-11 Thread vnv
Hi, could anyone say is there easy way to have select box for integer values. I model I have group field which identifies specific group by integer value inside. If it's possible I would like to have select box inside admin interface for this so user could just select values. Thanks for help in

Re: Filtering Queryset by Foreign Key Properties

2011-02-11 Thread josch
Thank you both! -- 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 more options,

Re: Filtering Queryset by Foreign Key Properties

2011-02-11 Thread Axel Bock
Hi, try this, I guess this should workd (being new here myself :): OrderPositions.objects.filter(order__type = "A") and maybe have a look here: http://docs.djangoproject.com/en/1.2/ref/models/querysets/#field-lookups Cheers, Axel. 2011/2/11 josch > Hi, > > I`m searching

Re: Filtering Queryset by Foreign Key Properties

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 5:20 PM, josch wrote: > Hi, > > I`m searching for a solution for the following problem: > > I have, for example, those two classes: > > class Order(self): >        type = models.CharField(1) > > class OrderPositions(self): >        order =

Re: Stuck with foreign keys

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 5:36 PM, Coen wrote: > Thanks Tom and Shawn. I read that some weeks ago, but it didn't make > sense at the time. It works, just what I needed > Tom, re. naming: After 30 years (on and off) of programming, I've > ended up with my own coding standards :-)

Re: Looking for IDE + FTP

2011-02-11 Thread Mike Ramirez
On Friday, February 11, 2011 07:16:31 am Osiaq wrote: > Aptana Studio > > Do you know the future of Aptana now that it's been aquired by appacelerator? (I don't know, though granted titanium is not a web building tool, which does bode well for the future of aptana outside of titanium.) Mike

Re: Stuck with foreign keys

2011-02-11 Thread Coen
Thanks Tom and Shawn. I read that some weeks ago, but it didn't make sense at the time. It works, just what I needed Tom, re. naming: After 30 years (on and off) of programming, I've ended up with my own coding standards :-) I'll change it if/when I work with others Coen -- You received this

Re: Django dynamic form with additional meta data

2011-02-11 Thread ju
I found my mistake i made ___init__ function instead of __init__ :) On Feb 11, 7:06 pm, Shawn Milochik wrote: > You could be missing something, but I don't have enough to go on. Did > you add the field to your template? What do your view and template > look like? -- You

Filtering Queryset by Foreign Key Properties

2011-02-11 Thread josch
Hi, I`m searching for a solution for the following problem: I have, for example, those two classes: class Order(self): type = models.CharField(1) class OrderPositions(self): order = ForeignKey(Order) Now I want to get every Order Position, whoose order has the type, for

High performance exception/traceback reporting system

2011-02-11 Thread Cal Leeming [Simplicity Media Ltd]
Hey all, For the last two years, I've been meaning to write a reporting server which allows webapps to post their exception tracebacks, which are then viewable from a centralized location. After having Thunderbird corrupt my mailbox due to over 250 thousand debug emails, this project has now been

Re: Django dynamic form with additional meta data

2011-02-11 Thread ju
View = def detail(request, event_id): event = get_object_or_404(Event, pk = event_id) if request.POST : purchaseForm = PurchaseForm(request.POST) #... else: purchaseForm = PurchaseForm() return render_to_response('events/detail.html', {'event':

Re: Django dynamic form with additional meta data

2011-02-11 Thread Shawn Milochik
You could be missing something, but I don't have enough to go on. Did you add the field to your template? What do your view and template look like? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django dynamic form with additional meta data

2011-02-11 Thread ju
I tried to make this small example form from django import forms class PurchaseForm(forms.Form): email = forms.EmailField() #agree = forms.BooleanField() def ___init__(self, *args, **kwargs): super(PurchaseForm, self).__init__(*args, **kwargs) self.fields['agree'] =

Re: Newbie problems with "get"

2011-02-11 Thread Shawn Milochik
Without testing it, I suspect the period in your 'request.GET' is the problem. Try replacing it with request_get and see what happens. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: django.core.cache._cache error in returning dict

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 4:37 PM, Raoul wrote: > Hi, > > I am not sure if this is a bug, but currently not usable as it should, > at least in my case? > > Having similar in my in-memory statistic collector: > from django.core.cache import cache cache.set('testA',

Re: Newbie problems with "get"

2011-02-11 Thread Greg
Shawn see below. from django.conf.urls.defaults import * from mysite.my_clts import views #from mysite.books import views # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^my_clts/$',

Re: TemplateSyntaxError at /polls/updatepath/ Caught AttributeError while rendering: 'RawQuerySet' object has no attribute 'all'

2011-02-11 Thread Ian Clelland
On Thu, Feb 10, 2011 at 9:10 AM, hank23 wrote: > So when I go to build the entries for my drop down list then I would > iterate over the query results like you suggested and at that point > where I iterate over the results then I can also set the different > select option

django.core.cache._cache error in returning dict

2011-02-11 Thread Raoul
Hi, I am not sure if this is a bug, but currently not usable as it should, at least in my case? Having similar in my in-memory statistic collector: >>> from django.core.cache import cache >>> cache.set('testA', 0) >>> cache.set('testB', 1) >>> cache.incr('testA') 1 >>> cache.incr('testB') 2 >>>

Re: Newbie problems with "get"

2011-02-11 Thread Shawn Milochik
Would you post your urls.py? It looks like the problem is in there. -- 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

Newbie problems with "get"

2011-02-11 Thread Greg
I am getting the bad charecter in group name error when using a form. Environment: Request Method: GET Request URL: http://localhost:8000/search-form/ Django Version: 1.2.3 Python Version: 2.7.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes',

Re: compiled regex as attribute

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 4:18 PM, Santiago Caracol wrote: >> Since the pickled value is a string, it should work in fixtures. > > There is no point in storing the regex strings in a pickle field. I > already have the regex strings in ordinary django fields. What I want

Re: compiled regex as attribute

2011-02-11 Thread Shawn Milochik
You're forgetting the pickle part. That's what the getter and setter are for in my previous description. import re import pickle pattern = re.compile(r'^\w{3}\s+\d{3}') x = pickle.dumps(pattern) type(x) If you store 'x' in your database you won't have any difficulty with fixtures. Shawn --

DateTime entry like in the admin interface

2011-02-11 Thread Axel Bock
Hi again, I have in my model a DateTime input, which the admin interface automatically displays as two separate DATE and TIME input fields. I would like to do that, too. Can anyone tell me how? :) Thanks & greetings, Axel. -- You received this message because you are subscribed to the Google

Re: compiled regex as attribute

2011-02-11 Thread Santiago Caracol
> Since the pickled value is a string, it should work in fixtures. There is no point in storing the regex strings in a pickle field. I already have the regex strings in ordinary django fields. What I want to store is *compiled* regular expressions in order to be able to use them without having to

Re: Templatetag - using date and join together?

2011-02-11 Thread Shawn Milochik
If you don't find a better solution, and you're going to need this feature frequently, you can always make a custom template tag. It's not too much work. http://docs.djangoproject.com/en/1.2/howto/custom-template-tags/ -- You received this message because you are subscribed to the Google Groups

Re: Help on displaying related-object details on ModelForm

2011-02-11 Thread Shawn Milochik
You can change the form's label to contain self.instance.promotion.description. -- 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

Re: compiled regex as attribute

2011-02-11 Thread Shawn Milochik
The picklefield stores strings. So when you say "regexes can't be stored in fixtures," it implies that you're dealing with something other than strings at that point. Have you tried the pickle field? As I understand it, it's equivalent to this manual process: Create a normal text field.

Re: custom media just doesnt work

2011-02-11 Thread Shawn Milochik
The feature works -- you just don't understand it. You probably know what, but be aware that e-mailing a list and suggesting that their software is fundamentally broken is not the best way to get friendly help. Have a look at the docs for settings.py:

Re: Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread JHeasly
You need to closely read the second sentence of template_object_name item in the *Optional arguments* section of the generic view bject_list docs. Based on the template_object_name in your

Re: Integrating existing soap based applications

2011-02-11 Thread Shawn Milochik
Start by searching Google for Django and SOAP. If you can't figure out what the prevailing solution is, name them specifically on this list and ask if anyone suggests one over the others. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Stuck with foreign keys

2011-02-11 Thread Shawn Milochik
Enclose the name of the foreign key class in quotes. This way the file will validate. -- 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: Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 3:21 PM, hank23 wrote: > Still not sure why this is not working. I went back and set a value in > my form field definition for the boolean field and the value I set is > now coming back in the Traceback, whereas before the value None was > being

Re: Django dynamic form with additional meta data

2011-02-11 Thread Shawn Milochik
This is pretty easy. Instead of thinking about making dynamic forms, think about making dynamic fields. You'll have one form. When you initialize it, you'll pass it information about the tickets available. In the __init__ of your form you will dynamically add field objects to the form by

Re: Stuck with foreign keys

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 3:09 PM, Coen wrote: > For an email discussion list application I'm setting up the following > model: > > Members and EmailAddress(es) > Each Member has multiple EmailAddress(es), and one PostingAddress > > Definition (abbreviated): > > class

Django dynamic form with additional meta data

2011-02-11 Thread ju
Hello I want to make an form for purchasing tickets. The problem is that for every event there can be diferent types of ticket with diferent price. For every kind of ticket I will have to create an edit box where user can select how much tickets he wants. Then in view class I will just display

Stuck with foreign keys

2011-02-11 Thread Coen
For an email discussion list application I'm setting up the following model: Members and EmailAddress(es) Each Member has multiple EmailAddress(es), and one PostingAddress Definition (abbreviated): class Member(models.Model): PostingAddress = models.ForeignKey(EmailAddress) # error

Re: Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread hank23
Still not sure why this is not working. I went back and set a value in my form field definition for the boolean field and the value I set is now coming back in the Traceback, whereas before the value None was being returned as the value for this field, regardless of whether I had it checked or

Re: Looking for IDE + FTP

2011-02-11 Thread Osiaq
Aptana Studio On Feb 10, 11:09 pm, "Cal Leeming [Simplicity Media Ltd]" wrote: > Looks interesting, but the interface is ugly :/ I'll try it out tho :) > > On Thu, Feb 10, 2011 at 8:39 PM, Mike Ramirez wrote: > >  On Wednesday, February

Re: Best forum/group for Django Help

2011-02-11 Thread SimpleDimple
agree on stackoverflow, not just for django but for many other platforms too... I got a lot of help on rails and others there. On Feb 10, 3:20 pm, Daniel Roseman wrote: > On Wednesday, February 9, 2011 9:06:54 PM UTC, SimpleDimple wrote: > > > Guys, Need to know which is

Integrating existing soap based applications

2011-02-11 Thread Arun K.Rajeevan
Hi, I got a query to integrate BullHorn (Staffing solution) (http://bullhorn.com) and VerticalResponse (Email-Marketing) (http://www.verticalresponse.com/) together into their existing application. On investigating I found out that, both uses soap services. How do you recommend me to consume

Re: Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 2:23 PM, hank23 wrote: > I've been through the documentation and have been unable to find an > example of how to define a BooleanField when writing the code for a > table in my models.py file. Specifically are there any required > parameters when

Default Site for each flatpage

2011-02-11 Thread galago
Hi, how can I assign a default siteID to my flatpages during saving it? I use only 1 Site and want to attach ID=1 to each added flatpage -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Need to Find Examples of How to Define BooleanFields in DB Tables

2011-02-11 Thread hank23
I've been through the documentation and have been unable to find an example of how to define a BooleanField when writing the code for a table in my models.py file. Specifically are there any required parameters when coding a BooleanField in a table definition? Thanks for the help. -- You

Re: change file upload filename, store the orignal, and postback on download the original filename

2011-02-11 Thread Gabriel - Iulian Dumbrava
I found a solution on the second part, sending the file back to the user with the original filename here: http://stackoverflow.com/questions/1156246/having-django-serve-downloadable-files I would still need some help on the first part. Thanks, Gabriel On 11 feb., 14:57, Gabriel - Iulian

change file upload filename, store the orignal, and postback on download the original filename

2011-02-11 Thread Gabriel - Iulian Dumbrava
Hi guys, I want to do this: 1. from admin I want to upload a file, store the original filename but change it on the storage device, based on the current date, for example 20110211144900.file 2. if at a later time someone wants to download that file, it should get it back and saved to the local

Re: Switching off URL normalisation

2011-02-11 Thread Graham Dumpleton
On Friday, February 11, 2011 12:08:25 AM UTC+11, Torsten Bronger wrote: > > Hall�chen! > > Torsten Bronger writes: > > > [...] > > > > Currently, a URL like "http://www.example.com/super%2F/edit/; is > > normalised to "http://www.example.com/super/edit/;. This is bad > > because the entity to

Re: Queryset cloning is very expensive

2011-02-11 Thread kurvenschubser
Hi myx, cloning is useful for chaining of filters, e.g. User.objects.filter(name="Harry").exclude(lastname="Potter").filter(somethingelse="bla") But most of the time, I found I can construct querysets using a dictionary for collecting the query conditions: d = {name:"Harry", lastname:"Potter",

memcached + fcgi prefork = wrong value for a given key

2011-02-11 Thread MarcMarc
Hi, My problem looks like this: when using memcached with fcgi on prefork mode I`m getting wrong values for a given keys. Values are dictionaries with keys, so I`m logging those erros like this: Memcached error: shops_categories.get_count.5942 -> {'version': None, 'value': 1328, 'key':

Re: compiled regex as attribute

2011-02-11 Thread Santiago Caracol
> http://pypi.python.org/pypi/django-picklefield/0.1 Thanks for the tip. This works, but it has one great disadvantage: The regexes can't be stored in fixtures. They are stored in the database directly. So it seems I would have to insert all my several thousand products manually again. And if I

Re: compiled regex as attribute

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 9:47 AM, Santiago Caracol wrote: > Hello, > > I have got objects with very large regular expressions: > > class Product(models.Model): >   # ... >    canonical_name = models.CharField(max_length=200) >    spelling_variants =

compiled regex as attribute

2011-02-11 Thread Santiago Caracol
Hello, I have got objects with very large regular expressions: class Product(models.Model): # ... canonical_name = models.CharField(max_length=200) spelling_variants = models.CharField(max_length=1, blank=True) lexical_variants = models.CharField(max_length=1, blank=True)

Re: ManyToMany fields and ordering in the admin

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 8:54 AM, vanderkerkoff wrote: > A fried of mine told me the answer, couldn't find it anywhere online. > Is this documented anywhere? > > In my document model I had to add this to order the document list in > the publication admin page > > class Meta: >  

Re: ManyToMany fields and ordering in the admin

2011-02-11 Thread vanderkerkoff
A fried of mine told me the answer, couldn't find it anywhere online. Is this documented anywhere? In my document model I had to add this to order the document list in the publication admin page class Meta: ordering = ('title',) I was under the impression all the Meta stuff had been moved

custom media just doesnt work

2011-02-11 Thread Szabo, Patrick (LNG-VIE)
Hi, I want to change the look of the admin-site a little bit My folder structure looks like this (Appname is timesheets): timesheets/ admin/ media css img/ admin I also set this: ADMIN_MEDIA_PREFIX = '/media/' If i

Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread Chen Xu
Hi, everyone: I am following the tutorial 4 on the Django official site. so this is what I got: info_dict = { 'queryset' : Poll.objects.all(), } urlpatterns = patterns('', (r'^$', 'list_detail.object_list', dict(info_dict, template_name='polls/index.html',

ManyToMany fields and ordering in the admin

2011-02-11 Thread vanderkerkoff
django1.2.4 I've got a document model class Document(models.Model): LANG_CODE = ( ('B', 'Both'), ('E', 'English'), ('C', 'Cymraeg'), ) title = models.CharField(max_length=100) slug = models.SlugField(max_length=100,