Re: Is there an official Django forum besides this mailing list?

2011-02-23 Thread Torsten Bronger
Hallöchen! Kevin writes: > I checked the Community link on the Django website and am unable > to locate a web-based forum, but only this mailing list. [...] https://convore.com/ is getting some attraction recently. > I find that a forum is much more organized and easier to follow > than a

Re: Is there an official Django forum besides this mailing list?

2011-02-23 Thread Kenneth Gonsalves
On Wed, 2011-02-23 at 20:14 -0800, Kevin wrote: > I checked the Community link on the Django website and am unable to > locate a web-based forum, but only this mailing list some of us prefer IRC to forums - try #django on freenode. -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox

Re: Collaborative text editor with Django

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 08:56:50 pm Anoop Thomas Mathew wrote: > Hi Mike, > I think you miss read me. I mean an application to put in the website, not > for coding on desktop. A collaborative text editor within the site, some > pre-built django apps. > > Any ideas? > Sorry, in that case

Re: Collaborative text editor with Django

2011-02-23 Thread Brice Leroy
I'm very curious to know the use case for this kind of editor. I'm using HG and GIT to manage merging and I'm quite happy with those. Brice Leroy Sent from my iPhone On Feb 23, 2011, at 8:56 PM, Anoop Thomas Mathew wrote: > Hi Mike, > I think you miss read me. I mean an

Re: Collaborative text editor with Django

2011-02-23 Thread Anoop Thomas Mathew
Hi Mike, I think you miss read me. I mean an application to put in the website, not for coding on desktop. A collaborative text editor within the site, some pre-built django apps. Any ideas? regards, Anoop atm ___ Life is short, Live it hard. On 23 February 2011 18:12, Mike Ramirez

Re: Django Code Generator

2011-02-23 Thread Mike Dewhirst
On 24/02/2011 12:06pm, Brice Leroy wrote: The login is really just so you can manage a bunch of project and easily come back (as most project often take more than a day to grow). It also provide some privacy (not everybody wants his project to be publicly available). OK - I didn't realise you

Re: Django Code Generator

2011-02-23 Thread Brice Leroy
You can of course easily clone the site too as there is very few decencies (django registration and a "common" package from my repository). I thought that most of the user would find it more convenient to store their project online and hit download to get their source code as a tar.gz archive.

Re: Is there an official Django forum besides this mailing list?

2011-02-23 Thread Kevin
Thought I would ask. Djangobb has a great half way feature of RSS feeds for each forum section, which can be easily integrated into ones Mail client or mobile smartphone feed reader. A good example of what I mean by the RSS feeds can be found here: http://support.djangobb.org/ In a since, a

Re: Is there an official Django forum besides this mailing list?

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 08:14:17 pm Kevin wrote: > Hello everyone, > > I checked the Community link on the Django website and am unable to > locate a web-based forum, but only this mailing list. There is a few > Django made forum apps which could be used for this purpose, and >

Port mod_python.publisher and a Django svnclient

2011-02-23 Thread Kevin
Hello everyone, For those interested in the backwards compatibility of the mod_python.publisher handler in Django, I have made my own version of it. This code has yet to be tested in a production environment. Any help on improving the code would be great. You can find the subversion code at:

Re: Is there an official Django forum besides this mailing list?

2011-02-23 Thread Russell Keith-Magee
On Thu, Feb 24, 2011 at 12:14 PM, Kevin wrote: > Hello everyone, > >  I checked the Community link on the Django website and am unable to > locate a web-based forum, but only this mailing list.  There is a few > Django made forum apps which could be used for this purpose, and

Re: Is there an official Django forum besides this mailing list?

2011-02-23 Thread Shawn Milochik
There was just a large amount of conversation on this topic. People listed some great resources and discussed why things have evolved to happen the way they do: https://groups.google.com/d/msg/django-users/0dVLMCIYa94/a5IuaB9V_z4J -- You received this message because you are subscribed to the

Is there an official Django forum besides this mailing list?

2011-02-23 Thread Kevin
Hello everyone, I checked the Community link on the Django website and am unable to locate a web-based forum, but only this mailing list. There is a few Django made forum apps which could be used for this purpose, and integrated into the main website. I find djangobb to work pretty good, and

Re: urls.py and views.generic issue

