Automated deployment

2007-03-29 Thread IvanK
Now I come from the rails camp (obviously deserting :)) and I've been wondering does Django has anything like capistrano for automated deployment, cause it's really easy with rails to just write "rake deploy" and have your production be in sync with your development. I also know that capistrano

Re: a very slow view, > 30secs to load

2007-03-29 Thread [EMAIL PROTECTED]
Have you obtained the raw queries that are being run? If so, how long do they take to run against your db when you execute them yourself? This could be a database performance problem as opposed to a Django problem. On Mar 29, 11:31 pm, "Gary Wilson" <[EMAIL PROTECTED]> wrote: > On Mar 29, 2:26

Re: development server

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 23:01 -0500, Greg Donald wrote: > On 3/29/07, Don Arbow <[EMAIL PROTECTED]> wrote: > > A restart though is trivial: Ctrl-C, up arrow, return and you're back > > in business. > > My restarts go like this.. I hit Ctrl + C, then I press up a couple of > times until I realize

Re: Looking for more tutorials

2007-03-29 Thread Jeremy Dunck
On 3/29/07, Frank <[EMAIL PROTECTED]> wrote: > Are there more tutorials other than the one on the djangoproject site? > Looking to use forms and how to fill dropdrown boxes from a database. There are many here: http://code.djangoproject.com/wiki/Tutorials

Re: development server

2007-03-29 Thread Greg Donald
On 3/29/07, Don Arbow <[EMAIL PROTECTED]> wrote: > A restart though is trivial: Ctrl-C, up arrow, return and you're back > in business. My restarts go like this.. I hit Ctrl + C, then I press up a couple of times until I realize bash is b0rken, then I press down a couple of times to cancel the

Re: development server

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 17:08 -0500, Greg Donald wrote: > On 3/29/07, Rubic <[EMAIL PROTECTED]> wrote: > > Ditto. I don't think I've crashed it but once in three month's > > of development. > > Anytime I have anything wrong in my code and save the file, it tries > to reload the file and

Re: development server

2007-03-29 Thread Karen Tracey
On 3/29/07, Don Arbow <[EMAIL PROTECTED]> wrote: > A restart though is trivial: Ctrl-C, up arrow, return and you're back > in business. True, it's just a minor nuisance. I mentioned it because it was the closest behavior I have observed to what the original poster describes. Though in my

Re: a very slow view, > 30secs to load

2007-03-29 Thread Gary Wilson
On Mar 29, 2:26 pm, "Milan Andric" <[EMAIL PROTECTED]> wrote: > But in the dev environment I can see pretty well that the view is > functioning very quickly. So your hunch about the problem lying in > the templates is probably right. If you aren't seeing the slowdown on your dev server, then

admin interface login/logout

2007-03-29 Thread matty
In my current django project build if I visit the admin interface, then navigate to a different page without logging out, when I return to the admin interface the urls for the buttons and things are missing /admin. I am wondering what the problem is with my setup. Thank you

Re: development server

2007-03-29 Thread Don Arbow
On Mar 29, 2007, at 4:46 PM, Karen Tracey wrote: > > So actually the server continues to "run" but it is pretty useless > given model validation failed. The annoying thing is that when I > correct the error in my models.py file and re-save, the development > server does not auto-reload the

Re: Noob: How to bind objects to specific users?

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 17:42 -0700, Ben Stahl wrote: > Hi, I think I understand modeling, and user/session authentication. > But, what I don't understand is how to use these together to tie some > object instances (stored in the database) to a specific user. For > example, I want each

Re: Django/mod_python high memory usage - possible leak?

2007-03-29 Thread Malcolm Tredinnick
Warning: almost no actual Django-related content below... On Thu, 2007-03-29 at 18:15 +, [EMAIL PROTECTED] wrote: > I'm running a production Django application on two loadbalanced > webservers and a single, dedicated Postgres server handling around > 500k requests/day. I'm using memcached,

