me2...
Am Freitag, 20. Juni 2008 05:50:13 schrieb Juan Hernandez:
> me 2 :D
>
> On Fri, Jun 20, 2008 at 10:42 PM, k0001 <[EMAIL PROTECTED]> wrote:
> > Can I jump into the "THANKS" bandwagon?
> >
> > Thanks. =)
> >
> > On Thu, Jun 19, 2008 at 11:41 PM, Gene Campbell <[EMAIL PROTECTED]>
> >
> >
re you seem to store your actual
media files? If this "data_files" property does what I think it does, then
you import admin media from site-packages, but not your own media files. And
btw, there's a backslash missing in the third line, too.
hth,
chris
--~--~-~--~~---
Am Mittwoch, 25. Juni 2008 23:17:37 schrieb Fernando Rodríguez:
> Hi,
>
> I'm currently learning django on Ubuntu, but my background is Windows,
> so I'm not a VIM kind of guy. What kind of IDE do you guys use or
> recommend?
>
> Thanks in advance.
Eclipse + Pydev + Aptana (for HTML/CSS/Javascrip
I have a view which returns a group of upcoming events. I would like
to display the events grouped by week:
Week of June 22
* Event 1
* Event 2
* Event 3
Week of June 29
* Event 4
* Event 5
* Event 6
I've seen examples for doing this using the ifchanged tag, and I've
got that working. But I c
On Jun 26, 10:44 am, "Scott Moonen" <[EMAIL PROTECTED]> wrote:
> Chris, I have a utility function that does this for me. You can call it
> from your view, or if you set things up right from your template:
Good stuff, Scott. Thanks! Might be worth turning into a proper
ese nasty unique key constraint etc. problems in
test, which you simply do not see in development (as sqlite doesn't support
them).
regards,
chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
Hey all.
Working on a new site for a University and was curious on the best way
to use Django's FlatPages app, if I should use that or not.
They have like 6 main sections: Current Students, Prospective
Students, Faculty and Staff, About the School, Pharmacy Profession,
and Community. Each of the
Hey,
I downloaded Python 2.5.2, the most recent release of PostgreSQL, and
Django 0.96. I've installed PostgreSQL and Python, as well as psycopg
for PostgreSQL. I ran my Python command line and it can't find Django.
Where do I need to put Django so that the Python can find it?
--~--~-~-
brian, thnx.
i got python2.5 installed and django9.6 installed. when i run my
python command line and import django and test the version it works.
however when i run the command prompt in windows and go to the django
directory in python25\lib\site-packages\ and type in python django-
admin.py sta
Hello all,
I'm using MySQL with Django, I setup my models and installed
everything, got into the admin panel and realized I left a field out.
I went back into my models file, added it, and it gives me an error
because while I guess the code realized it's there, that field wasn't
created in MySQL.
Thanks guys. I know how to do it via the admin, wasn't sure if I was
"missing" something within Django to handle it :)
Kind of off topic, but say myapp is named myapp, then in the heading
the admin will be displayed Myapp with the model items below it. Other
than customizing the admin template is
On my homepage I want to have a few different items, one is the recent
news items. I created the recentnews.py file:
from myproject.site.models import Blog
from django.template import Library,Node
register = Library()
def build_news_list(parser, token):
return NewsObject()
class NewsObjec
Didn't mean to send it. In my template I'm using this to call the
recent news:
{% load recent_news %}
{% get_news_list %}
I'm getting a TemplateSyntaxError, 'recent_news' is not a valid tag
library: Could not load template library from
django.templatetags.recent_news, No module named recent_news
thanks man, for some reason i couldn't get it and it was about to
drive me nuts :)
On Jul 3, 10:37 am, Berco Beute <[EMAIL PROTECTED]> wrote:
> It should be in:
> /project/application/templatetags/
>
> 2B
--~--~-~--~~~---~--~~
You received this message because you
one more thing. the first one is working.
i tried to setup a second template tag for the page called
more_news.py. the first is working as recent_news.py.
recent_news.py gets the more recent entry, i have more_news.py set to
get 2-6. i have {% load more_news %} since the file is more_news.py,
it
here's the code:
TEMPLATE
{% load more_news %}
{% get_morenews_list %}
{% for news in more_news %}
{{ news.title }}
{% endfor %}
MORE_NEWS.PY
from myproject.site.models import Blog
from django.template import Library,Node
register = Library()
def build_morenews_list(parser, token):
i setup a custom template tag for my index page called recent_news.
i tried to setup a second template tag for the page called
more_news.py. the first is working as recent_news.py.
recent_news.py gets the more recent entry, i have more_news.py set to
get 2-6. i have {% load more_news %} since th
Yeah I did.
I actually tested it on my development server, also on a production
server (actually restarted apache several different times)...
On Jul 4, 2:22 pm, Brian Luft <[EMAIL PROTECTED]> wrote:
> Have you tried restarting the development server? I've noticed that
> Django seems to cache te
I have one of the beta Django containers on MT, and I also have an
account on WebFaction, I love MT, but they're severely lacking with
the Django containers, IMO. WebFaction is amazing compared to MT if
you plan to use shared hosting
On Jul 7, 6:20 am, Niall McCormack <[EMAIL PROTECTED]>
wrot
i found a post from a while back that basically said if you're using
the same generic view type with two different urls you couldn't use
the permalink decorator, is that still the case with the SVN release?
we have our normal news table for the school's news, but we also have
students blogging an
thanks!
On Jul 7, 9:32 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-07-07 at 06:28 -0700, [EMAIL PROTECTED] wrote:
> > i found a post from a while back that basically said if you're using
> > the same generic view type with two different urls you couldn't use
> > the permalink
Would it be proper to use the django admin/user system and just extend
it to have staff bios, etc?
We're going to have it setup that our faculty will have admin access,
with limited permissions to login and upload some class lectures (ppt
files), edit their class info, etc. Since they'll already
yes, but when i do that it doesn't show up anywhere in the admin. i'm
not getting any errors and running it in development mode right now.
class UserProfile(models.Model):
url = models.URLField()
home_address = models.TextField()
phone_numer = models.PhoneNumberField()
Yeah, the book makes you comment those, but makes you uncomment them
again in the next (or the next) chapter =)
On 07/07/2008, at 17:44, Fernando Rodríguez wrote:
>
> El lun, 07-07-2008 a las 12:30 -0400, Karen Tracey escribió:
>
>
>
>>
>> [snip]
>>
>> MIDDLEWARE_CLASSES = [] #(
>>
Hey there!
I wonder if anyone knows if there's an app resembling ActiveCollab (or
Basecamp, for illustration's sake) that I could plug into a django
project.
If not, would it be a worthy project with an audience?
Chris
--~--~-~--~~~---~--~~
Yo
thanks you guys.
one more quick question. i have a field in User is_student, it's a
Boolean field.
in my course model i want to setup a field so that many students can
be added to that course, using a manytomany (since courses have
multiple students and students have multiple courses). how can i
egory_list %}
{{ category.title }}{% endfor %}
{% endfor %}
It's not displaying the category info, I also tried
latest.get_category_list and the same thing.
Thanks Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
hey all,
i'm trying to open up my development server to a couple of our other
staff members to help me start testing next week. to open up the
development server to others on our network, do i set runserver to my
IP or the network's
erver with CTRL-BREAK"
line I get "Error: (10049, "Can't assign requested address")" error.
if anyone has had this error, please let me know and i can work with
our network admin to fix it. the server runs fine when it's just on my
machine at 127.0.0.1:8000.
chris
Hey,
At work we're getting a new server and going to use it as our web-
server and use Django to run our website and our special student/
faculty stuff.
What does everyone recommend? FreeBSD, RedHat, or Ubuntu?
Thanks,
--~--~-~--~~~---~--~~
You received this mess
did you set the path to your in your URLconf, since you're using the
development server?
On Jul 9, 2:59 pm, Benjamin Buch <[EMAIL PROTECTED]> wrote:
> > Just to clarify what may be obvious...do you have the correct one
> > of these:
>
> > href=" {{ MEDIA_URL }}styles.css" <- what you wrote
> >
meant to put this in there:
http://www.djangoproject.com/documentation/static_files/
On Jul 9, 2:59 pm, Benjamin Buch <[EMAIL PROTECTED]> wrote:
> > Just to clarify what may be obvious...do you have the correct one
> > of these:
>
> > href=" {{ MEDIA_URL }}styles.css" <- what you wrote
> > hr
Thanks Jeff.
Something else, we're going to be running that as the web-server, but
also have a media server, but it is a Windows server. Still possible
to send the audio/video/powerpoint to the media server, even though it
is Windows?
On Jul 9, 2:48 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote:
>
Thanks for the input.
I think we're going with Ubuntu.
On Jul 9, 11:01 pm, elithrar <[EMAIL PROTECTED]> wrote:
> On Jul 10, 2:08 am, [EMAIL PROTECTED] wrote:
>
> > What does everyone recommend? FreeBSD, RedHat, or Ubuntu?
>
> Go with what you're most comfortable with - most of my experience has
Has anyone dealt with authentication against Active Directory? I found
the Django snippet online (http://www.djangosnippets.org/snippets/
501/). Right now we have the University network, a web manager, online
forums, and online testing software, which the latter three aren't
running against AD, so
Thanks tim.
Got it setup, but when I try to login to the admin with our dummy acct
on AD, I get the error ImproperlyConfigured at /admin/
Error importing authentication backend project.app.auth: "No module
named ldap"
Running the latest development version of Django with Python2.5
On Jul 10, 8:
Thanks, got it. Thought it was already on the box so that was
confusing me :)
Now got other errors to worry about, ugh.
On Jul 10, 10:23 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> > Got it setup, but when I try to login to the admin with our dummy acct
> > on AD, I get the error ImproperlyConfig
what's the best way with django to remember a page and redirect to
that page.
so if you're at www.mysite.com/entries/2008/jul/04/this-is-my-entry
and you click a link that stores something in a different db field
that once it goes through that view and enters the info it redirects
you to the url
zenet
Line #82 in processor.py is where the post and response code happens.
Hopefully this helps you out.
-Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
Trying to run a separate Django project in a sub-directory while the
main project runs in the root. I'm using Apache 2.2 and mod_python on
Windows.
If my apache httpd.conf includes just the subdirectory I get things
working correctly:
SetHandler python-program
PythonPath "['C:/django-p
> I then erase my apps database and run 'manage.py syncdb'
Are you aware that you don't have to erase the database before running
syncdb ? If you don't erase the db, you won't need to recreate the
superuser...
Chris
--~--~-~--~~~--
Good day,
I'm using Brian Beck's CAS authentication/middleware module for
authorizing things and it seems to work great when someone follows a
URL they are allowed access to.
@permission_required("data.view_logs")
def get_stuff():
return myview()
I've run into a bug that was originally tri
on but
this may have to wait until 1.0.
http://code.djangoproject.com/wiki/VersionOneFeatures#DecimalField
Enjoy Dallas & thanks for all the hard work!
-Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&qu
legal aspects. Just let me know.
-Chris
--~--~-~--~~~---~--~~
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 gro
about a bug # (I will see if I can find one), but I always seem to end
up with errors about unknown table names, and end up having to do the
filtering or ordering in python rather than in the SQL. This is with MySQL
as the db, BTW, which I guess might make a difference.
Chris
--~--~
> Please do elaborate on this. AFAIK FKs in filter() work just fine, so
> if there's something broken we should know about it right away.
I found ticket 2076, but that only concerns order_by().
I haven't got access to my code at th
> I'm not sure how Chris is filtering/ordering, but there are
> several ways of specifying fields, depending on the context. In
> filtering, one needs to use the double-underscore scheme as in
>
> Foo.objects.filter(foreignfieldname__foreignfield = 42)
>
> wher
ed to do. The commented-out
version gives :
Exception Type: OperationalError
Exception Value:(1054, "Unknown column
'camps_application__cadet.sqn.wing.name' in 'order clause'")
This is following a series of foreign keys (application belongs to cadet,
b
> Can you create a ticket with this on it so I don't lose track of it?
http://code.djangoproject.com/ticket/3587
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
relationships won't require
database queries.", I assumed that "this is a performance booster" meant
that I didn't need to worry about it until I had a performance problem, but
clearly it does change the behaviour (because taking it out of this line
returns me to "
| PRI | NULL| auto_increment |
| board_id | int(11) | NO | MUL | ||
| start_time | time| NO | | ||
| end_time | time| NO | | ||
| _order | int(11) | YES | | NULL||
+--
k or so before I have the time to
get to it.
I assume the documentation you mention is in the file docs/db-api.txt ?
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
In the Admin subclass of my class, is it possible to follow relations for
list_display() and/or list_filter() ?
When I'm dealing with applications, it would be nice to be able to
filter/sort them by the squadron name of the related cadet, for example.
I've implemented a similar hierarchy for categories in Satchmo using
elementtree. You can see my example here-
http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/templatetags/category_display.py
-Chris
--~--~-~--~~~---~--~~
You received
yone else seen this?
I can not use the JSON serializer because it chokes on decimal types. I
don't think this is a model issue - it seems to be a problem with the
serialized handling sites properly.
-Chris
--~--~-~--~~~---~--~~
You received this message be
e
info about where the problem is, instead of this somewhat vague error-
['This field cannot be null.']
Since I have quite a few fields, it would be helpful if it told me what
field or atleast which model it was getting stuck on.
Thanks,
Chris
--~--~-~--~~~-
ould be an issue with data not being
represented in the file. The trick is figuring out where it is. I can
try to dig into it some more later this evening and see if I can narrow it
down. Do you have any hints on how to figure out which field or model is
c
What's the best way to restrict access on a per-app basis ?
I want to have two apps, with some users allowed access to one, others
allowed access to the other, and some allowed access to both.
Any advice would be very much appreciated.
Thanks,
what shows up (see the 2
examples below).
Today I may be:
Neil Simmons
6329 Rummel Creek Cove
Arctic Village AK, 99722
or maybe
Blair Parr
4516 Billy Cross Circle
Corona Del Mar CA, 92625
Thanks,
Chris
--~--~-~--~~~---~--~~
You received thi
of having multiple
AUTHENTICATION_BACKENDS. Try it with just the EmailBackend.
What errors are you getting?
-Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gro
> Has anyone successfully used gmail's smtp to send mail? I've been
> trying, but so far no luck. I've added this to my settings.py:
>
> EMAIL_TLS = True
> EMAIL_HOST = smtp.gmail.com
> EMAIL_HOST_PASSWORD = mypassword
> EMAIL_HOST_USER = myusername
> EMAIL_PORT = 465
>
> Is something incorrect/mi
tle to
document title (and subsequent section title to document subtitle
promotion; docutils.transforms.frontmatter.DocTitle)."
You'll need to make this change in your /etc/docutils.conf file (or in one
of the other files it mentions). Then, it should work for you.
Good luck,
Chris
--
What's the best way to restrict access on a per-app basis ?
I want to have two apps, with some users allowed access to one, others
allowed access to the other, and some allowed access to both.
Any advice would be very much appreciated.
Thanks,
{% url full-archive 1945 %}
Is there a way i could access it in a view?
def archive(request):
Some code to access which named url here
Basically, I'd like to access the value "full-archive" while in the
archive view.
Does this make sense? If s
Malcolm,
Thanks for the speedy response. Upon further reflection, I'm thinking I'd
like to do something like:
reverse(request.path)
Will that return the name of the view? In this case, 'full-archive'
-Chris
--~--~-~--~~~---~--~~
You r
>
> Oh, I see what you're asking now. There's no built-in way to do that.
Ok. Do you think this would be a useful feature. I don't know if I can
create the patch but at a minimum I can put in a ticket so it doesn't get
lost.
-Chris
--~--~-~--~~---
In developing my new personal website using Django, one thing I am
doing is replicating much of my data into my own domain. Things such
as photos from flickr, links from del.icio.us and current tracks from
last.fm. I'd also like to incorporate a tumblelog which will
aggregate this information (
/shop/views/contact.py
-Chris
--~--~-~--~~~---~--~~
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 ema
ecting I'm doing something wrong in my db design or in my Django
code. I believe that the multiple relationships are causing some amount
of extra work during initial creation.
Does anyone have any pointers to ways of improving the time to save a new
object?
ce would be fine with this speed ;)
It seems that it only shows up when the dev web server is running. I also
see a delay in production using fcgi but I haven't focused on that yet.
Maybe it's a memory consumption thing.
Thanks for the pointer. Any other ideas?
-Chris
--~--~--
Thanks for all the suggestions. I'm going to try to work on some of them
this evening and see where it gets me. I'll be sure to let the group know
if I have any "aha" moments that might help others.
-Chris
--~--~-~--~~~---~--~~
You received
nition :
min_age = models.FloatField("Minimum age", max_digits=3,
decimal_places=1, default=0, validator_list=[age_validator])
Why is this ?
I'm using 0.96 with a MySQL backend.
Chris Brand
--~--~-~--~~~---~--~~
You received this message becau
on -V" reports "Python 2.4.3".
Chris
--~--~-~--~~~---~--~~
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
udent/blog entry, but I'm having a hard time visualizing it.
Thanks in advance for any advice,
Chris Brand
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
ike that approach should work well.
I'll give it a go.
Chris
--~--~-~--~~~---~--~~
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.co
see if it meets your needs. We're always looking for folks to help
contribute.
-chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-u
doesn't work when I get the POST data back (I think).
This doesn't seem to be a particularly unreasonable objective, so I suspect
that I'm again missing some obvious approach...
Chris
--~--~-~--~~~---~--~~
You received this message because you ar
> I think if it were me I'd build a form builder function, metaclass, or
> do it in __init__. Probably the easiest is passing in an argument to
> __init__ , that gives enough information to build the form.
That sounds like the kind of thing I'm looking for.
Thanks very much
real pain when developing.
Right now I'm using www.grokthis.net with a VPS but they also have a
shared and advanced offerings too. I've been happy so far.
Good luck,
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
The current url for the satchmo project is
http://www.satchmoproject.com
We have basic integration with paypal and are working on more as we speak.
-Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
ng the template from file
again.
Is there a settings flag that I'm missing to enable caching? Has
anyone seen this before?
Thanks in advance,
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
return self.parent_name
This seems to make everything down the line render happily, given that
the case of self.parent_name being a Template is handled already
properly, but, of course, I can't tell if it will instead break
features that I'm not currently using. It cuts out the 70 ms
formation or would like to apply, please contact
me directly at cheisel ajc com.
Thanks!
Chris Heisel
Director of Online Development
The Atlanta Journal-Constitution
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
This is great news. Thanks for all your work in getting this done!
-Chris
--~--~-~--~~~---~--~~
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@googlegro
"", line 1, in ?
> AttributeError: 'QuerySet' object has no attribute 'size'
I'd try to get at just one of those three objects first.
Something like
c[0].size.name
except that you might need to use list(c)[0], I can't remember.
Chris
--~--~---
you could do {% if perms.lab %} for "any permission in the lab
app" ?
Chris
--~--~-~--~~~---~--~~
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@go
track this down (that seems likely to be available,
but I don't know for sure).
(For the curious, I'd missed a comma between two parameters where I called
render_to_response()).
Chris Brand
--~--~-~--~~~---~--~~
You received this message
his, or if just calling it in every
view is appropriate.
Thanks in advance!
-Chris
--~--~-~--~~~---~--~~
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@goog
ore for the
look and feel when the users visit the site.
I can probably get away with restricting it to this particular app (in
the middleware) and just create a list of common view urls that it
should ignore when looking at the theme portion of the url, so as to
avoid strange path catches.
-Chris
On
vers, yaml looks like a good
> option for this configuration, or something parseable by ConfigParser
> sounds better?
>
> 2007/9/10, David Reynolds <[EMAIL PROTECTED]>:
>
>
> On 10 Sep 2007, at 4:13 pm, Chris Hoeppner wrote:
>
u going to create a wiki and repository for this project any
> time soon? It would be a much more effective means of collaboration
> than the mailing list.
>
> --Jon
>
> On 9/11/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote:
> >
> >
> > > > I thin
I know, I know. Know what? I'll setup a trac site on a domain of mine.
We can always move it somewhere else.
El mar, 11-09-2007 a las 14:02 +0100, Jon Atkinson escribió:
> I'm not sure the name is really as important as working code.
>
> --Jon
>
> On 9/11/07, Chris H
) is zero (because your if statement is
wrong) ? That looks like it could explain the error you're seeing.
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
El mar, 11-09-2007 a las 12:26 -0700, Jonas escribió:
> Before that someone starts working about this, you must consider this:
>
> 1. It's already has been created a project with that intention. Its
> name is capystrano [1] and althought has been not uploaded code -he
> could be working offline-,
Yes, you can absolutely have trac and django on the same instance. When you
say it doesn't work, what is happening?
-Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
I always have an app called "core" for that kind of stuff, like non-app
related views, forms, middleware, models... etc.
El vie, 14-09-2007 a las 03:09 -0700, Stewart escribi�:
> Hi
>
> I'm considering writing an web application in Django but I'm a little
> confused about the Site-App model.
>
ad to run 2.3 and 2.5) It can
> make configuration for deployment to be a bit of a pain.
I've had no such problems with my Fedora Core 6 box. Just installed
everything using yum and it worked fine. I think it uses python 2.4.4
throughout.
Chris
--~--~-~--~~~
Linux is linux after all. The kernel remains largely the same, unless
you get a patchy distro.
The choice is all about your knowledge. If you know your way around in
linux, it doesn't really matters. If you're a bit *newer*, you might
want to go with a distro with strong repos and a good package
That's more or less how flatpages work. Have a look at their middleware.
El s�b, 22-09-2007 a las 05:40 -0700, julian.bash escribi�:
> Hi!
>
> Does anyone have an idea how to implement funky caching with django?
> For those who don't know what that is (it's similar to how movabletype
> does cach
If it is Django/Rails who is doing the thing, the server *has* to run
it. So it's nonsense speaking about mephisto doing that. The deal would
be in apache taking care of it.
El s�b, 22-09-2007 a las 17:26 +, julian.bash escribi�:
> Thanks a lot for your answers!
>
> The even greater thing w
801 - 900 of 1590 matches
Mail list logo