2011-02-23 Thread Andrew Petaisto
Thanks for all the help, I've learned a lot! I was able to figure out why the last two wouldn't resolve. The url part /(?P[-w]+)/$ should be / (?P[-*\*w]+)/$ that way it looks for all words instead of w's with -'s. I fixed that and it now works. Once again thanks for all the help, I have

admin list help

2011-02-23 Thread Bobby Roberts
hi group. I really need to know how to do something in regard to my models shown below. Please consider these three models and then look at the bottom for my question. garments class modela (models.Model): id = models.AutoField (primary_key=True) type = models.CharField

Problems with serving static files

2011-02-23 Thread Roy Smith
I'm running r15624, OSX-10.6.5, Python-2.6.1 In my top-level urls.py, I have: # Serve static files (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': '/Users/roy/dev/try.django/mysite/static', 'show_indexes': True}), If I go to

Re: Django Code Generator

2011-02-23 Thread Brice Leroy
The login is really just so you can manage a bunch of project and easily come back (as most project often take more than a day to grow). It also provide some privacy (not everybody wants his project to be publicly available). I'd also like to be able to make some project public so they can be

Re: Django Code Generator

2011-02-23 Thread Mike Dewhirst
On 24/02/2011 11:46am, Brice Leroy wrote: Hello, I posted a while ago about this project and since it's pretty complete now, I'd like to get your opinion on it and advices on features that might be useful. I've been interested in this for a while and I'm delighted to see you have kept it

Django Code Generator

2011-02-23 Thread Brice Leroy
Hello, I posted a while ago about this project and since it's pretty complete now, I'd like to get your opinion on it and advices on features that might be useful. The project is hosted on: http://www.djangogenerator.com The project is open source and available on GIT:

Re: Cool and useful development commands :-)

2011-02-23 Thread Mike Ramirez
just pushing this here for dave to see, I forget that when emails are addressed to me and the list, reply sends to the user and do not hit "L" to reply to the list. @dave: This is the idea we came up with. On Wednesday, February 23, 2011 05:29:55 am you wrote: > Maybe you could write a filter

Re: label_tag in queryset

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 04:16:51 pm Greg Corey wrote: > Thanks for your reply. One question. > > > make sure to reference the model field you want as the label if > > 'Requester' isn't it. > > Not sure what you mean by this. Do you just mean manually change > 'Requester' to whatever I

Re: Problem with unicode in form posts

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 01:17:22 pm Lee Hinde wrote: > I'd like it to be 'leehinde' again > so, clearly objects.create is more clever than my pure post. But I'm > not sure where in the food chain I should be interceding.. I'm not sure what's going on, but I would start with data.get()

Re: label_tag in queryset

2011-02-23 Thread Greg Corey
Thanks for your reply. One question. > make sure to reference the model field you want as the label if 'Requester' > isn't it. > Not sure what you mean by this. Do you just mean manually change 'Requester' to whatever I want, or that I really can reference the model field to get the label?

Re: Cool and useful development commands :-)

2011-02-23 Thread dave b
On 24 February 2011 00:29, Simone Federici wrote: > Maybe you could write a filter "urlsafe" to use into templates so that > variable does not contains javascript. > And you could create a command that scan templates and raise an alert every > variable inside an href

Re: Problems with Admin site displaying table records

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 11:56:07 am wilbur wrote: > Hello, > > The table I am querying is set to return a fieldname that is defined > as varchar... ex. > > class Sample(models.Model): > sample_name = models.CharField(max_length=100) > location =

Re: label_tag in queryset

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 02:15:40 pm geraldcor wrote: > Hello all, > > When rendering a list of data for a particular model instance, I am > wondering how to access the label_tag attribute for a field when not > using a form. > > In my view I get a model instance and pass the object in my

Re: Problems with permissions in the admin panel.

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 02:56:52 pm Adam Tonks wrote: > Hello, > > I'm having some fustrating problems with setting permissions for a > user within the django administration panel. I create a new user, set > it as staff, and assign it permissions. The problem is, when I login > as them,

Problems with permissions in the admin panel.

2011-02-23 Thread Adam Tonks
Hello, I'm having some fustrating problems with setting permissions for a user within the django administration panel. I create a new user, set it as staff, and assign it permissions. The problem is, when I login as them, I get the "You don't have permission to edit anything." error. I have