Re: Noob: How to bind objects to specific users?

2007-03-29 Thread [EMAIL PROTECTED]
I should be more specific, as you wanted only one instance of a User to be tied to one instance of a RenderQueue. And I should at least answer one or two of your other questions. class RenderQueue(models.model): user = models.OneToOne(User) In the view, to create a new RenderQueue instance

Re: Noob: How to bind objects to specific users?

2007-03-29 Thread [EMAIL PROTECTED]
class RenderQueue(models.Model): user = models.ForeignKey(User) http://www.djangoproject.com/documentation/model-api/#many-to-one-relationships Hope that helps you along in the right direction! -Doug On Mar 29, 8:42 pm, "Ben Stahl" <[EMAIL PROTECTED]> wrote: > Hi, I think I

Re: development server

2007-03-29 Thread G.J. Souverein
2007/3/29, Greg Donald <[EMAIL PROTECTED]>: > > > Is there something more stable for development than this `./manage.py > runserver` nonsense? I can easily crash it and do so quite often as > it turns out. It's such a pain to have to restart it all the time. > And when it crashes it it also

Re: Securing the admin site

2007-03-29 Thread James Bennett
On 3/29/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Eh, it depends what you're doing. Entering CC numbers? You probably want > SSL. I'd want much more than SSL ;) I guess I'm not sure what's meant by "securing" here; accessing anything in the admin app requires the user to be authenticated

Re: User profile and sliding date range data model?

2007-03-29 Thread James Bennett
On 3/29/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > I can't think of a way to account for "up to last 3 years" and "up to > the next 5 years" or variation thereof. paid_up_until = models.DateField() Then use Python's standard 'datetime.timedelta' to handle offets; e.g., if a member pays up for

Noob: How to bind objects to specific users?

2007-03-29 Thread Ben Stahl
Hi, I think I understand modeling, and user/session authentication. But, what I don't understand is how to use these together to tie some object instances (stored in the database) to a specific user. For example, I want each authenticated user of the application to have a single instance of my

Re: Long time process and FCGI

2007-03-29 Thread Anderson Santos Silva
That's exactly what I thought when I dealed with that, but I can't imagine a separated process running in the background and return a response to the user that his "action" was activated if every method waits to get back instead of a kind of thread operation. (Yes, I came from windows

Left Joins / Inheritance / Plugins ...whatever...

2007-03-29 Thread Michael Cuddy
Hard to come up with an appropriate subject for this question.. Here's the issue: (The site is a small-theater company management app) I have a model 'Patrons' which encapsulates all of the people that I want to track in my site. A Patron is anyone who's done anything with-or-for the theater

User profile and sliding date range data model?

2007-03-29 Thread Rob Hudson
I'm trying to think how I can solve this problem in my data model and I'm coming up empty. I thought I'd post it here to see if anyone else had a good idea... I built a members-only website for due paying members. We'd like to use the profile via the Django admin as a way to track which

Re: a very slow view, > 30secs to load

2007-03-29 Thread Milan Andric
Great pointers, thanks! I will look at that. In the meantime I thought i would post my debug info. I used this snippet in my template to see what queries are happening. http://www.djangosnippets.org/snippets/93/ Looks like I'm making quite a few queries there, 71, but they still don't seem

Re: development server

2007-03-29 Thread G.J. Souverein
2007/3/29, Greg Donald <[EMAIL PROTECTED]>: > > > Is there something more stable for development than this `./manage.py > runserver` nonsense? I can easily crash it and do so quite often as > it turns out. It's such a pain to have to restart it all the time. > And when it crashes it it also

Re: Long time process and FCGI

2007-03-29 Thread Atilla
Hello, By the looks of it, mod_fcgi has a limit as to how much time it could wait for response from a script. Since you're doing a heavy operation that takes a while, i guess it times out. The point is - if your executed action takes so much time, you're clearly having a wrong conception on

Re: URL prefix in applications and templates.

2007-03-29 Thread Michael Lake
Jeremy Dunck wrote: > On 3/29/07, Michael Lake <[EMAIL PROTECTED]> wrote: > ... >>MyTag is {{ mytag }} end. >> > {% mytag %} > {{ }} is for variables. :) Thanks. With that change it is now working. Although I had read the documentation and it shows {% %} when I was editing in the HTML

