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,
> > 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):
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
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
>
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
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
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
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
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
>
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:
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
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
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
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()
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 :
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
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.
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
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
¿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
> 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
>
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
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
>
23 matches
Mail list logo