Re: Using markdown within admin interface

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 07:10:58 am Tom Evans wrote: > On Wed, Feb 23, 2011 at 2:48 PM, Mike Ramirez wrote: > > tried tinymce[1]? Here is the best (IMO) way to do it.[2] Others have > > editted the admin templates to intregrate tinymce into the admin, but I > > think

label_tag in queryset

2011-02-23 Thread geraldcor
Hello all, When rendering a list of data for a particular model instance, I am wondering how to access the label_tag attribute for a field when not using a form. In my view I get a model instance and pass the object in my context inspection = inspection.objects.get(pk=3) Then in my template I

Re: Cool and useful development commands :-)

2011-02-23 Thread Simone Federici
Thanks, your feedback are welcome :-D On Wed, Feb 23, 2011 at 20:00, Ori Livneh wrote: > Can't wait to try it! Some nifty things here. > > On Tue, Feb 22, 2011 at 11:46 AM, Simone Federici wrote: > >> http://www.os4d.org/djangodevtools >> Your

Re: unittest problems

2011-02-23 Thread refreegrata
Yeahh , I already try this. The number of errors decreases, but I still have some errors (15) - == ERROR: test_password_change_fails_with_invalid_old_password

Problem with unicode in form posts

2011-02-23 Thread Lee Hinde
I had this view function snippet: e = Account.objects.create( user_name = data.get('username'), password = data.get('password'), email = data.get('email'), subscription_number = data.get('subscription_id'), retrieved = False,

Re: Django Job Opportunity at IDLE GAMES (The Social Game Changers)

2011-02-23 Thread Nick Arnett
On Wed, Feb 23, 2011 at 12:35 PM, Aliciasf wrote: ...and (iv) the Tempting system... > That's the whole thing, isn't it? ;-) Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: How do I authenticate a urllib2 script in order to access HTTPS web services from a Django site?

2011-02-23 Thread carl
It turns out I needed to set the HTTP Referer header to the login page url in the request where I post the login information. req.add_header( 'Referer', login_url ) The reason is explained on the Django CSRF documentation - specifically, step 4. Due to our somewhat peculiar server setup where

Django Job Opportunity at IDLE GAMES (The Social Game Changers)

2011-02-23 Thread Aliciasf
**Job Description**: Idle Games is looking for Software Developers (Python/Django) to join our small and brilliant team in building a real-time social casual MMO games platform. We are making original beautiful soon-to-be-released Blockbuster titles that delight, engage, entertain and will

Problems with Admin site displaying table records

2011-02-23 Thread wilbur
Hello, I am using Django version 1.2.4 on Ubuntu 10.04. When I try to click on an individual database table record in the Django Administration interface (for editing, for example), I get the following error: TemplateSyntaxError at /admin/iom_catalog/sample/610/ Caught TypeError while

Re: Comparing two annotations

2011-02-23 Thread Patrick
now that makes sense.. thank you daniel! i better should have rtfm :) -- 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: Comparing two annotations

2011-02-23 Thread Daniel Roseman
On Wednesday, February 23, 2011 7:28:06 PM UTC+1, Patrick wrote: > > Hi, > > i am trying to compare two count-annotations with a simple "greater- > than" filter like this: >

Re: Querysets: returning a single item with the greatest id.

2011-02-23 Thread delegbede
He is expecting to fetch a single term. I think that's what get() does if the particular I'd is known and you would have written your code as this: Foo.objects.get(id=1000) However, if you don't know like I'm presuming, you do: Foo.objects.all().order_by('-pk')[0] Tom, thanks. Sent from my

Re: unittest problems

2011-02-23 Thread Shawn Milochik
I have an idea. Why don't you remove the middleware and see if the tests work? That might give you the answer. -- 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

Re: unittest problems

2011-02-23 Thread refreegrata
I don't know but maybe the problem is related with this: I use Middleware class provided by Ryan Witt. Whit this class the user must to be authenticated to view any page other than LOGIN_URL Can be this a problem to run the tests? -- You received this message because you are subscribed to the

Re: Admin-enabled glossary

2011-02-23 Thread yuri2k
Anyone? On 23 Fev, 10:14, yuri2k wrote: > I need to find a way to use a glossary (sort of > likehttps://github.com/kcunning/django-glossary) but that can be called > when you insert a new entry elsewhere on the data structure (i.e., any > page with text). The ideal would be to

Re: Cool and useful development commands :-)