Re: development server

2007-03-29 Thread Karen Tracey
Not sure if this is what Greg Donald is seeing, but what I have observed is that if I have an error that causes model validation to fail, I get notified of the error when the development server auto-reloads the file, for instance: Validating models... xword.crossword: 'class Meta' got

Re: How to import Group from auth model to my model?

2007-03-29 Thread Russell Keith-Magee
On 3/29/07, TaMeR <[EMAIL PROTECTED]> wrote: > > Without the , verbose_name=_('Groups') it worked > > > from django.db import models > from django.contrib.auth.models import User, Group > > > class Company(models.Model): > name = models.CharField(maxlength=30, verbose_name=_('Company')) >

Re: a very slow view, > 30secs to load

2007-03-29 Thread Joseph Heck
You can also whack together a quick Python logger to do the logging, which is what we've done in the past. Some example code for you: in the __init.py__ for the views (so the logger can be used anywhere) from django.conf import settings import logging # Grabs or creates a new logging object

UnicodeEncodeError in Admin site

2007-03-29 Thread Lars Wessman
I am using Django svn, updated 2 days ago. DEFAULT_CHARSET is set to 'utf-8' and the files with unicode characters are all marked -*- coding: uft8 -*-. When trying to view a row in one of my models in the admin site (the data was entered using a newforms view), I get the following following

Re: Rails/Django comparison synopsis

2007-03-29 Thread Ian Holsman
management perspective - ease of deployment - ease of development - ease of training your developers I would say both Rails & Django are comparable in these, both easily beat the competition (java / PHP). - ease of finding developers Rails wins on this one I think .. there are more rails

Re: a very slow view, > 30secs to load

2007-03-29 Thread Graham Dumpleton
On Mar 30, 5:26 am, "Milan Andric" <[EMAIL PROTECTED]> wrote: > On Mar 28, 6:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > > > On Wed, 2007-03-28 at 19:59 +, Milan Andric wrote: > > > Hellow, > > > > Any advice you can offer on optimizing this view would be greatly > > >

Re: development server

2007-03-29 Thread Greg Donald
On 3/29/07, Rubic <[EMAIL PROTECTED]> wrote: > Ditto. I don't think I've crashed it but once in three month's > of development. Anytime I have anything wrong in my code and save the file, it tries to reload the file and immediately crashes. It doesn't just crash returning me to a bash prompt,

Long time process and FCGI

2007-03-29 Thread Anderson Santos Silva
Hello, I have a process that sends an e-mail to more then 5000 addresses (grouping it in 50 each time) and after a while it gives me the error: --- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact

Re: development server

2007-03-29 Thread Rubic
On Mar 29, 4:28 pm, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > Strange -- I rarely (if ever) have had the runserver crash on me, and > I use it almost every day. Ditto. I don't think I've crashed it but once in three month's of development. -- Jeff Bauer Rubicon, Inc.

Re: Django/mod_python high memory usage - possible leak?

2007-03-29 Thread [EMAIL PROTECTED]
> ... Failing all else start > profiling. Coordinate those memory usage stats you have with what is > going on in the server to help narrow down where in your code to > look. Hope that helps and good luck. Is there a way of profiling mod_python with hotshot (or another tool) that will give me

Re: development server

2007-03-29 Thread Adrian Holovaty
On 3/29/07, Greg Donald <[EMAIL PROTECTED]> wrote: > Is there something more stable for development than this `./manage.py > runserver` nonsense? I can easily crash it and do so quite often as > it turns out. Strange -- I rarely (if ever) have had the runserver crash on me, and I use it almost

