Re: Is there some way to log every SQL command sent to the DB?

2010-10-24 Thread m1chael
You could turn on logging through your DB On Sat, Oct 23, 2010 at 12:30 PM, Phlip wrote: > Google leads me to this: > >        from django.db import connection >        print connection.queries > > It can't see the queries the test runner used to set up the database. > > So,

Re: inheritance of fields and default values from parent model class

2010-10-24 Thread Phlip
> > class MyModel(models.Model): > >     alias = models.ForeignKey('self', blank=True, null=True) > >     manager = [my alias manager here] > >     def getAlias: > >           [whatever I need] > > > class Person(MyModel): > >     name = models.CharField(max_length=255) > > > class Place(MyModel):

Re: inheriting User class

2010-10-24 Thread Rob
Probably most of us are using the separate profile model, as recommended. I actually have multiple models associated with users on one project: User (from auth) UserInfo (things rarely accessed such as address, emergency contact info, etc.) UserProfile (my application specific profile) I'm

Re: inheritance of fields and default values from parent model class

2010-10-24 Thread Phlip
pixelcowboy wrote: > Hi, I would like to create an inheritance relationship, similar to an > abstract class, where the child class inherits all thefieldsfrom the > parent class, but also gets its default values from the parent > instance. So basically Im confused about the concepts, I know an >

Getting unicode string from URL

2010-10-24 Thread Morten Pedersen
Dear folks I am working on an rest API. Here some objects with weird letters in them are requested by the client using percent escaping (This is beyond by control). So a request for: http://example.com/auth/groups/KØVS/ Is requested like so: http://example.com/auth/groups/K%2BVS/ When i get

RE: Django and Flux

2010-10-24 Thread Sells, Fred
Agree. We do the same. It's much easier if you have a dual monitor setup and flex on one and django on the other. I use XML rather than pyAMF because it was easier to debug. Just create an xml file and set your HttpService.url to that in Flex; then later make Django generate the same thing. I

Re: Custom filterspecs - ManyToMany, but inverted

2010-10-24 Thread thorstenkranz
Hi, does really nobody have an idea how to do it? It would be so great if somebody could help me. I guess it can'T be that dificult... Greetings, Thorsten On 21 Okt., 09:09, thorstenkranz wrote: > Hi, > > I'm trying to get some filter for my admin page on a

Re: my first (public) app: django-requires_js_css

2010-10-24 Thread Sam Lai
On 21 October 2010 16:01, Jason Persampieri wrote: > http://github.com/pappy74/django-requires_js_css > > Howdy folks, > > I was hoping to get some feedback on my first public app, django- > requires_js_css.  The app's purpose is to allow 'sane' JavaScript and > CSS

Re: Users table

2010-10-24 Thread Tran Cao Thai
http://www.lightbird.net/dbe/index.html Very good for beginners On Mon, Oct 25, 2010 at 8:53 AM, Miguel Araujo wrote: > Hi, > Django has a built in User model, If you put in your INSTALLED_APPS > 'django.contrib.auth' you will activate Django's built-in user management >

Re: Users table

2010-10-24 Thread Miguel Araujo
Hi, Django has a built in User model, If you put in your INSTALLED_APPS 'django.contrib.auth' you will activate Django's built-in user management app. Then if you want to have registration, I recommend you look at django-registration by James Bennett:

Re: my first (public) app: django-requires_js_css

2010-10-24 Thread Doug
I'm also interested in something like this. I've tried it a couple of different ways, but have not been all the happy with the results/ implementation. It seemed like post-parsing for tokens was trouble since it hurt performance somewhat, and gets ugly if you are serving the occasional big file

Users table

2010-10-24 Thread miksayer
Hello! I'm newbie in Django. And I have few questions. For learning Django I decided to develop simple todo-service(where you can note your current deals). I started new project "todo" and immediately I have a question. Where can I put users table model? Must I create new application and put it

How to switch L10N off in django

2010-10-24 Thread alecs
LANGUAGE_CODE = 'ru-RU' USE_I18N = True # If you set this to False, Django will not format dates, numbers and # calendars according to the current locale USE_L10N = False {{ post.date_added|date:"b" }} gives "окт" in templates. If I set USE_I18N = False then it gives oct as it should be. Is

How to customise a ModelForm and retain validation?

2010-10-24 Thread Brendon
Hi all, Is there some way of creating a single form that combines multiple Models (Auth, User and AuthPermissions as seen in my example below) and treats them as a single object (not a relation of multiple objects)? I tried to do this myself using the code below. When I use it the user.save()

Linky

2010-10-24 Thread Venkatraman S
Hi Guys, Just thought of starting a thread with some useful links in the Django World: http://djangopluggables.com/ http://www.djangofoo.com/ Django in Depth (PyCon 2010) http://djangocon.blip.tv/file/3322277/ http://lightbird.net/dbe/ Converting Django models into Graphviz DOT files :

Re: trouble installing django & connecting to irc

2010-10-24 Thread Shawn Milochik
On Sun, Oct 24, 2010 at 6:26 AM, Michael Scull wrote: > Hi, > I'm having trouble installing django and connecting to irc. > > -- > Mit freundlichen Grüßen / Best Regards, > Michael D Scull > If you want help, please look up the exact error output you're getting in the "Search

Embed the file system path to a template??

2010-10-24 Thread Joakim Hove
Hello, to assist those responsible for the content of "my" site I would like to embed the file-system path to the template in the rendered template, so that when they find something they are dissatisfied with on a page they can do "View Source" and easily identify the correct template to update.

Slug auto-complete after save

2010-10-24 Thread Alex
Hi all, Slug autocomplete feature is really cool with: prepopulated_fields = {'slug':('title',)} Is it possible to prepopulating slug field even after save - when I want to change title for example? Actually I use django-multilingual and prepopulating of slug works only for the first language

trouble installing django & connecting to irc

2010-10-24 Thread Michael Scull
Hi, I'm having trouble installing django and connecting to irc. -- Mit freundlichen Grüßen / Best Regards, Michael D Scull -- 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

Re: inheriting User class

2010-10-24 Thread Miguel Araujo
¿no one knows anything about this? Thanks, regards Miguel Araujo 2010/10/22 Miguel Araujo > Hello everyone, > > I'm not very aware about what's the direction Django is taking about the > User model and making it swappable. Meanwhile I would like to ask if > inheriting the

Re: Forms: set required value at runtime

2010-10-24 Thread bobo
> Bence, > > I think your problem is related to the second case described in > documentation about validation fields that depend on each other [1]. > > Just an observation about your design, if I may: I believe you should > explicitly set and store both addresses. You will ease user task by >

Re: my first (public) app: django-requires_js_css

2010-10-24 Thread Jason Persampieri
Just a quick note, I changed the name to django-requires_assets. I could imagine a future where this is used to pre-load images or other assets. The name seemed a bit more future-proof. http://github.com/pappy74/django-require_assets On Oct 20, 10:01 pm, Jason Persampieri

Re: Django 1.2.3 test fixtures are slower than creating every model object each time setUp() calls.

2010-10-24 Thread Russell Keith-Magee
On Saturday, October 23, 2010, Phlip wrote: > Djangoists: > > My last project got into trouble because the .json test fixtures took > so bloody long to run. (I fussed about that here at the time...) > > So I started my current, blue-sky project with an absolutely clean new >