2011-02-23 Thread Ori Livneh
Can't wait to try it! Some nifty things here. On Tue, Feb 22, 2011 at 11:46 AM, Simone Federici wrote: > http://www.os4d.org/djangodevtools > Your feedback is very welcome > > Simone > > -- > You received this message because you are subscribed to the Google Groups >

Re: django cache (memcache) items are not readable between processes

2011-02-23 Thread dcoy
I just tested with the filecache as well, same problem. On Feb 23, 7:47 pm, dcoy wrote: > Hi, > I have problems using the django cache. The cached items are not > readable between processes it seems... ? > > Testing on the production server using two ssh sessions in parallel,

django cache (memcache) items are not readable between processes

2011-02-23 Thread dcoy
Hi, I have problems using the django cache. The cached items are not readable between processes it seems... ? Testing on the production server using two ssh sessions in parallel, and setting the cache in one and reading in the other using the memcache backend. I ran them each one line at a time,

Comparing two annotations

2011-02-23 Thread Patrick
Hi, i am trying to compare two count-annotations with a simple "greater- than" filter like this: ResultSequence.objects.annotate(num_result=Count('resultset'),num_part=Count('seminar__participant')).filter(num_result__gt=num_part) i also tried doing it like this:

ANN: dse 0.6.0 DSE - Delayed SQL Executor

2011-02-23 Thread Thomas Weholt
Just released a new version of DSE - delayed SQL Executor. Typical 10x speed gain when inserting or updating lots of records using DSE compared to using the django orm. http://pypi.python.org/pypi/dse/0.6.0 Comments and feedback appreciated. -- Mvh/Best regards, Thomas Weholt

Re: How to format django template code nicely with notepad++?

2011-02-23 Thread Bill Freeman
On Wed, Feb 23, 2011 at 11:58 AM, Tom Evans wrote: ... > > Aargh, we're mortal enemies - I guess Eight Megs And Constantly > Swapping is no longer an insult I can use :) The last time I used a machine with fewer than 8Mb of RAM, emacs was nowhere near that big.

Re: How to format django template code nicely with notepad++?

2011-02-23 Thread Tom Evans
On Wed, Feb 23, 2011 at 4:15 PM, Bill Freeman wrote: > All good points. > > I would caution, however, that not every *nix production environment > has vim.  (Less and less true, but I still see them.) > > They will, however, have vi.  (And the ones that have vim typically have

Re: Ordering in complex queries

2011-02-23 Thread Tom Evans
On Wed, Feb 23, 2011 at 4:23 PM, Akshit Khurana wrote: > I want to search from database and return objects in order (soft_name, > category and subcategory are fields of a model) >             1st if soft_name has query >             then if category has query >             

unittest problems

2011-02-23 Thread refreegrata
Hello list. I have a question. I've never done unit testing with Django before. I still don't write any unittest but when I do this: sudo. / manage.py test Many errors appears. Errors related with the authentication. Errors like:

Ordering in complex queries

2011-02-23 Thread Akshit Khurana
I want to search from database and return objects in order (soft_name, category and subcategory are fields of a model) 1st if soft_name has query then if category has query and then if subcategory has query I've written this: query = request.GET.get('q','') if

Re: How to format django template code nicely with notepad++?

2011-02-23 Thread Bill Freeman
On Wed, Feb 23, 2011 at 4:51 AM, Tom Evans wrote: ... > It takes about a month to get up to speed with vim, about a year to > become proficient and about three years to be fully comfortable. The > longer you use vim, the faster you get using it, and the more > productive

Re: Querysets: returning a single item with the greatest id.

2011-02-23 Thread christian.posta
Does latest()[0] work exactly as the original poster was looking for? latest() works based on a date field, not the pk field (which *could* return a result different than expected). Tom's approach, explicitly ordering by pk, would work exactly as desired. On Feb 23, 6:08 am, Mike Ramirez

Re: Using markdown within admin interface

2011-02-23 Thread Michel Thadeu Sabchuk
Hi, > I love markdown for writing content on websites. I use it almost all the > time when I'm working with django. I like markdown too. I found an wysiwym editor for it: http://code.google.com/p/wmd/ It is pretty simple to attach it on the admin interface. Regards, Michel Sabchuk Brasil --

Re: Using markdown within admin interface

2011-02-23 Thread Tom Evans
On Wed, Feb 23, 2011 at 2:48 PM, Mike Ramirez wrote: > tried tinymce[1]? Here is the best (IMO) way to do it.[2] Others have > editted the admin templates to intregrate tinymce into the admin, but I > think this is counter-productive. > > Also this exists:

Re: Using markdown within admin interface

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 06:36:46 am Jonas Geiregat wrote: > Hello, > > I love markdown for writing content on websites. I use it almost all the > time when I'm working with django. > > The only issue I hate is that the default django admin interface gives you > a standard textfield.

Using markdown within admin interface

2011-02-23 Thread Jonas Geiregat
Hello, I love markdown for writing content on websites. I use it almost all the time when I'm working with django. The only issue I hate is that the default django admin interface gives you a standard textfield. There's nothing wrong with that but when you're pasting some code on let's say a

Re: Cool and useful development commands :-)