maxlength is always 10 with text widget

2007-03-29 Thread tyman26
I have a charField in a newForm with a max_length=25, but when I load the form it gets set to 10 everytime. If I get rid of the widget, then the max_length is set correctly at 25. Does anyone know why the widget would automatically set the maxlength to a default value? Here is my code:

Re: Securing the admin site

2007-03-29 Thread Jeremy Dunck
On 3/29/07, trickyb <[EMAIL PROTECTED]> wrote: > is in itself an answer: the admin site is safe > enough as it is :-) Eh, it depends what you're doing. Entering CC numbers? You probably want SSL. Entering blog posts? Not so much. --~--~-~--~~~---~--~~ You

Re: development server

2007-03-29 Thread Pablos
On Mar 29, 2007, at 1:33 PM, Greg Donald wrote: > Is there something more stable for development than this `./manage.py > runserver` nonsense? I can easily crash it and do so quite often as > it turns out. It's such a pain to have to restart it all the time. > And when it crashes it it also

development server

2007-03-29 Thread Greg Donald
Is there something more stable for development than this `./manage.py runserver` nonsense? I can easily crash it and do so quite often as it turns out. It's such a pain to have to restart it all the time. And when it crashes it it also breaks stdout, so I have to reset my bash again and again

Re: Securing the admin site

2007-03-29 Thread trickyb
> on how to restrict access and redirect to ssl based on many criteria (url, > username, certificate ...) I'd wondered about using SSL for securing the admin site, just wasn't sure if it was worth the effort. I guess that the fact that my question did not generate 10 immediate "OMG The Admin

AGLOCO

2007-03-29 Thread Rashde0958
Ladies and gentlemen, hello URGENT Signup and Promote. A February, 2007 start New Network Business. This business may become standard of Internet such as Google and Yahoo.Participation is free of charge.Let's signup and promote. This note is mainly to offer you a chance to help build AGLOCO ?

INTIMATE DATING

2007-03-29 Thread mani
Search Profiles - FREE! Intimate Dating. Start Chatting within seconds - http://surl.in/HLMAT238206SVRAKSX-google --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

How to prepopulate a slug field with a foreign key?

2007-03-29 Thread Rick van Hattem
I have just written a model to extend the user model a bit and now I'd like to add a slug field for the username, however, I can't get the slug field to prepopulate from the user foreign key. A simplified version of the model would be this: from django.db import models from

Re: Django/mod_python high memory usage - possible leak?

2007-03-29 Thread Adrian Holovaty
On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > My most popular view looks for a memcached RSS feed, and if it doesn't > exist, uses URLLIB2 to go out and get it (then cache it). I've read > about possible problems with URLLIB2.openurl() that it might not free > the socket after use.

Re: a very slow view, > 30secs to load

2007-03-29 Thread Milan Andric
On Mar 28, 6:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2007-03-28 at 19:59 +, Milan Andric wrote: > > Hellow, > > > Any advice you can offer on optimizing this view would be greatly > > appreciated. > > >http://dpaste.com/7543/ > > > I was planning on trying to reduce the

Re: raw_id_admin and newforms

2007-03-29 Thread Adrian Holovaty
On 3/29/07, Paul Childs <[EMAIL PROTECTED]> wrote: > I understand that raw_admin_id is being removed and it will only be > available as part of the Admin inner class in a model. Does this make > it unaccessible to custom forms? Hi Paul, The raw_id_admin parameter is an admin option -- i.e., it

Chemysis

2007-03-29 Thread Charmie
http://www.chemysis.com/forums;>Neopets programs http://www.chemysis.com/forums;>Neopets game trainers http://www.chemysis.com/forums;>Millions of NP Chemysis has a HUGE neopets section where you can buy, sell and trade stuff, view and post guides, get autobuyers, game trainers and other

Re: Django/mod_python high memory usage - possible leak?

