Since the Django folder is on your desktop, try typing
cd ~/Desktop/Django-0.96
On Oct 18, 4:19 pm, Paper Planes <[EMAIL PROTECTED]>
wrote:
> Hello Hugh + Others,
>
> Thanks for responding and for the answers!
>
> I ran it at the top unix shell level, not within Python. (I had tried
> both
Sweet! Thanks!
On Sep 7, 9:45 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/7/07, Drasty <[EMAIL PROTECTED]> wrote:
>
> > Unless there's some way to override this without actually tweaking the
> > source code?
>
> http://www.dja
Well. I should've just looked at the code before asking! submit_date
has auto_now_add=True. Looks like I'll be adding comments outside the
Admin!
Unless there's some way to override this without actually tweaking the
source code?
On Sep 7, 9:26 pm, Drasty <[EMAIL PROTECTED]> wrote:
I'm in the process of "re-creating" a series of blog posts & comments
in a new Django project. I can't seem to be able to adjust the "Date/
time submitted" field in the Admin interface. Is this a bug, can't you
do this, or is there a specific technique to use?
Magee" <[EMAIL PROTECTED]>
wrote:
> On 8/26/07, Drasty <[EMAIL PROTECTED]> wrote:
>
>
>
> > Loading 'courses' fixtures...
> > Installing xml fixture 'courses' from '/../eeyore/courses/fixtures'.
> > Problem installing fixture '/../eeyore/courses/f
I'm attempting to use the loaddata action to load an XML file
(generated using the dumpdata action on an MySQL db) to populate an
app in a project that is using PostgreSQL for its db. I receive the
following error:
Loading 'courses' fixtures...
Installing xml fixture 'courses' from
I'll give it a shot.
One alternative I think could work for me is to use just one model for
each of the (current) models I'm trying to merge in the view, with a
bunch of fields that are flagged with "blank=True." This makes
ordering them in generic views very easy, but I don't like the
prospects
I get an AttributeError: 'list' object has no attribute 'model'
Is there a way to circumvent this, or should I try to do something
involving a generic relationship for the models (i.e., a model with
almost nothing to it, to which all the other models have a generic
relationship)? Will that kind
Good to know! Since all the models have a DateTimeField "date"
operator should work. I'll let you know if it works.
On Aug 22, 4:23 pm, Doug B <[EMAIL PROTECTED]> wrote:
> q = list(a) + list(b) + list(c)
> q.sort('-date')
>
> The problem you have here is the q.sort() method doesn't understand
>
On Aug 22, 2:10 pm, "Kai Kuehne" <[EMAIL PROTECTED]> wrote:
> It's just an idea... you could cast to list and use extend.
For the list:
q = list(a) + list(b) + list(c)
q.sort('-date')
I'm unfamiliar, though with "extend." How do I use it?
--~--~-~--~~~---~--~~
Is there a way to concatenate model querysets and use the
concatenation as the basis for a date-based generic view? Or, would I
be able to mimic the generic view code but alter it in such a way that
it handles the concatenation?
(Each of the models would have a DateTimeField called "date")
E.g.
It was a typo. Everything works now. Sorry for the fuss!
On Aug 19, 12:07 pm, Drasty <[EMAIL PROTECTED]> wrote:
> I'm getting an escaped double quotation mark (", rendered as '%22') at
> the end of some stuff that I'm using to reference an anchor on the
> same page.
Sorry, I got confused about your input question re: the note integer.
(The confusion is from my accidental use of single quotes around the
input note value.)
I'm afraid I'm not using any buggy middleware, unless the stuff in
django.contrib is buggy.
I'll investigate to see if will successfully
TED]> wrote:
> Hi,
>
> On 19 août, 19:07, Drasty <[EMAIL PROTECTED]> wrote:
>
> > class Thing(models.Model):
> > words = models.TextField()
> > note = models.IntegerField()
>
> > def note_anchor(self):
> > return self.note
>
I'm getting an escaped double quotation mark (", rendered as '%22') at
the end of some stuff that I'm using to reference an anchor on the
same page. This isn't a problem in templates, since the links and
corresponding anchors are generated. But if I want to enter a link in,
say, a TextField to
Which actually works. Oh, you Django with your various appropriate
ways to call things!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Aha! It has to do with #2.
I get an AttributeError that leads me to think I'm asking the wrong
question. So:
Is there a way to call a field from a related ForeignKey for one of
the attributes of get_absolute_url()?
That is:
class Thing(models.Model):
slug = models.SlugField()
class
On Aug 15, 1:26 pm, RajeshD <[EMAIL PROTECTED]> wrote:
> What error does it throw?
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/r/7/1/
thing objects don't have get_absolute_url() methods
--
I should note that I don't receive
Additional information: I'm using the *latest* SVN version, checked
out less than 2 minutes ago. In addition, I converted all of the
varables in get_absolute_url() to the SlugField model, in an attempt
to overcome any potential unicode hiccups. I still have the same
problem--get_absolute_url()
I have a get_absolute_url() method on the object, but it doesn't
appear in the template, and the admin throws the error in the subject
line if I try to follow the "view on site" link.
Here's a sample model:
class Thing(models.Model):
subject = models.CharField(maxlength=10)
slug =
I should also note that adding
allow_future=True
results in the same 404 error. (I'm also testing with data with dates
in 2006, so "TIME_ZONE" in settings.py shouldn't be a contributing
factor, even though I'm using the "correct" designation for where I
am.)
On Aug 2, 11:42 am, Mackenzie
On Aug 2, 11:42 am, Mackenzie Kearl <[EMAIL PROTECTED]>
wrote:
> You should put some template code up as well
Here you go (there are no variables in "zora.html"):
{% extends "zora.html" %}
{% block title %}Pictures of Zora (from {{ day|date:"N d, Y" }}){%
endblock title %}
{% block bodystyle
I figured out the year archive issue (it doesn't use the object_list,
argh!) but still get 404s for the day and detail generic views.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
I'm getting 404 errors on day and detail views for date-based generic
views. In addition, the year archive doesn't show any entries, but the
month view does!
Here's my urlconf--is there something I'm missing? (I'm using Python
2.4.4, MySQL, & the dev server on localhost.)
from
Have you tried using the http://www.djangoproject.com/
documentation/db-api/#order-by-fields">order_by method on your
queries?
Even though it may get cumbersome, you could also add something along
these lines to your url.py file for each specific query you might want
to call:
def some_list():
Thanks for the suggestion. Even if it doesn't work--I haven't really
looked at Generic Relations before--it'll be fun figuring out how to
play with them. I'll put something up if I figure out anything useful,
either here or at djangosnippets.org
Erik
On Apr 25, 7:01 pm, "Russell Keith-Magee"
Depending on how you want to limit versions in your projects, you
could do something with the "limit_choices_to" argument in your
ForeignKey.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
27 matches
Mail list logo