Hi, I am new to Django, so please forgive me if my question is very
basic and/or stupid.
I would like to keep track of Song and Album models, with a many-to-
many relationship between the two (albums contain multiple songs, and
songs can appear on multiple albums).
class Song(models.Model):
t
On Jan 5, 6:33 pm, Peter Rowell <[EMAIL PROTECTED]> wrote:
> > only save sessions which have been modified
>
> Actually, the code in the sessions/middleware is:
> if modified or settings.SESSION_SAVE_EVERY_REQUEST:
> so the whole point is to save it whether it's modified or not.
This w
Dear Sir,
I want closed your side plz except.
--~--~-~--~~~---~--~~
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, se
I want to join your group can you except me waiting your reply.
Regard.
Sankar.
--~--~-~--~~~---~--~~
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
That is to say, the home directory of the user 'django' is '/home/
django'...
On Jan 5, 1:09 am, Josh Ourisman <[EMAIL PROTECTED]> wrote:
> Ok, I'm still having problems. :(
>
> As near as I can tell Django is installed properly, and my project is
> configured correctly (I'm able to run manage.py
Ok, I'm still having problems. :(
As near as I can tell Django is installed properly, and my project is
configured correctly (I'm able to run manage.py syncdb and it actually
does create the proper tables in the database). I created a separate
user called django with a home directory of /home/dir
> Well, if I can't get this working I suppose I can just stuff the
> settings.MEDIA_URL variable into each template render by placing it
> into the render dictionary myself each time.
Nah, don't do that.
I think your problem is that you are running 0.96 instead of trunk.
I am on trunk/6688 and
> only save sessions which have been modified
Actually, the code in the sessions/middleware is:
if modified or settings.SESSION_SAVE_EVERY_REQUEST:
so the whole point is to save it whether it's modified or not.
But then you mentioned:
> perhaps a misconfigured COOKIE_PATH
Does "not conf
> You would have to write your own version of the "ifequal" tag, since
> that is what is responsible for parsing the whole
> "ifequal"..."else"..."endif" block in these cases, so you'd need to
> teach it about "elif" as well. Copy the existing code in
> django/template/defaulttags.py if you want t
> You would have to write your own version of the "ifequal" tag, since
> that is what is responsible for parsing the whole
> "ifequal"..."else"..."endif" block in these cases, so you'd need to
> teach it about "elif" as well. Copy the existing code in
> django/template/defaulttags.py if you want t
>
> You would have to write your own version of the "ifequal" tag, since
> that is what is responsible for parsing the whole
> "ifequal"..."else"..."endif" block in these cases, so you'd need to
> teach it about "elif" as well. Copy the existing code in
> django/template/defaulttags.py if you want
This is pretty amazing. Thank you for doing it! I'd love to be able to
expand/hack on it.
Just out of curiousity, how much time went into getting it to this
point?
--
--Leo
On Jan 4, 1:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Why, I have no idea just got the urge to see if I cou
On Jan 4, 4:19 pm, Peter Rowell <[EMAIL PROTECTED]> wrote:
> > (3) Imported the RequestContext object in my views.py file:
>
> > from django.template import Template, Context, RequestContext
>
> I know this is a silly question, but did you *use* RequestContext, or
> just import it?
>
> E.g.
> r
I have a few models that use django.contrib.auth.models.User
Those models cannot be dumped as a fixture.
Is this expected behavior?
I searched for quite a while, but could not find any information about
it.
The error I get when trying to dump the fixture is:
Error: Unable to serialize database:
Hi Peter,
I've been delving around in that code recently. The only thing I can
think of is that your cookies aren't getting received (perhaps a
misconfigured COOKIE_PATH or one of the other related settings?) so a
new session is getting created and sent each request.
As a side note, I've been th
On Fri, 2008-01-04 at 16:48 -0800, Steve wrote:
> It's possible that maybe I've missed an obvious way of performing this
> feat, and if that's the case I'll apologize early for my naivety.
>
> I'm working on some templates that are drawing a form, and there are a
> couple of special cases that I
On Jan 3, 11:58 pm, Lee Hinde <[EMAIL PROTECTED]> wrote:
> I have two models, presented below:
>
> class Winery(models.Model):
> """(Winery description)"""
> name = models.CharField(blank=False, maxlength=100,
> db_index=True)
> winery_id = models.CharField(blank=True, maxlength=100)
It's possible that maybe I've missed an obvious way of performing this
feat, and if that's the case I'll apologize early for my naivety.
I'm working on some templates that are drawing a form, and there are a
couple of special cases that I want to account for, but I don't want
to have to have ifeq
On Fri, 2008-01-04 at 14:30 -0800, Thomas wrote:
> I am testing django.contrib.comments with django.test.client that does
> not provide request.META['REMOTE_ADDR'] and therefore dies at
> http://code.djangoproject.com/browser/django/trunk/django/contrib/comments/views/comments.py#L252
>
> There
On Fri, 2008-01-04 at 09:51 -0800, Michel Thadeu Sabchuk wrote:
> Hi guys,
>
> I´m using the newforms-admin branch and I have one thing to note about
> modelforms. I used a revision (I can´t tell what) and to instanciate
> the form I need to do:
>
> edit_form = ModelForm(request.POST, instance=
On Fri, 2008-01-04 at 06:04 -0800, Ulf Kronman wrote:
[...]
> This solution may not be rock-solid for the future, since it involves
> a bit of tampering with the URL to the admin list,
Barring any completely hidden and totally showstopping bug, you can
count on admin URLs being stable. "Cool URI
> (3) Imported the RequestContext object in my views.py file:
>
> from django.template import Template, Context, RequestContext
I know this is a silly question, but did you *use* RequestContext, or
just import it?
E.g.
return render_to_response('base.html',
RequestContext(reques
Hi, I read that if I install a context processor, MEDIA_URL will
automatically be available to my templates. However, it's not. Here's
what I've done:
(1) Added the image files to my ftp server here:
myserver.com/sites/myapp/images/
(2) Added this to settings.py (TEMPLATE_CONTEXT_PROCESSORS
Nevermind, it was because of some funky characters in a directory
name
On Jan 4, 6:17 pm, Josh Ourisman <[EMAIL PROTECTED]> wrote:
> Ok, this is probably a bit odd.
>
> I'm working in OS X (obviously). I generally keep my work files stored
> on my iDisk because this makes it incredibly easy t
It appears that setting SESSION_SAVE_EVERY_REQUEST = True is causing a
new session to be created on each page access.
Background:
I was doing some fiddling with a 'session browser' so that we can get
an idea of how people are dealing with our new site. I set this
config value because I wanted t
Ok, this is probably a bit odd.
I'm working in OS X (obviously). I generally keep my work files stored
on my iDisk because this makes it incredibly easy to 1) keep
everything backed up, and 2) keep all my files up to date on multiple
computers. I use the iDisk sync feature so that everything is s
How about a template tag? Pass it the image name and have it set a
var to the correct image.
On Jan 4, 3:29 pm, Emil <[EMAIL PROTECTED]> wrote:
> Thanks Alex, I'm not quite sure what you mean, but I actually gave it
> another go and got something working. I'm passing the value from the
> image_d
I am testing django.contrib.comments with django.test.client that does
not provide request.META['REMOTE_ADDR'] and therefore dies at
http://code.djangoproject.com/browser/django/trunk/django/contrib/comments/views/comments.py#L252
There has been a ticked #407 but that did not change all
request.M
> Are you sure? I think that the online docs are actually correct here...
Yes, i am sure.
If you try to set CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True, you will notice
that the version on django book is the correct one.
From Django Documentation:
Put the CacheMiddleware before any other middleware
Thanks Alex, I'm not quite sure what you mean, but I actually gave it
another go and got something working. I'm passing the value from the
image_detail GET-variable ("products/productname/?image_detail=1")
along with the extra_context to the variable, and looping over the
image set comparing the v
Why, I have no idea just got the urge to see if I could. Probably
stems more from a basic dislike of the Java options (Struts, Spring,
etc) but that is for another list. I guess I got bored of real work
so I dreamed up something else to do over the new years holiday.
And yes for some clients
Select needed image object from base and pass it explicitly to
template context
On 4 янв, 23:43, Emil <[EMAIL PROTECTED]> wrote:
> Greetings, fellow Djangonauts.
>
> Some background to my question:
> I'm building a site where I have Products that each can have one or
> more Images (related via a
On 1/4/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> For some unknown reason I have created a Java port of parts of
> Django,
I'd love to know a little more about *why* you did this. Are you tied
to Java as a platform? I think it's an impressive achievement, but are
you so stuck with Java
Thanks Marty, at least now I know why it's happening. :-)
//emil
On 4 Jan, 21:35, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Jan 4, 2008 3:23 PM, Emil <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi people,
>
> > I'm working on a project where I try to utilize the dumpdata and
> > loaddata commands
> I have posted what I have so far on google code (http://
> code.google.com/p/javango) if anyone is interested.
Interesting, for sure ...
-steve
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Greetings, fellow Djangonauts.
Some background to my question:
I'm building a site where I have Products that each can have one or
more Images (related via a Product f.k on the Image side). The product
images are default ordered by a SmallIntegerField with a priority
rating (of 1-5, 5 being highe
On Jan 4, 2008 3:23 PM, Emil <[EMAIL PROTECTED]> wrote:
> Hi people,
>
> I'm working on a project where I try to utilize the dumpdata and
> loaddata commands from manage.py to extract and load data, since I'm
> constantly moving stuff I'm entering into the db between local
> development server and
For some unknown reason I have created a Java port of parts of
Django, this is not using Jython but instead native Java code using
the same basic syntax (well as close as Java allows). So far it is
pretty interesting and some basic functionality is there (url mapping,
newforms, etc.). I choose
Hi people,
I'm working on a project where I try to utilize the dumpdata and
loaddata commands from manage.py to extract and load data, since I'm
constantly moving stuff I'm entering into the db between local
development server and test server.
However, I find myself consantly having to change th
On Jan 5, 4:09 am, "Marcelo Sanches" <[EMAIL PROTECTED]> wrote:
> I agree ! After trying to configure the django cache system I notice that
> the online docs are wrong and the django book have the correct information
> about the order of MIDDLEWARE_CLASSES.
>
> ONLINE DOCS YOU WILL FIND:
> ...
>
Last 90 days !!!
Vote for Milano Please !!!
*www.infoexpo2015.com*
--~--~-~--~~~---~--~~
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 unsu
Last 90 days !!!
Vote for Milano Please !!!
www.infoexpo2015.com
--~--~-~--~~~---~--~~
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 unsubscri
Last 90 days !!!
Vote for Milano Please !!!
www.infoexpo2015.com
--~--~-~--~~~---~--~~
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 unsubscri
Malcolm thanks for the reply, The javascript code above was working i
was just unable to implement it into my template input box. I will try
as you suggest.
On Jan 4, 10:59 am, Empty <[EMAIL PROTECTED]> wrote:
> So I'm really confused. You asked this same question on
> 12/14:http://groups.goog
Last 90 days !!!
Vote for Milano Please !!!
www.infoexpo2015.com
--~--~-~--~~~---~--~~
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 unsubscrib
> If I am understanding your requirement correctly you are looking for
> databrowse.
I actually tried that, but it doesn't really have the structure I
need, and too many options.
Basically, I want what the admin interface has: a paginated grid with
various fields across the top allowing you to s
I wish someone would right something like this for gedit!
On Jan 4, 6:46 am, Bert Heymans <[EMAIL PROTECTED]> wrote:
> Hi,
>
> If you're a TextMate user this greenish Django syntax highlighting
> theme could interest you:http://www.tmthemes.com/theme/Django/
>
> The colours are easy on the eyes,
Thanks Malcom. That reassured me greatly. I didn't think of the clever
id meta-fields to keep the form from modification, but I ended up
getting a shell implementation with each question being it's own
question form, and the overall quiz form just adds in as many question
forms as there are questi
Hi guys,
I´m using the newforms-admin branch and I have one thing to note about
modelforms. I used a revision (I can´t tell what) and to instanciate
the form I need to do:
edit_form = ModelForm(request.POST, instance=instance_object)
create_form = ModelForm(request.POST)
Now the revision change
So I'm really confused. You asked this same question on 12/14:
http://groups.google.com/group/django-users/browse_frm/thread/3415d1b0bf21cf7a/c26747fb42ae3b24?lnk=st&q=AJAXWidgetComboBox#c26747fb42ae3b24
The original author of the Wiki page that you're referring to
responded. The code is a year
> If you're a TextMate user this greenish Django syntax highlighting
> theme could interest you:http://www.tmthemes.com/theme/Django/
But a bit odd that they use what looks like Ruby code to demo it!
--~--~-~--~~~---~--~~
You received this message because you are
From the template you cannot call function with parameters so yoo must
explicitly pass list to the template context.
On 4 янв, 18:35, Paul Childs <[EMAIL PROTECTED]> wrote:
> I am trying to get all the values from 'tail_number' in the form data
> that gets passed to a template...
>
> form.data (p
I am trying to get all the values from 'tail_number' in the form data
that gets passed to a template...
form.data (printed in view before response is sent back):
I know that if I want access to the tail numbers in a view I can just
do this:
form.data.getlist('tail_number')
I have tried a numbe
> While I understand Ken's point about the book, in that it is no longer
> the complete reference, I would *not* recommend just forgetting it.
> Instead, use it as the valuable resource it is, and supplement your
> nautical sojourn with reference to the online documentation as needed.
> I, for on
Cool Bert! Thanks for posting the link. Just tried out this theme
and it's pretty nice.
--gordy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
thx for the reply malcolm, I am trying to implement the Dojo select
box into one of my forms, I followed the instructions and i know the
javascript is working because I can get results by using the query
string in my browser,
http://localhost:8000/myapp/reporter_lookup/?q= returns results,
The
>
> > On Dec 29 2007, 11:03 am, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> > > Is there 'django.contrib.auth.middleware.AuthenticationMiddleware' in
> > > your MIDDLEWARE_CLASSES ?
>
> > No. Uncommenting
> >'django.middleware.common.CommonMiddleware',
> >'django.contrib.sessions.mi
On Jan 4, 2008 2:26 AM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> forget running the debian version - it will always be way out of
> date. Use the latest svn trunk as described in the tutorial. Also
> forget about using the django book - use the latest docs on the web
> site. The latest svn h
Hello,
If I am understanding your requirement correctly you are looking for
databrowse. Here it is what the documentation says about it:
"""
Databrowse is a Django application that lets you browse your data.
As the Django admin dynamically creates an admin interface by
introspecting your models
Hi all,
I believe that I now have found a way to use the Django admin edit
form, addressed from an external page, and then get returned back to
the external page, rather than the default admin listing of records.
I got a first good hint from Malcolm, and after a little tweaking of
URL configs and
online jobs
Why wasting time on internet?? Earn money online by doing data entry
jobs! No experience needed!! Earn upto $250 by working 30 - 45 minutes
per day! Just log on for more details www.onlinejobsoffer.blogspot.com
--~--~-~--~~~---~--~~
You received this me
Why wasting time on internet?? Earn money online by doing data entry
jobs! No experience needed!! Earn upto $250 by working 30 - 45 minutes
per day! Just log on for more details www.onlinejobsoffer.blogspot.com
--~--~-~--~~~---~--~~
You received this message because
Why wasting time on internet?? Earn money online by doing data entry
jobs! No experience needed!! Earn upto $250 by working 30 - 45 minutes
per day! Just log on for more details www.onlinejobsoffer.blogspot.com
--~--~-~--~~~---~--~~
You received this message because
Thanks malcolm and tim, it does look like this is the only way to to do
this.
Tom
On Jan 4, 2008 3:43 AM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
> On Fri, 2008-01-04 at 03:26 +, Tom Badran wrote:
> > Sure malcolm. Essentially what i have is table of pictures defined by
> > the fol
Hi,
If you're a TextMate user this greenish Django syntax highlighting
theme could interest you: http://www.tmthemes.com/theme/Django/
The colours are easy on the eyes, and it feels like the djangoproject
site. I like it :)
Cheers,
Bert Heymans
--~--~-~--~~~---~--~-
Ok, thanks.
This explains what was going on. I did read that when I was first
learning python, but I bet now, I won't forget about it anymore. I
tried working around it, but that wasn't really working as the default
value for the arguments get changed, also using messages = None wasn't
an option
Interface is still a bit clunky - it's Swing after all, though not as
bad as something like SoapUI (ugh).
Stability is reasonable if don't mix java versions when doing
distributed testing.
On 1/3/08, mamcxyz <[EMAIL PROTECTED]> wrote:
>
> I remember use JMeter eons ago. I dislike the clunky inter
Ah, just to be clear:
the request.POST.has_key('name') searches for the name of the tag and
value is what you get when doing
you_get = request.POST['name']
On Jan 4, 10:14 am, Maarten <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a view with that also requires 3 different actions (and 3
> forms).
Hi,
I have a view with that also requires 3 different actions (and 3
forms). All 3 redirect to this same view once more.
As Jeff said, be sure to get your tags fixed, but you can also add the
following to the submit buttons:
Then in your view put this:
if(request.POST.has_key("search"
On Jan 4, 7:34 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2008-01-03 at 23:10 +0530, venkata subramanian wrote:
> > Hi,
> > I had a problem recently.
> > To access the request object in all of my templates.
> > The solution I got surprised me. It involved explicitly passing o
Thanks a lot for your detailed answer.
In Zen terms, I am 'enlightened' now ;)
On Jan 4, 1:07 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Jan 3, 2008 2:33 PM, annacoder <[EMAIL PROTECTED]> wrote:
>
>
>
> > I understand *how* it is done.
>
> > But, my question was not related to the how pa
71 matches
Mail list logo