2007-03-29 Thread [EMAIL PROTECTED]
You stated that things were working fine and lately they have gone South. Usually in this case it isn't about something breaking all of a sudden. Something has probably changed. Start with what you have changed. Added any new features or code lately? Moving out further have there been any

raw_id_admin and newforms

2007-03-29 Thread Paul Childs
My searching hasn't yielded much so here it goes... I understand that raw_admin_id is being removed and it will only be available as part of the Admin inner class in a model. Does this make it unaccessible to custom forms? If this is the case, does anyone know how to duplicate the raw_admin_id

Django/mod_python high memory usage - possible leak?

2007-03-29 Thread [EMAIL PROTECTED]
I'm running a production Django application on two loadbalanced webservers and a single, dedicated Postgres server handling around 500k requests/day. I'm using memcached, and my database server performance has been fantastic. Lately, I've been hitting very high percentages of free memory used,

Re: A silly question from a tired a man

2007-03-29 Thread Ned Batchelder
In particular, you want to use request.POST.getlist('countries') which returns the full list of values to you. --Ned. James Bennett wrote: > On 3/29/07, olive <[EMAIL PROTECTED]> wrote: > >> This is the request.POST I get from a (new)form: >> > ['Register'], 'countries': ['DE', 'ES']}> >>

Looking for tutorials

2007-03-29 Thread Frank
Hello, Sorry, I posted this question wrong, by replying to another post. I am new to django and python. I have experience in .net and php and jsp. Are there more tutorials other than the one on the djangoproject site? Looking to use forms and how to fill dropdrown boxes from a database.

Re: A silly question from a tired a man