2011-02-23 Thread Simone Federici
Maybe you could write a filter "urlsafe" to use into templates so that variable does not contains javascript. And you could create a command that scan templates and raise an alert every variable inside an href attribute that is not "urlsafe". But I believe that a tool is used to work, not to do

Re: Querysets: returning a single item with the greatest id.

2011-02-23 Thread Sithembewena Lloyd Dube
@Tom, thanks. I thought of ordering the QuerySet, but I was not sure whether that would default to ASC or DESC - and I was not sure how to pass parameters to influence this. @Mike, thanks. That looks simpler to do. On Wed, Feb 23, 2011 at 3:08 PM, Mike Ramirez wrote: > On

Re: Querysets: returning a single item with the greatest id.

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 05:04:29 am Tom Evans wrote: > On Wed, Feb 23, 2011 at 12:57 PM, Sithembewena Lloyd Dube > > wrote: > > Hi everyone, > > > > How would one fetch a single item with the largest id (or most recent > > date of creation) via the database API? > >

Re: Querysets: returning a single item with the greatest id.

2011-02-23 Thread Tom Evans
On Wed, Feb 23, 2011 at 12:57 PM, Sithembewena Lloyd Dube wrote: > Hi everyone, > > How would one fetch a single item with the largest id (or most recent date > of creation) via the database API? > > -- > Regards, > Sithembewena Lloyd Dube >

Re: What's the difference between MEDIA_ROOT and STATIC_ROOT?

2011-02-23 Thread Mike Ramirez
On Tuesday, February 22, 2011 11:04:52 pm King wrote: > In the Note under this section > http://docs.djangoproject.com/en/dev/howto/static-files/#s-using-django-con > trib-staticfiles , it mentions that "In previous versions of Django, it was > common to place static assets in MEDIA_ROOT along

Re: scripted login to django

2011-02-23 Thread Robin Becker
On 23/02/2011 11:51, Mike Ramirez wrote: ... Have your tried urllib2.Request[1] to POST your login data, how a browser would do it? yes ... eventually I got this to work with 1.2.5 (and the tutorial site); the main problems were that hitting admin to get the

Querysets: returning a single item with the greatest id.

2011-02-23 Thread Sithembewena Lloyd Dube
Hi everyone, How would one fetch a single item with the largest id (or most recent date of creation) via the database API? -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: What's the difference between MEDIA_ROOT and STATIC_ROOT?

2011-02-23 Thread Xavier Ordoquy
Hi, As the documentation said, in the previous version, it was common to place both in the MEDIA_ROOT (unless you used 3rd party application to avoid that). So as long as the code has not been ported to 1.3, you'll probably see that again and often. Regards, Xavier. Le 23 févr. 2011 à 08:04,

Override model field

2011-02-23 Thread Pascal Polleunus
Hi, I've a field with unique=True in a parent class. I want to make it unique=False in a child class. How could I do that? Thanks, Pascal -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Where can I find the admin/base_site.html

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 01:06:40 am DJ Chung wrote: > I am going through the tutorial on Djangoproject.com. I'm trying to > work on templates and I don't know where to find admin/base_site.html > > Where's the actual code I can copy and paste?

Re: Collaborative text editor with Django

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 12:32:55 am Anoop Thomas Mathew wrote: > Hi, > > Is there any collaborative text editing application available for django. > Has anybody tried with etherpad(www.etherpad.org) along with django? > > Please reply, > Thanks in advance, > Anoop > > atm > ___ > Life

