Re: How execute erlang code ?

2010-03-12 Thread nameless
you right Dylan... maybe is better put erlang code on another webserver. If I use iframe How could I share users information ( on django table ) with erlang ? ie if I send a tweet, and that tweet is stored on erlang webserver ( Mnesia ) then I have to connect that tweet with a certain user. excus

possible bug or feature request with extra and where

2010-03-12 Thread Henrik Genssen
HI all, I have a query: results = table1.objects.select_related('table2') plus adding some filter on it. Now I want to add en extra WHERE. So I do: where = 'asdf=12' results = results.extra(where=[where]) Now if I do a count() on that queryset, all related tables are omitted, that are not need

Re: View on site

2010-03-12 Thread rebus_
On 12 March 2010 01:04, Robert wrote: > There is a "View on site" link when you edit a user in admin. > > The link calls the url user/user_name but you have to make the url- > view configuration yourself apparently. > > I wonder if there is a "built-in" way to do this. I looked up an other > threa

Re: Strange difference between runserver and shell

2010-03-12 Thread Roald de Vries
On Mar 11, 2010, at 11:56 AM, pyt...@roalddevries.nl wrote: I have the following model: 1 class MyOrderItem(models.Model): 2 orderitem = models.ForeignKey(OrderItem, null=True, blank=True) 3 # other fields 4 5 def save(self, *args, **kwargs): 6

Custom Login Url Django Admin Site

2010-03-12 Thread d3f3nd3r
Hi, is there a nice way to redirect the user to a custom login page when accessing a django admin site? I'm thinking about something like LOGIN_URL in settings.py. regards -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Handling upload, adding M2M relation before saving object in admin form

2010-03-12 Thread Henry A
Hi, For a client, I've got the following (simplified) models: class Document (models.Model): file = models.FileField() class Publication (models.Model): title = models.CharField() ... documents = models.ManyToManyField(Document) Publication can have several documents linked to it; my c

Re: How execute erlang code ?

2010-03-12 Thread Gustavo Narea
On Mar 12, 3:02 am, nameless wrote: > Hi at all. > I need to create a blogging system with Django+Apache+Postgresql and a > twitter-like app with Erlang+Yaws+Mnesia. > > How can I execute erlang code through django views ? WSGI to the rescue! http://packages.python.org/twod.wsgi/manual/embedded-a

Re: How execute erlang code ?

2010-03-12 Thread David De La Harpe Golden
On 12/03/10 03:02, nameless wrote: Hi at all. I need to create a blogging system with Django+Apache+Postgresql and a twitter-like app with Erlang+Yaws+Mnesia. How can I execute erlang code through django views ? Well, one option I would seriously consider would be coupling through a message

Re: character , HTML textfield, sqlite3

2010-03-12 Thread gintare
If somebody knows how to answer my questions please let me know. It is very urgent. I will modify code by advice of Daniel as fast as i have time = "never" :) On Mar 11, 3:43 pm, Daniel Roseman wrote: > On Mar 11, 1:19 pm,gintare wrote: > > > > > Hello, > > > How to save special characters: å , ö

Re: character , HTML textfield, sqlite3

2010-03-12 Thread Daniel Roseman
On Mar 12, 2:07 pm, gintare wrote: > If somebody knows how to answer my questions please let me know. It is > very urgent. I did let you know. Django takes care of this sort of thing for you, as long as you don't deliberately cripple it. > I will modify code by advice of Daniel as fast as i have

Re: How execute erlang code ?

2010-03-12 Thread Dylan Evans
That's difficult to say without specifics, but you should be able to access your django database from erlang and reference the user table, or any other required data. Likewise django/python can read any sql database tables used with your erlang code, but probably not mnesia. You could also implemen

PyCharm IDE - Anyone using it yet

2010-03-12 Thread MauroCam
Hi All, just discovered that JetBrains has recently recently a new IDE for Python which specifically supports Django. Having tried to use Eclipse for the past year, I can honestly say that I am desperate to find something new. Loads of people would trust their lives in Eclipse, but I just find i

Re: How execute erlang code ?

2010-03-12 Thread nameless
The reason is that every tweet is sent and received in real time like a web chat ( using ajax and long polling on client side ). This is because I have chosen Erlang+Yaws+Mnesia. Is it a wrong approach ? thanks. On 12 Mar, 15:20, Dylan Evans wrote: > That's difficult to say without spec

Re: How execute erlang code ?