2007-03-29 Thread James Bennett
On 3/29/07, olive <[EMAIL PROTECTED]> wrote: > This is the request.POST I get from a (new)form: > ['Register'], 'countries': ['DE', 'ES']}> > > No I want to have the 'countries' list but request.POST[''countries'] > gives me 'ES' instead of the entire list. Because HTTP allows multiple values

Re: A silly question from a tired a man

2007-03-29 Thread olive
OK, I need dict(request.POST)[''countries'] ! But why ? On 29 mar, 17:03, "olive" <[EMAIL PROTECTED]> wrote: > Hello, > > This is the request.POST I get from a (new)form: > ['Register'], 'countries': ['DE', 'ES']}> > > No I want to have the 'countries' list but request.POST[''countries'] >

A silly question from a tired a man

2007-03-29 Thread olive
Hello, This is the request.POST I get from a (new)form: No I want to have the 'countries' list but request.POST[''countries'] gives me 'ES' instead of the entire list. WHY ? Do I really to go home now ? Olivier. --~--~-~--~~~---~--~~ You received this

Looking for more tutorials

2007-03-29 Thread Frank
Hello, I am new to django and python. I have experience in .net and php and jsp. Are there more tutorials other than the one on the djangoproject site? Looking to use forms and how to fill dropdrown boxes from a database. Thanks Frank --~--~-~--~~~---~--~~ You

Instantly Turn your Computer into a Super TV

2007-03-29 Thread mani
Instantly Turn your Computer into a Super TV - http://surl.in/HLSTV238206SVRAKSX-google --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: New lines in tags and bug etiquette

2007-03-29 Thread lakin
On Mar 29, 10:20 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 3/29/07, lakin <[EMAIL PROTECTED]> wrote: > > > As it stands, In order to get discussion on this use case I > > (supposedly) have to subscribe to Django users and talk about it > > there. Django users is a high-noise list

Re: New lines in tags and bug etiquette

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 15:51 +, lakin wrote: > We have the following tag. It's well over 80 characters long, and for > our own sanity we'd prefer to use a newline within the tag. > > One technical problem with allowing newlines in there is that error detection (and reg-exp efficiency)

permission denied from development server

2007-03-29 Thread akonsu
hello, i am running development server from a windows command line and when i navigate to localhost:8000 i get Permission denied: / i do not even know where to start debugging. "manage.py syncdb" works fine, so it is not because of my setup or anything like that. i think. thanks konstantin

Re: New lines in tags and bug etiquette

2007-03-29 Thread Jacob Kaplan-Moss
On 3/29/07, lakin <[EMAIL PROTECTED]> wrote: > As it stands, In order to get discussion on this use case I > (supposedly) have to subscribe to Django users and talk about it > there. Django users is a high-noise list and in my opinion isn't the > place to be having development discussions.

New lines in tags and bug etiquette

2007-03-29 Thread lakin
We have the following tag. It's well over 80 characters long, and for our own sanity we'd prefer to use a newline within the tag. We went looking for this bug report and I was very surprised at the content seen therein: http://code.djangoproject.com/ticket/1147 As it stands, In order to get

Google Recruiter Hiring Engineers [EMAIL PROTECTED]

2007-03-29 Thread Oldstir
People don't realize that Google develops its own leading-edge hardware and Linux based networking systems -- and I would guess is one of the largest non-military users of computing power in the world. I am a GOOGLE RECRUITER, looking for: Experienced Networking Software Engineer - a Networking

Re: Managing users through Admin app

2007-03-29 Thread Thom Allen
OK, so your suggestion worked. I used the example code and added my LDAP code into one authentication module and it worked great. Here is the code I used in the end. I'll add a code snippet if possible for others to use. http://www.djangosnippets.org/snippets/142/ Portions of my code were used

Re: Time length - Long and relative TimeField

2007-03-29 Thread Honza Král
On 3/29/07, Gilhad <[EMAIL PROTECTED]> wrote: > > > > > 240:00:00 (alternatively 10d 00:00:00) > > > > > > Does the timesince filter do what you require? > > > > If I understand correctly, gilhad wants to specify an interval. > > > > Possible solutions: use two PositiveIntegerFields

Re: Building PythonMagick

2007-03-29 Thread James Bennett
On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Django does not require PythonMagick. > It is recommended you install PIL, but that also is not a requirement. PIL is required if any of your models have an ImageField in them; otherwise it's not. -- "Bureaucrat Conrad, you are

Re: manage.py setting sys.path wrong

2007-03-29 Thread James Bennett
On 3/29/07, Lukas Kolbe <[EMAIL PROTECTED]> wrote: > Okay. I renamed my project from "site" to another name ... and voila, > everything works as expected. Yeah, that was almost certainly a conflict with the built-in Python module 'site'[1]. There are some checks in manage.py now which do their

Re: manage.py setting sys.path wrong

2007-03-29 Thread Lukas Kolbe
Am Donnerstag, den 29.03.2007, 23:54 +1000 schrieb Malcolm Tredinnick: Okay okay, you got me there. I wondered if I missed anything and looked again at the django tutorial (which I didn't to for quite a while), and what's there? Yes, from tutorial number 1: > > You’ll need to avoid naming

Re: URL prefix in applications and templates.

2007-03-29 Thread Jeremy Dunck
On 3/29/07, Michael Lake <[EMAIL PROTECTED]> wrote: ... > MyTag is {{ mytag }} end. > {% mytag %} {{ }} is for variables. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: multilanguage folder names in urls?

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 06:22 -0700, voltron wrote: > Hi! Is it possible to use i18n for folder names in url patterns? For > example "/accounts" in english would translate automatically to > "konten" in German. Not completely clear what you're asking here. URLs are just strings. The fact that they

Re: manage.py setting sys.path wrong

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 14:26 +0200, Lukas Kolbe wrote: > Hi! > > I have a problem I came across for a while now. > > To start the fcgi-instance, I use manage.py as follows: > > su -c "DJANGO_DB_NAME=dbname DJANGO_DB_PASS=dbpass \ > DJANGO_DB_USER=dbuser DJANGO_SECRET_KEY=secret \ >

Re: Managing users through Admin app

2007-03-29 Thread Forest Bond
On Thu, Mar 29, 2007 at 12:42:34PM -, RajeshD wrote: > The idea with the above snippet is that when you add a user, you would > enter a valid username as well as an email address. The user can then > login by entering either the username or the email address in the > admin login screen. That

Re: Time length - Long and relative TimeField

2007-03-29 Thread Gilhad
> > > 240:00:00 (alternatively 10d 00:00:00) > > > > Does the timesince filter do what you require? > > If I understand correctly, gilhad wants to specify an interval. > > Possible solutions: use two PositiveIntegerFields to supply days > and/or minutes and use them to construct a

Re: get_or_create isn't atomic?

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 05:29 +, John Penix wrote: > I think I saw a get_or_create race condition today from concurrent > runs of our data uploader that uses the model API. Ouch. The docs > have several references to the api calls being atomic - now I'm > thinking get_or_create is an

Re: manage.py setting sys.path wrong

2007-03-29 Thread Lukas Kolbe
> On Thu, Mar 29, 2007 at 02:26:32PM +0200, Lukas Kolbe wrote: > > > > Hi! > > > > I have a problem I came across for a while now. > > > > To start the fcgi-instance, I use manage.py as follows: > > > > su -c "DJANGO_DB_NAME=dbname DJANGO_DB_PASS=dbpass \ > > DJANGO_DB_USER=dbuser

Re: manage.py setting sys.path wrong

2007-03-29 Thread Brett Parker
On Thu, Mar 29, 2007 at 02:26:32PM +0200, Lukas Kolbe wrote: > > Hi! > > I have a problem I came across for a while now. > > To start the fcgi-instance, I use manage.py as follows: > > su -c "DJANGO_DB_NAME=dbname DJANGO_DB_PASS=dbpass \ > DJANGO_DB_USER=dbuser DJANGO_SECRET_KEY=secret \ >

Re: How to import Group from auth model to my model?

2007-03-29 Thread Jeremy Dunck
This sounds like a bug. Please file a ticket. On 3/29/07, TaMeR <[EMAIL PROTECTED]> wrote: > > Without the , verbose_name=_('Groups') it worked > > from django.db import models > from django.contrib.auth.models import User, Group > > > class Company(models.Model): > name =

multilanguage folder names in urls?

2007-03-29 Thread voltron
Hi! Is it possible to use i18n for folder names in url patterns? For example "/accounts" in english would translate automatically to "konten" in German. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Securing the admin site

2007-03-29 Thread Robert Smol
> > > This is a somewhat open-ended question: what are people doing to > secure their admin sites against unwelcome visitors? On my site, what > I've done is change the URL root from /admin/ to something else so > that casual visitors do not know where to look. > I guess apache is quite powerful

Re: Managing users through Admin app

2007-03-29 Thread Thom Allen
OK, I think I understand. It's not a replacement for the username it just allows a user to enter either jimbob or [EMAIL PROTECTED] I think I got it. Trying it as we speak. Thanks for the help. --Thom On 3/29/07, RajeshD <[EMAIL PROTECTED]> wrote: > > > Hi Thom, > > On Mar 28, 10:13 pm, "Thom

Securing the admin site

2007-03-29 Thread trickyb
Hello, This is a somewhat open-ended question: what are people doing to secure their admin sites against unwelcome visitors? On my site, what I've done is change the URL root from /admin/ to something else so that casual visitors do not know where to look. I'm wondering now if that's enough, or

Re: Poll tutorial question

2007-03-29 Thread Gilhad
On Wednesday 28 March 2007 11:50, wheresdave wrote: > got it fixed. Whitespace was showing up before pass. found the setting > in scite to show whitespace. Well, whitespaces in Python are pretty difficult to keep in line, if you are used to other languages. I personally use Tabs for intending

Re: Managing users through Admin app

2007-03-29 Thread RajeshD
Hi Thom, On Mar 28, 10:13 pm, "Thom Allen" <[EMAIL PROTECTED]> wrote: > I'll try it with just the one backend, but maybe I haven't explained my > problem correctly. This won't fix the problem. Multiple authentication backends are supported by Django (it just tries them all in succession and

Re: Time length - Long and relative TimeField

2007-03-29 Thread Honza Král
On 3/29/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 3/29/07, Gilhad <[EMAIL PROTECTED]> wrote: > > > > > > Hello, is there something to use for long time periods like 30 hours or 2 > > years, which can be displayed as time? > > > 240:00:00 (alternatively 10d 00:00:00) >

manage.py setting sys.path wrong

2007-03-29 Thread Lukas Kolbe
Hi! I have a problem I came across for a while now. To start the fcgi-instance, I use manage.py as follows: su -c "DJANGO_DB_NAME=dbname DJANGO_DB_PASS=dbpass \ DJANGO_DB_USER=dbuser DJANGO_SECRET_KEY=secret \ /srv/vhosts/myhost/site/manage.py runfcgi daemonize=false \

Re: get_or_create isn't atomic?

2007-03-29 Thread Frankie Robertson
On 29/03/07, John Penix <[EMAIL PROTECTED]> wrote: > > I think I saw a get_or_create race condition today from concurrent > runs of our data uploader that uses the model API. Ouch. The docs > have several references to the api calls being atomic - now I'm > thinking get_or_create is an

How to import Group from auth model to my model?

2007-03-29 Thread TaMeR
Without the , verbose_name=_('Groups') it worked from django.db import models from django.contrib.auth.models import User, Group class Company(models.Model): name = models.CharField(maxlength=30, verbose_name=_('Company')) groups = models.ManyToManyField(Group)

How to import Group from auth model to my model?

2007-03-29 Thread TaMeR
I am trying to import Group from the auth models in to my model. I like to get a select box in the admin area just like the one we get when we are in the admin user panel for my Company model. Here is what I got but as soon as I add the line "groups = models.ManyTo" the Company module

Re: special chars "error in Admin"

2007-03-29 Thread Atilla
Have you tried switching to UTF-8, if you need support for "funny" character sets ? You'll need to change your database and table encodings to UTF8 (with appropriate collation, if you need proper sorting) and the output content-type. On 28/03/07, enquest <[EMAIL PROTECTED]> wrote: > > In Django

cool!!!!!!

2007-03-29 Thread aviel570
www.icq6.drix.co.il --~--~-~--~~~---~--~~ 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 [EMAIL

Re: special chars "error in Admin"

2007-03-29 Thread enquest
In this case I can't use tiny mce there should be a other solution? Op donderdag 29-03-2007 om 14:03 uur [tijdzone +0530], schreef Kenneth Gonsalves: > > On 29-Mar-07, at 12:27 PM, enquest wrote: > > > Op woensdag 28-03-2007 om 13:18 uur [tijdzone +0200], schreef enquest: > >> In Django admin

XML-RPC call for django unit testing

2007-03-29 Thread meledictas
Hi I 'm trying to test django app using built-in django unit testing. Some of it make a call to xml-rpc server using xmlrpclib. Now, I use django testing framework and can run unit testing except that I can't enable in-process xml-rpc server. My idea is, create xml-rpc server mock as a

Re: special chars "error in Admin"

2007-03-29 Thread Kenneth Gonsalves
On 29-Mar-07, at 12:27 PM, enquest wrote: > Op woensdag 28-03-2007 om 13:18 uur [tijdzone +0200], schreef enquest: >> In Django admin entering the following quote chars � � 'copy >> paste' in a >> textarea field gives this error... "Data truncated for column ..." >> >> How can this be? And

cool!!!!!!!!!!!

2007-03-29 Thread aviel570
www.icq6.drix.co.il --~--~-~--~~~---~--~~ 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 [EMAIL

Perfect Browser Game

2007-03-29 Thread Serkan USTA
Multi language,Perfect game http://www.travian.com.tr/?uc=tr2_11801 --~--~-~--~~~---~--~~ 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