Re: Where can I find the admin/base_site.html

2011-02-23 Thread Marcos Moyano
It depends on what you are using. For me is /usr/lib/python2.7/site-packages/django/contrib/admin/templates/admin/ Hope it helps. On Wed, Feb 23, 2011 at 6:06 AM, DJ Chung wrote: > I am going through the tutorial on Djangoproject.com. I'm trying to > work on templates and

Using constants for named URLs

2011-02-23 Thread zvikico
Hello, When defining URLs, I prefer named URLs. I like to define these names as constants, so I can use the contants in other files. Probably an old habit from my days as a Java developer, but I still think it is better than using the string all over the place. Here's an example:

Admin-enabled glossary

2011-02-23 Thread yuri2k
I need to find a way to use a glossary (sort of like https://github.com/kcunning/django-glossary) but that can be called when you insert a new entry elsewhere on the data structure (i.e., any page with text). The ideal would be to use a tag system to make this insertion simple, but ultimately, an

Where can I find the admin/base_site.html

2011-02-23 Thread DJ Chung
I am going through the tutorial on Djangoproject.com. I'm trying to work on templates and I don't know where to find admin/base_site.html Where's the actual code I can copy and paste? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

RE: Collaborative text editor with Django

2011-02-23 Thread Anoop Thomas Mathew
Hi, Is there any collaborative text editing application available for django. Has anybody tried with etherpad(www.etherpad.org) along with django? Please reply, Thanks in advance, Anoop atm ___ Life is short, Live it hard. -- You received this message because you are subscribed to the Google

What's the difference between MEDIA_ROOT and STATIC_ROOT?

2011-02-23 Thread King
In the Note under this section http://docs.djangoproject.com/en/dev/howto/static-files/#s-using-django-contrib-staticfiles , it mentions that "In previous versions of Django, it was common to place static assets in MEDIA_ROOT along with user-uploaded files, and serve them both at MEDIA_URL. " and

how to declare a list in django models.py class

2011-02-23 Thread cuteangel
how to declare a list in django models.py class -- 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: Problem in returning the value.

2011-02-23 Thread Daniel Roseman
On Wednesday, February 23, 2011 9:10:14 AM UTC+1, cuteangel wrote: > > this is the class from models.py- > class NatPar(models.Model): > @staticmethod > def handle_review(self): > > > > and calling function is like this- > > response=NatPar.handle_review > > return

Re: scripted login to django

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 03:28:31 am Robin Becker wrote: > I want to automate a remote django view which requires a login with a > python script, but I am having difficulty in deciding how to make django > accept the various cookies. Is there example code somewhere which shows > how this

Re: scripted login to django

2011-02-23 Thread Simone Dalla
2011/2/23 Robin Becker > I want to automate a remote django view which requires a login with a > python script, but I am having difficulty in deciding how to make django > accept the various cookies. Is there example code somewhere which shows how > this should be done? > >

Re: Cool and useful development commands :-)

2011-02-23 Thread Simone Federici
Oh yes actually xsyncdb is just the syncdb taken from 1.3alpha. I'm developing with 1.2.5 but try to take the good stuff from the trunk and in 1.3 is possible use an hidden load_initial_data paramenter :-) xloaddata is a more verbosing loaddata,often, in developing, some changes may send wrong

scripted login to django

2011-02-23 Thread Robin Becker
I want to automate a remote django view which requires a login with a python script, but I am having difficulty in deciding how to make django accept the various cookies. Is there example code somewhere which shows how this should be done? I've tried various cookie jar based approaches, but

Re: How to skip some translation in trans block?

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 02:22:47 am galago wrote: > I need to skip translating some content from the string in template. > I want to make something like this: > > I pass the tag variable to the temaplte. Then I want to make a string: Tag: > tag_variable. I need it to be in trans block,

Re: database i18n

2011-02-23 Thread Kenneth Gonsalves
On Wed, 2011-02-23 at 02:21 -0800, Federico Capoano wrote: > Thanks Hernik. I liked the idea of django-i18n-model but I couldn't > get it working. Now I'm about to try django-transmeta. > > django-transmeta rocks bigtime, especially if you have an unknown set of languages. -- regards KG

How to skip some translation in trans block?