2010-03-12 Thread Dylan Evans
I wouldn't say it's the wrong approach, just makes things difficult using two application stacks side by side, unless your relying on existing code. On Sat, Mar 13, 2010 at 12:39 AM, nameless wrote: > The reason is that every tweet is sent and received in real time like > a web chat ( using ajax

I need django-evolution app

2010-03-12 Thread Sandra Django
Hi friends, I'm trying to download django-evolution app, but I can't from Cuba. Could you send to me this app for this way? Please! Thanks, Sandra -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@

Re: Exception Value: No module named urls

2010-03-12 Thread nerdydork
I finally fund the problem. A freelancer I have working on the site deleted a urls file in my api app. On Mar 11, 10:34 am, nerdydork wrote: > /home/inzolo/webapps/budgetsite/lib/python2.5 contains "django". That > is the only folder there. This is hosted on Webfaction. > > On Mar 11, 9:35 am, Xa

Re: local application source files checksum

2010-03-12 Thread gaddoz
Many thanks for the hint Jirka! Any other ideas? On 11 Mar, 17:16, Jirka Vejrazka wrote: > > The thing is: the application will get approved from an organization, > > and after that I have to avoid any kind of source edit, > > until another approval.. > > Hi, > >   one option would be using pro

Re: PyCharm IDE - Anyone using it yet

2010-03-12 Thread Masklinn
On 12 Mar 2010, at 15:32 , MauroCam wrote: > > Hi All, > > just discovered that JetBrains has recently recently a new IDE for > Python which specifically supports Django. > > Having tried to use Eclipse for the past year, I can honestly say that > I am desperate to find something new. > > Loads

Re: I need django-evolution app

2010-03-12 Thread Shawn Milochik
South has become the dominant DB migration tool for Django. Have a go at that. http://south.aeracode.org/ Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscrib

Permissions help

2010-03-12 Thread Brandon Taylor
Hi Everyone, I need to add a custom permission to only allow deletes on an object if it has a certain property and the user is in a specific group, and I need it to work in Django admin. Possible? I was thinking I might just override the template and remove the delete link, but permissions seems

Re: SQL Server 2008 and django

2010-03-12 Thread Nick
Thanks for the info, glad there weren't any major issues that popped up that would derail this development path. Since we have a windows box that is hosting the DB I think we're going to run with mssql, it appears to properly handle the multi-db issue. On Mar 12, 1:26 am, David wrote: > As the st

Re: Adding Fields To Querysets

2010-03-12 Thread Darren
the simplest method should work, perhaps you made a mistake early on which set you off on the wrong path? class Person(models.Model): name = models.CharField(max_length=100) def view_func(request): people = Person.objects.all() for person in people: person.calcs = [ 1, 2, 3 ]

Re: I need django-evolution app

2010-03-12 Thread Sandra Django
Thanks friends, regards On Fri, Mar 12, 2010 at 10:28 AM, Shawn Milochik wrote: > South has become the dominant DB migration tool for Django. Have a go at > that. > > http://south.aeracode.org/ > > Shawn > > > -- > You received this message because you are subscribed to the Google Groups > "Djan

Problem template library loading

2010-03-12 Thread mrsource
I have plugged dlevercss application to my Django project. In local environment (windows xp - python 2.6) I have no errors, but in public server (Ubuntu linux- python 2.5 - WSGI container), I get this error: " 'dlevercss_tags' is not a valid tag library: Could not load template library from django.

Recording Django user/session/view requests back into a Django model

2010-03-12 Thread Philip Zeyliger
Hi folks, I'd like to measure who's using my site and what views they're looking at. Presumably, I'd do this with some middleware that stuffs request.user and view_func into the database and then build some simple views to look at this data. Has anyone seen a similar open-source Django plug-in f

Re: Permissions help

2010-03-12 Thread raj
If you want to impose the restriction only upon delete through admin interface, try to override modelAdmin's has_delete_permission() method. Or else, model.delete(). On Mar 12, 8:37 pm, Brandon Taylor wrote: > I need to add a custom permission to only allow deletes on an object > if it has a cer

Re: ellipsis is not safe, use ellipsis.__new__()

2010-03-12 Thread hejsan
I have been getting this to, I'm running 1.2 beta Are you by any chance using the ldap backend? On Mar 1, 10:53 pm, Scot Hacker wrote: > I've been tracking trunk on 1.2 and recently started getting this > error when get_profile() is invoked: > > TypeError at /item/9/ > > object.__new__(ellipsi

Re: PyCharm IDE - Anyone using it yet

2010-03-12 Thread Joe Kueser
I'm using PyCharm on a daily basis. It's definitely alpha software, but still very usable. Their Django support is pretty limited right now, but gets a little better with each release. If you have your Django project set up in "The Standard Way™" it does a pretty good job. I don't, so there are

Re: Permissions help

2010-03-12 Thread Brandon Taylor
Thanks raj, I'll give that a shot. On Mar 12, 11:11 am, raj wrote: > If you want to impose the restriction only upon delete through admin > interface, try to override modelAdmin's has_delete_permission() > method. Or else, model.delete(). > > On Mar 12, 8:37 pm, Brandon Taylor wrote: > > > I nee

updating db records.

2010-03-12 Thread Omer Barlas
1. I have this problem with DB records. I get the record from the DB like this; def bolgeTextProcess(request, bolge, edit=None): [..] if not errors: try: p = BolteText.objects.get(Id=edit) except:

Putting dictionary element according to another element's value

2010-03-12 Thread Rishat Muhametshin
Hello everyone, I just can't solve a problem. I have an array of dictionaries each having random fields, and those fields are referenced in another variable, like this: something = { "headers": [{"name": "first", "value": "From"}, {"name": "two", "value": "To"}], "content": [{"first": "Al

Re: PyCharm IDE - Anyone using it yet

2010-03-12 Thread Phlip
Joe Kueser wrote: > JetBrains has made it pretty clear that they are aiming to make > PyCharm a Python/Django IDE, meaning support for Django at its core, > not as a side-effect of their Python support, or as the result of a > 3rd party plugin, but built-in.  So definitely worth keeping your eye >

field specific error message

2010-03-12 Thread Amit Sethi
How do you do field specific messages ... like for a Telephone Number , if all characters are not digit send message (no invalid ) . I have tried raising forms.ValidationError like specified here (http://www.djangosnippets.org/snippets/337/) I have also tried changing forms.Form._errors ... it i

MySQLdb error: failed to map segment from shared object: Operation not permitted

2010-03-12 Thread justind
Hello I'm trying to deploy django with mod_wsgi on a media temple. I have an error that says: TemplateSyntaxError: Caught ImproperlyConfigured while rendering: Error loading MySQLdb module: /var/tmp/.python_eggs/ MySQL_python-1.2.3c1-py2.4-linux-i686.egg-tmp/_mysql.so: failed to map segment from

Re: updating db records.

2010-03-12 Thread Daniel Roseman
On Mar 12, 6:50 pm, Omer Barlas wrote: > 1. I have this problem with DB records. I get the record from the DB like > this; > > def bolgeTextProcess(request, bolge, edit=None): > [..] >                 if not errors: >                         try: >                                 p = BolteTex

Re: field specific error message

2010-03-12 Thread Daniel Roseman
On Mar 12, 8:09 pm, Amit Sethi wrote: > How do you do field specific messages ... like for  a Telephone Number , if > all characters are not digit send > message (no invalid )  . I have tried raising forms.ValidationError like > specified here (http://www.djangosnippets.org/snippets/337/) > > I ha

Re: Recording Django user/session/view requests back into a Django model

2010-03-12 Thread Daniel Roseman
On Mar 12, 4:57 pm, Philip Zeyliger wrote: > Hi folks, > > I'd like to measure who's using my site and what views they're looking at. >  Presumably, I'd do this with some middleware that stuffs request.user and > view_func into the database and then build some simple views to look at this > data.

buildout and django

2010-03-12 Thread John Griessen
I tried using buildout to get some django eggs including django-page-cms which has a dependency on mptt svn trunk. How do you take a svn checkout and make an egg, then tell buildout to use that local egg? Or any other way to deal with that in buildout? John -- You received this message because

File validation process

2010-03-12 Thread Vincent
I would like some help in figuring out how to handle file validation in my application. I have a series of processing that I'd like to happen at various stages. Some of this validation might have to happen outside of Django itself, like using JavaScript in the actual form as the files that are to b

Self Join

2010-03-12 Thread jrs
I'm trying, without a great deal of success, to perform a simple self join using the django orm. I'm pretty sure the F() function is not the answer. I believe this only allows you to compare two field within the same model instance, not to compare fields within 2 instances of the same model. I w

Re: Problem template library loading

2010-03-12 Thread Karen Tracey
On Fri, Mar 12, 2010 at 11:37 AM, mrsource wrote: > I have plugged dlevercss application to my Django project. In local > environment (windows xp - python 2.6) I have no errors, but in public > server (Ubuntu linux- python 2.5 - WSGI container), I get this error: > " 'dlevercss_tags' is not a val