2011-02-23 Thread galago
I need to skip translating some content from the string in template. I want to make something like this: I pass the tag variable to the temaplte. Then I want to make a string: Tag: tag_variable. I need it to be in trans block, but only first word (Tag) must be translated. In other words - I

Re: database i18n

2011-02-23 Thread Federico Capoano
Thanks Hernik. I liked the idea of django-i18n-model but I couldn't get it working. Now I'm about to try django-transmeta. On Feb 23, 10:34 am, "Henrik Genssen" wrote: > I feel, this should be something integrated into Django, too. > > So far I am using transdb (but I

Re: Cool and useful development commands :-)

2011-02-23 Thread Mike Ramirez
On Tuesday, February 22, 2011 08:46:34 am Simone Federici wrote: > http://www.os4d.org/djangodevtools > Your feedback is very welcome > > Simone Also, this just hit me as I hit send, but what do you think of adding something that helps scan templates for obvious XSS mistakes as per this

Re: Cool and useful development commands :-)

2011-02-23 Thread Mike Ramirez
On Tuesday, February 22, 2011 08:46:34 am Simone Federici wrote: > http://www.os4d.org/djangodevtools > Your feedback is very welcome > > Simone Doesn't xsyncdb mimic the way syncdb already works or is there some difference that isn't apparent from the description? Also, why not GZip instead

Re: Cool and useful development commands :-)

2011-02-23 Thread Simone Federici
Thanks! I want improve some commands, for example I'd like have a feedback on the monkey patch on fetch_command for coverage command. What you think? It is usefull for use a command before it load the applications and before the model validation. thanks Simone On Tue, Feb 22, 2011 at 19:05,

Re: How to format django template code nicely with notepad++?

2011-02-23 Thread Tom Evans
On Tue, Feb 22, 2011 at 9:42 PM, wrote: > The ssh thing, I agree. It works like magic. I'm however compelled to > believe that the time you'd spend learning VI is enough to get you already > developing django powered apps. My case study. > It takes about a month to get up

custom formfield submit

2011-02-23 Thread Szabo, Patrick (LNG-VIE)
Hi, I have a form that - of course - creates new entry in my database. I created the form out of a model except for 1 field. Now if i click submit only the values of the fields that are created out of the form are stored in the DB - also not suprising What i want to to is take the

RE: [] database i18n

2011-02-23 Thread Henrik Genssen
I feel, this should be something integrated into Django, too. So far I am using transdb (but I am still sitting on Django 1.1). advantage: - all translations in one field as a dict so easy searchable, if icontains is all you want disadvantages: - all translations in one field as a dict,

Re: Authorization of static content

2011-02-23 Thread Sam Lai
On 23 February 2011 19:03, Joakim Hove wrote: > Hello, > > I am using Django to create an album application. I was planning to > use djangos user system for authorization, however the final image > viewing will be like: > >     > > Where image.url should resolve to

Re: Authorization of static content

2011-02-23 Thread Joakim Hove
Thank you; that was a very good starting point - I will hopefully find a solution from this. Joakim On 23 Feb, 09:18, Mike Ramirez wrote: > On Wednesday, February 23, 2011 12:03:12 am Joakim Hove wrote: > > > Hello, > > Any suggestions of how to combine django based

Re: Problem in returning the value.

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 12:10:14 am cuteangel wrote: > this is the class from models.py- > class NatPar(models.Model): > @staticmethod > def handle_review(self): > try: > grammar=nltk.parse_cfg(""" > S->VP NP > PP->P N >

Re: Authorization of static content

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 12:03:12 am Joakim Hove wrote: > Hello, > Any suggestions of how to combine django based authorization with > serving of static content? I am the owner of the box in question and > can modify the apache setup way beyond my competence. > > Regards - Joakim Hove

Problem in returning the value.

2011-02-23 Thread cuteangel
this is the class from models.py- class NatPar(models.Model): @staticmethod def handle_review(self): try: grammar=nltk.parse_cfg(""" S->VP NP PP->P N NP->Det N PP VP->V Det Det ->'me'|'the'

Authorization of static content

2011-02-23 Thread Joakim Hove
Hello, I am using Django to create an album application. I was planning to use djangos user system for authorization, however the final image viewing will be like: Where image.url should resolve to something like http://static-images.com/path/to/image.jpg Here http://static-images.com